Skip to main content

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.taxonomyTargetProfile / 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 like proof_version / manifest_version), and wire_schema() / render_schema() for the committed-schema schema --check CLI pattern.
  • argus_cortex.backends — the AI-backend contract generalised from argus-lens: Backend / LocalBackend / RemoteBackend (point at a hosted service by base_url, host/port, or a known RemoteProvider), plus with_retries() and resolve_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-ci reusable 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 — tag vX.Y.Z to cut a release.

This repo was scaffolded from argus-pkg-template. Run copier update to pull template changes (CI, release, tooling).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argus_cortex-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argus_cortex-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for argus_cortex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aaeab4961624f24adc44926d90b0527ec4c157163d5e48015dbdb3e560386099
MD5 d66a6ecabaecf68190661e6bc84af980
BLAKE2b-256 b09115e82e223380436334705f71328c521726ce1378302c7ff02ad3e221179d

See more details on using hashes here.

Provenance

The following attestation bundles were made for argus_cortex-0.1.0.tar.gz:

Publisher: release.yml on smk762/argus-cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for argus_cortex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5de567022d83834d1fe9df4204456fec42e27e63350a3b83d83ac34dee6106c
MD5 75aad9022284df4b3bf663425a6dd22a
BLAKE2b-256 619df16e4d8f1fb7a811e9a75bd16ba042072e8c9a05d22521c871cf5c9726bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for argus_cortex-0.1.0-py3-none-any.whl:

Publisher: release.yml on smk762/argus-cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page