Shared foundation for the Argus suite: taxonomy, versioned wire-schema tooling, and the local/remote AI backend contract
Project description
argus-cortex
Shared foundation for the Argus suite: taxonomy, versioned wire-schema tooling, and the local/remote AI backend contract.
Part of the Argus suite (quarry → curator → lens → forge → proof). This is the library the stages import so the code they share — the target taxonomy, the wire-schema versioning discipline, and the way they call local or hosted models — lives in one place instead of being copy-pasted per repo.
What's here
argus_cortex.taxonomy—TargetProfile/TargetStyle/TargetCategory, the "moat" types every stage inherits verbatim.argus_cortex.wire— the versioned wire-schema toolkit:check_version()(major-compatibility gate),make_versioned_base()(a Pydantic base that stamps + checks a version field likeproof_version/manifest_version), andwire_schema()/render_schema()for the committed-schemaschema --checkCLI pattern.argus_cortex.backends— the AI-backend contract generalised from argus-lens:Backend/LocalBackend/RemoteBackend(point at a hosted service bybase_url,host/port, or a knownRemoteProvider), pluswith_retries()andresolve_device(). httpx lives behind the[remote]extra.
from argus_cortex.wire import make_versioned_base, render_schema
from argus_cortex.backends import RemoteBackend, RemoteProvider
# per-package versioned base (readable field name kept local, logic shared)
_Versioned = make_versioned_base("proof_version", "1.0", ("1",))
# reach a hosted scorer by IP/port, or a known provider
scorer = RemoteBackend.from_host("192.168.1.20", 9000, api_key="…")
nim = RemoteBackend.from_provider(RemoteProvider.NVIDIA_NIM, api_key="…")
Install
uv pip install argus-cortex # core (pydantic only)
uv pip install "argus-cortex[remote]" # + httpx for RemoteBackend
Develop
make install # venv + editable install with the "dev" extras
make test
make lint
CI / Release
- CI runs via the shared
argus-cireusable workflow. - Release publishes to PyPI (OIDC trusted publishing) on
v*tags. No container image — this is a library. - Versioning is derived from git tags via
hatch-vcs— tagvX.Y.Zto cut a release.
This repo was scaffolded from argus-pkg-template.
Run copier update to pull template changes (CI, release, tooling).
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 argus_cortex-0.1.0.tar.gz.
File metadata
- Download URL: argus_cortex-0.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaeab4961624f24adc44926d90b0527ec4c157163d5e48015dbdb3e560386099
|
|
| MD5 |
d66a6ecabaecf68190661e6bc84af980
|
|
| BLAKE2b-256 |
b09115e82e223380436334705f71328c521726ce1378302c7ff02ad3e221179d
|
Provenance
The following attestation bundles were made for argus_cortex-0.1.0.tar.gz:
Publisher:
release.yml on smk762/argus-cortex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argus_cortex-0.1.0.tar.gz -
Subject digest:
aaeab4961624f24adc44926d90b0527ec4c157163d5e48015dbdb3e560386099 - Sigstore transparency entry: 2113259830
- Sigstore integration time:
-
Permalink:
smk762/argus-cortex@803e2a2601deff45d0d7f77ebd9b23e4bf6661ba -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/smk762
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@803e2a2601deff45d0d7f77ebd9b23e4bf6661ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file argus_cortex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: argus_cortex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5de567022d83834d1fe9df4204456fec42e27e63350a3b83d83ac34dee6106c
|
|
| MD5 |
75aad9022284df4b3bf663425a6dd22a
|
|
| BLAKE2b-256 |
619df16e4d8f1fb7a811e9a75bd16ba042072e8c9a05d22521c871cf5c9726bf
|
Provenance
The following attestation bundles were made for argus_cortex-0.1.0-py3-none-any.whl:
Publisher:
release.yml on smk762/argus-cortex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argus_cortex-0.1.0-py3-none-any.whl -
Subject digest:
e5de567022d83834d1fe9df4204456fec42e27e63350a3b83d83ac34dee6106c - Sigstore transparency entry: 2113259872
- Sigstore integration time:
-
Permalink:
smk762/argus-cortex@803e2a2601deff45d0d7f77ebd9b23e4bf6661ba -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/smk762
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@803e2a2601deff45d0d7f77ebd9b23e4bf6661ba -
Trigger Event:
push
-
Statement type: