This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Scope chenged and package moved to ccp4i2-api
@ccp4/ccp4i2-auth / ccp4i2-auth
Shared auth + api-fetch contract for CCP4i2 and consumers (CCP4i2 Compounds, third-party integrators). One package, two language artifacts: TypeScript on the client side (browser, Electron) and Python on the server side (Django middleware, DRF authentication). Both halves agree on the canonical bearer- token format and 401 response shape.
Status
Draft v0 — published to npm + PyPI from the in-tree workspace. The
package will move to its own repo (ccp4/ccp4i2-auth) once the GitHub-side
ask lands; until then the source of truth is
packages/ccp4i2-auth/
inside the ccp4/ccp4i2 monorepo on the django-sliced branch.
Versioning follows semver from 0.x.y onwards. The v0 contract is
documented in
docs/CCP4I2_SERVICE_CONTRACT.md;
field stability promises take effect from this version.
Layout
| Path | Purpose |
|---|---|
src/ |
TypeScript source. Built to lib/ via npm run build. |
lib/ |
Built TypeScript output. Generated; gitignored. |
dist/ |
Python distribution output (python -m build). Generated; gitignored. Kept distinct from lib/ so twine upload dist/* doesn't accidentally pick up TypeScript artefacts. |
ccp4i2_auth/ |
Python source. Installed editable via pip install -e .. |
tests/js/ |
TypeScript tests (vitest, when added). |
tests/python/ |
Python tests (pytest, when added). |
Consumer wiring
During the monorepo phase, consumers reference this package via local paths.
TypeScript (client/package.json, apps/compounds/frontend/package.json):
"dependencies": {
"@ccp4/ccp4i2-auth": "file:../../packages/ccp4i2-auth"
}
(Path depth varies by consumer location — see each consumer's package.json.)
Python (Docker/server/Dockerfile, local dev setup):
pip install -e packages/ccp4i2-auth/
At repo split, consumers swap file: to a published version (^0.1.0 for
TS, >=0.1 for Python). The package's exports, build artifacts, and
contract are unchanged — only the resolution mechanism switches.
Development
# TypeScript
cd packages/ccp4i2-auth
npm install
npm run build # produces lib/
npm run watch # rebuilds on change
# Python
cd packages/ccp4i2-auth
ccp4-python -m pip install -e .
ccp4-python -c "import ccp4i2_auth; print(ccp4i2_auth.__version__)"
Metadata
Release files for ccp4i2-auth 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccp4i2_auth-0.2.0.tar.gz | 15.8 kB | Without provenance | Details for ccp4i2_auth-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccp4i2_auth-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ccp4i2_auth-0.2.0-py3-none-any.whl |
Total release size: 30.9 kB
Release files / ccp4i2_auth-0.2.0.tar.gz
| Download URL | ccp4i2_auth-0.2.0.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2650a4c6ab07b0b0abcf67ed072c7c774e1ec9579a427164f1a18df5911a85cb
|
|
BLAKE2b-256 checksum How to use checksums |
5a2a59e9a030d6cb8bedbb8a953ccdff7d95d0bf7925dfee0f77ba1301f48fd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / ccp4i2_auth-0.2.0-py3-none-any.whl
| Download URL | ccp4i2_auth-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2b99998abcd531b67b1800fd4d7b5ef99af5d288887c1121ce15efb5bb28e1b
|
|
BLAKE2b-256 checksum How to use checksums |
e698f1664872c6d3137d4b75e92834f7db7cfaa9cee413539287551d1110e1c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for ccp4i2-auth 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.