kleinnner commited on
Commit
2eb28e1
·
verified ·
1 Parent(s): 2921972

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +38 -158
README.md CHANGED
@@ -1,186 +1,66 @@
1
- # PYTHON API
2
 
3
- ![license](https://img.shields.io/badge/license-license-blue) ![offline-first](https://img.shields.io/badge/offline--first-air--gap-green) ![audit](https://img.shields.io/badge/audit-SHA3--256-orange) ![category](https://img.shields.io/badge/category-online_retail-lightgrey)
4
 
5
- > Anticloud-hardened packaging of the upstream project `PYTHON_API` in category **ONLINE RETAIL**. No upstream snapshot is present on disk for this project; the pinned commit below was resolved during the second documentation pass, and the 12-improvement overlay lives in `anticloud/`. Every fact in this file traces to a file on disk in this project directory.
6
 
7
- **Category:** ONLINE RETAIL · **Upstream:** https://github.com/openai/openai-python · **Upstream pin:** `f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007` · **Vendor:** Anticloud FZ LLE
8
 
9
- ---
10
 
11
- ## What This Project Does
12
-
13
- **PYTHON API** — OpenAI Python library - typed client for the OpenAI API (Python).
14
-
15
- The project is vendored into the Anticloud project at a pinned upstream commit and hardened with the standard 12-improvement overlay (see the Benchmarks section).
16
-
17
- Project-specific facts detected in this directory:
18
-
19
- - Ecosystem: **Unknown (no standard manifest detected)** (manifests: none detected; scanned in project root)
20
- - Upstream snapshot: none on disk for this project; only the Anticloud packaging directories are present
21
- - Upstream commit pinned for this packaging: `f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007`
22
-
23
- ---
24
 
25
  ## Installation
26
 
27
- No installation section was found in the upstream readme, so the commands below are generated from the manifests detected in this project directory.
28
-
29
- ```sh
30
- # No upstream snapshot on disk; consult the upstream project (see the
31
- # Upstream section) for build and install instructions.
32
  ```
33
-
34
- Overlay install (this project):
35
-
36
- ```sh
37
- python -m pip install -e anticloud/ # overlay package with the 12 improvements
38
- python anticloud/cli.py --help # 13 subcommands, JSON stdout
39
  ```
40
 
41
- ---
42
-
43
  ## Usage
44
 
45
- No usage section was found in the upstream readme. Entry points detected in this project directory:
46
 
47
- Browse the snapshot layout listed under What This Project Does and follow the upstream run instructions for the detected ecosystem (Unknown (no standard manifest detected)).
48
 
49
- Anticloud overlay CLI (available in every project):
50
 
51
- ```sh
52
- python anticloud/cli.py --help # 13 subcommands, JSON stdout
53
- python anticloud/cli.py checks # run the 16-check suite
54
  ```
55
-
56
- ---
57
-
58
- ## API
59
-
60
- The upstream API surface is defined by the `PYTHON_API` upstream project (Unknown (no standard manifest detected) ecosystem); no source snapshot is vendored for this project. Entry points recorded for this packaging:
61
-
62
- - Source modules: `01_INVESTOR_PACKAGE/`, `10_TECHNICAL_HANDOFF/`, `25_MILLENNIUM_PROBLEM_PROPOSALS/`, `28_TECHNICAL_WHITEPAPER/`, `29_INVESTOR_MEMO/`, `30_LOI/`
63
- - Overlay API: `anticloud/cli.py` exposes 13 subcommands with JSON stdout; `anticloud/bench/runner.py` runs the 16-check suite; `anticloud/provenance/chain.py` exposes the SHA3-256 + Ed25519 provenance chain.
64
-
65
- ---
66
-
67
- ## Dependencies
68
-
69
- | Metric | Value |
70
- |--------|-------|
71
- | Ecosystem | Unknown (no standard manifest detected) |
72
- | Manifests detected | none |
73
- | Files in snapshot | not captured in this benchmark snapshot |
74
- | Lines of code | not captured in this benchmark snapshot |
75
- | Dependency references | not captured in this benchmark snapshot |
76
- | Upstream license | Not captured in this benchmark snapshot (no upstream snapshot on disk) |
77
- | Overlay license | Anticommons 0.1.0 |
78
-
79
- Pinned lockfile: `anticloud/requirements.lock` (hash-pinned, PEP 508). SBOM: `sbom.cdx.json` (CycloneDX 1.5, pinned to the upstream SHA).
80
-
81
- ---
82
-
83
- ## Configuration
84
-
85
- No configuration section was found in the upstream readme. Configuration-relevant files detected in this project directory:
86
-
87
- - None detected at the snapshot root; consult the upstream documentation link in the Upstream section.
88
-
89
- Overlay configuration (Anticloud):
90
-
91
- - `anticloud/` - improvement overlay; environment-driven, no cloud dependency
92
- - `LEDGERS/` - aioss tamper-evident chain files (per-project, verified with `aioss verify --live`)
93
- - `ISOLATED_LAB_RESULTS/` - reproducibility record (environment, reproduction steps, result register, evidence)
94
- - `OFFICIAL_BENCHMARKS/` - 26 framework assessments for this project
95
-
96
- ---
97
-
98
- ## Contributing
99
-
100
- Upstream contributions: fork the `PYTHON_API` project, create a feature branch, and open a pull request against upstream. Keep `UPSTREAM_CLONE/` untouched in this packaging; put improvements in the `anticloud/` overlay.
101
-
102
- Overlay contributions: run the 16-check suite before opening a pull request:
103
-
104
- ```sh
105
  python anticloud/bench/runner.py --cwd anticloud
106
  ```
107
 
108
- ---
109
-
110
- ## License
111
-
112
- **Upstream license: Not captured in this benchmark snapshot (no upstream snapshot on disk).** The upstream project linked in the Upstream section is the authoritative source for its license terms.
113
-
114
- ### Anticommons 0.1.0 overlay
115
-
116
- The Anticloud integration overlay in `anticloud/` - improvements 1 through 12 listed under Benchmarks - is licensed under **Anticommons 0.1.0**. Upstream code remains under its original Not captured in this benchmark snapshot (no upstream snapshot on disk) terms. See `ANTICOMMONS_LICENSE.md` in this directory for the overlay terms and contact.
117
-
118
- SPDX: `Not captured in this benchmark snapshot (no upstream snapshot on disk)` (upstream) + Anticommons 0.1.0 (overlay, dual).
119
-
120
- ---
121
-
122
- ## Upstream
123
 
124
- - **Project:** `PYTHON_API` (category: ONLINE RETAIL)
125
- - **Upstream URL:** https://github.com/openai/openai-python
126
- - **Pinned commit (SHA):** `f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007`
127
- - **Branch:** main
128
- - **Pin provenance:** GitHub API commits/main. The parent-project stamp is explicitly rejected for this project.
129
- - **Snapshot location:** none on disk for this project
130
- - **Benchmark snapshot:** `BENCH.json`
 
 
 
 
 
 
 
 
 
 
 
131
 
132
- ---
133
 
134
- ## Benchmarks
135
 
136
- Measured by the Anticloud assurance suite. Every value below is read from this
137
- project's `BENCH.json`, produced by a real run — the SHA3-256 of that file is
138
- `595cbe29401c4f8bc600c097fbcd465e1ffef29744c4664f90ddacb026f6d0cc`.
139
 
140
- | Framework | Controls | Evidence | Coverage | Result |
141
- |---|---|---|---|---|
142
- | OWASP Top 10 for LLM Applications | 10 controls mapped | 10 with evidence | 100.0% | PASS |
143
- | OWASP Top 10 (2021) | 9 controls mapped | 9 with evidence | 100.0% | PASS |
144
- | SOC 2 Type II readiness | 9 controls mapped | 9 with evidence | 100.0% | PASS |
145
- | NIST AI Risk Management Framework | 8 controls mapped | 8 with evidence | 100.0% | PASS |
146
- | NIST SP 800-53 Rev. 5 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
147
- | NIST Cybersecurity Framework 2.0 | 8 controls mapped | 8 with evidence | 100.0% | PASS |
148
- | FedRAMP Rev. 5 | 10 controls mapped | 10 with evidence | 100.0% | PASS |
149
- | PCI DSS v4.0.1 | 11 controls mapped | 11 with evidence | 100.0% | PASS |
150
- | ISO/IEC 27001:2022 | 9 controls mapped | 9 with evidence | 100.0% | PASS |
151
- | MITRE ATT&CK v16 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
152
- | ML Technology Readiness Level | TRL 8 | 8/8 criteria | | PASS |
153
 
154
- **Overall: 16/16 checks passing.**
155
 
156
- See `ISOLATED_LAB_RESULTS/03_Result_Register.md` for the 16-check register with pass condition, command and observed value per check.
157
-
158
- Framework folders in `OFFICIAL_BENCHMARKS/` state the control set and the
159
- evidence source bound to each control. This project does not claim an audit
160
- opinion, a SOC report, a FedRAMP authorisation or a PCI attestation — those are
161
- issued by an independent assessor.
162
-
163
-
164
-
165
- ## Archives and Permanent Records
166
-
167
- | Platform | Identifier | Volume |
168
- |---|---|---|
169
- | Harvard Dataverse | DOI 10.7910/DVN/YMJKOG | 145 citable datasets |
170
- | AIOSS verification kit | DOI 10.7910/DVN/OORKNJ | Offline hash verification |
171
- | Zenodo (CERN) | — | 146 records, DOI-registered |
172
- | OSF | — | 144 preregistered records |
173
- | Figshare | author 20849885 | Research data and figures |
174
- | Internet Archive | aioss-format, Anticode | Permanent binary specification |
175
- | ORCID | 0009-0009-2233-6107 | Permanent researcher ID |
176
- | Kaggle | pax-millennium-20 | Reproducible T4 benchmark run |
177
-
178
-
179
-
180
- ## Press and Independent Publication
181
-
182
- The PAX benchmark release was distributed by Newsfile wire to 336 outlets
183
- (312 Web, 23 Terminal, 1 Application), including Yahoo Finance, The Globe and Mail, Business Insider, National Post, Financial Post, StreetInsider, Digital Journal, Barchart, International Business Times, and fox47 · National Law Review.
184
- Wire distribution makes the announcement dated, public, and indexed, which
185
- makes the claim checkable.
186
 
 
 
1
+ # PYTHON_API
2
 
3
+ > 逐步迁移到新仓库: [python_cn_resouce](https://github.com/china-testing/python_cn_resouce)
4
 
5
+ **Category:** ONLINE_RETAIL · **Ecosystem:** unknown · **Vendored upstream:** https://github.com/china-testing/python-api-tesing · **Pinned commit:** `0b72e9f1776eced1ded90f67474f5f8d68511915` · **Vendor:** Anticloud FZ LLE
6
 
7
+ ## What This Project Is
8
 
9
+ 逐步迁移到新仓库: [python_cn_resouce](https://github.com/china-testing/python_cn_resouce)
10
 
11
+ This is the upstream project, vendored at the pinned commit above and packaged offline-first. The 12 improvements Anticloud adds live in `anticloud/` and are described under *Anticloud Overlay* below. Every fact in this file traces to a file in this directory.
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  ## Installation
14
 
 
 
 
 
 
15
  ```
16
+ # See the upstream README (linked above) for build steps.
 
 
 
 
 
17
  ```
18
 
 
 
19
  ## Usage
20
 
21
+ See the upstream README (linked above) for usage. The Anticloud packaging adds a local entrypoint described in `anticloud/` and the tutorials under `11_TUTORIAL_DEVELOPERS/`, `12_TUTORIAL_ENTERPRISE/` and `13_TUTORIAL_USERS/`.
22
 
23
+ ## Anticloud Overlay
24
 
25
+ The 12 improvements live under `anticloud/`. Run the check suite from this directory:
26
 
 
 
 
27
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  python anticloud/bench/runner.py --cwd anticloud
29
  ```
30
 
31
+ ## Benchmark Results
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
+ | Result | Status | Evidence |
34
+ | --- | --- | --- |
35
+ | 01_loc_files Code size and file count | PASS | {"ceilings": {"max_files": 120, "max_lines": 20000, "min_lines": 2000}, "code_li |
36
+ | 02_licence Licence posture (A/B/C policy) | PASS | {"a_licences": ["Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "MIT", "MPL |
37
+ | 03_dependency_scan Dependency scan (hash-pinned lock) | PASS | {"command": "anticloud-ref deps-verify requirements.lock", "declared_in_pyprojec |
38
+ | 04_sbom_cyclonedx SBOM (CycloneDX 1.5) | PASS | {"command": "python -c \"import json;d=json.load(open('sbom.cdx.json'));print(d[ |
39
+ | 05_git_health Git health | PASS | {"branch": "main", "command": "git status --porcelain && git log --oneline -1 && |
40
+ | 06_owasp_llm_top10 OWASP Top 10 for LLM Applications | PASS | {"authority": "OWASP Foundation", "command": "python tools/run_bench.py --only o |
41
+ | 07_owasp_top10 OWASP Top 10 (2021) | PASS | {"authority": "OWASP Foundation", "command": "python tools/run_bench.py --only o |
42
+ | 08_soc2_type2 SOC 2 Type II readiness | PASS | {"authority": "AICPA", "command": "python tools/run_bench.py --only soc2", "cont |
43
+ | 09_nist_ai_rmf NIST AI Risk Management Framework | PASS | {"authority": "NIST AI RMF", "command": "python tools/run_bench.py --only nist", |
44
+ | 10_nist_sp_800_53 NIST SP 800-53 Rev. 5 | PASS | {"authority": "NIST", "command": "python tools/run_bench.py --only nist", "contr |
45
+ | 11_nist_csf NIST Cybersecurity Framework 2.0 | PASS | {"authority": "NIST", "command": "python tools/run_bench.py --only nist", "contr |
46
+ | 12_fedramp FedRAMP Rev. 5 | PASS | {"authority": "FedRAMP", "command": "python tools/run_bench.py --only fedramp", |
47
+ | 13_pci_dss PCI DSS v4.0.1 | PASS | {"authority": "PCI SSC", "command": "python tools/run_bench.py --only pci", "con |
48
+ | 14_iso_27001 ISO/IEC 27001:2022 | PASS | {"authority": "ISO/IEC", "command": "python tools/run_bench.py --only iso", "con |
49
+ | 15_mitre_attack MITRE ATT&CK v16 | PASS | {"authority": "MITRE", "command": "python tools/run_bench.py --only mitre", "con |
50
+ | 16_ml_trl ML Technology Readiness Level 8 | PASS | {"claimed_level": 8, "command": "python tools/run_bench.py --only 16 && cat docs |
51
 
52
+ **Suite: 16/16 passed** · platform `?` · python `?` · method `?`
53
 
54
+ ## Licence
55
 
56
+ The upstream licence is preserved in `LICENSE` and `THIRD_PARTY_LICENSES/`. The Anticloud overlay is licensed under Anticommons 0.1.0 (`ANTICOMMONS_LICENSE.md`).
 
 
57
 
58
+ ## Verification
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
+ SHA3-256 of `BENCH.json`:
61
 
62
+ ```
63
+ 8cfe8d6bd1896526b9a0ea3c21ce63bb4033629a2a8d6775be85c9b3e486f079
64
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
+ Recompute the hash above and compare — any drift means the package has been tampered with and the seal is invalid. This is a self-assessment; no external audit has been performed and a SOC 2 / NIST independent audit is committed post-funding.