A3S Code Python SDK — pure-Python bootstrap that fetches the native wheel from GitHub Releases
Project description
a3s-code (Python bootstrap)
pip install a3s-code ships this small pure-Python package. On first
import a3s_code it downloads the native extension matching your
interpreter and platform from the project's
GitHub Releases, verifies
the wheel's sha256 against the release manifest, extracts the compiled
extension into a per-user cache, and exposes the normal a3s_code API.
Subsequent imports use the cached extension. Cache lives under
~/.cache/a3s-code/<version>/ (or $XDG_CACHE_HOME/a3s-code/<version>/).
Why
PyPI imposes a default 10 GB per-project storage cap. A Rust SDK with
~17 MB native wheels per Python × platform tripped that limit. GitHub
Releases is the canonical wheel host; this bootstrap keeps
pip install a3s-code working without dragging the native wheels back
through PyPI.
Supported platforms
- macOS arm64 (Apple Silicon)
- Linux x86_64 (glibc 2.28+)
- Windows x86_64
CPython 3.10, 3.11, 3.12, 3.13.
Environment overrides
| Variable | Effect |
|---|---|
A3S_CODE_CACHE_DIR |
Cache root (defaults to $XDG_CACHE_HOME/a3s-code or ~/.cache/a3s-code) |
A3S_CODE_RELEASES_BASE_URL |
Override the release base URL — useful for air-gapped mirrors |
A3S_CODE_SKIP_HASH_CHECK |
1 skips sha256 verification (do not use in production) |
Manual install
If you do not want the bootstrap to phone home, install the native wheel directly:
pip install \
https://github.com/AI45Lab/Code/releases/download/v3.2.1/a3s_code-3.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a3s_code-3.4.0.tar.gz.
File metadata
- Download URL: a3s_code-3.4.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fecf5300711e2db3ba49a08a4a26beaf99edaf180c89f0397b7677f8b1b8066
|
|
| MD5 |
da3abcb63cb54abca99a3e4fc18bbfa1
|
|
| BLAKE2b-256 |
38c5ed0b0240a090c7d779784798bc0393613c78dcc15fdf194bae538253aaae
|
File details
Details for the file a3s_code-3.4.0-py3-none-any.whl.
File metadata
- Download URL: a3s_code-3.4.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbc5e12acc393e90032c6c89236cbe28547d337fc2861bef788f3669346270ff
|
|
| MD5 |
6c4c8cb3e3daca17ffc9595e3fb9c583
|
|
| BLAKE2b-256 |
7bb84513215e5ab4877318385a16a373507b5514d6ec1bafe3cef736f4a915fd
|