Axis specification modules (entities, formulas, validators)
Project description
axis-synome
A Python framework for defining and validating financial specifications, with a focus on DeFi primitives and risk calculations. Includes:
- ASC Specifications — Actively Stabilizing Capital entities (assets, tokens, networks, protocols) and formulas (collateral ratios, incentives, resting/latent ASC)
- Spec Validator — Flake8 plugin for enforcing Python subset constraints on spec files
- Metadata & Utilities — Support for spec documentation and validated dataclasses
Installation
Install from PyPI:
pip install axis-synome
Or install from a private registry:
pip install axis-synome --index-url https://npm.pkg.github.com/archon-research
Usage
ASC Entities
from axis_synome.spec.asc.entities import primes, tokens, networks, protocol_sets
ASC Formulas
from axis_synome.spec.asc.formulas import asc, asc_collateral_ratio, asc_incentive
Spec Validation
from axis_synome.spec_validator import validate_file
validate_file("my_spec.py")
Or use as a flake8 plugin:
flake8 --select=AXS your_spec.py
About
axis-synome is a specification framework for defining financial and risk calculations in DeFi, with emphasis on formalized, auditable spec files.
For more information on writing specifications, see WRITING_SPECS.md.
Requirements
- Python >= 3.11
- pydantic >= 2.0.0
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 axis_synome-0.1.0.dev16.tar.gz.
File metadata
- Download URL: axis_synome-0.1.0.dev16.tar.gz
- Upload date:
- Size: 72.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013e8e0cb7d64e2f69b2471d58e0f28daa954773860ddac91ad1bc055cb9e85a
|
|
| MD5 |
ec660b01c951fff4c34d58afb6567c0e
|
|
| BLAKE2b-256 |
a260177ebda87410d35503b46fea8108b356842a11463547f0a2b1063f4d41ed
|
Provenance
The following attestation bundles were made for axis_synome-0.1.0.dev16.tar.gz:
Publisher:
publish-axis.yml on archon-research/next-gen-atlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axis_synome-0.1.0.dev16.tar.gz -
Subject digest:
013e8e0cb7d64e2f69b2471d58e0f28daa954773860ddac91ad1bc055cb9e85a - Sigstore transparency entry: 1417378869
- Sigstore integration time:
-
Permalink:
archon-research/next-gen-atlas@4d6107bda30662590654c39a2e343c26fef80aa2 -
Branch / Tag:
refs/heads/rohit/ten-117-define-versioning-schema-and-compatibility-policy - Owner: https://github.com/archon-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-axis.yml@4d6107bda30662590654c39a2e343c26fef80aa2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file axis_synome-0.1.0.dev16-py3-none-any.whl.
File metadata
- Download URL: axis_synome-0.1.0.dev16-py3-none-any.whl
- Upload date:
- Size: 33.5 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 |
d19706e39942b46818cd075c960573acb4c9546a057de077376f5856f7cf7a99
|
|
| MD5 |
7a253648d41c308ada49b22cc4ae3d5e
|
|
| BLAKE2b-256 |
66c01e4826ac0e200b291d78bde3180ad9a07d6c4596ee3833d7fbf4202aba29
|
Provenance
The following attestation bundles were made for axis_synome-0.1.0.dev16-py3-none-any.whl:
Publisher:
publish-axis.yml on archon-research/next-gen-atlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axis_synome-0.1.0.dev16-py3-none-any.whl -
Subject digest:
d19706e39942b46818cd075c960573acb4c9546a057de077376f5856f7cf7a99 - Sigstore transparency entry: 1417378873
- Sigstore integration time:
-
Permalink:
archon-research/next-gen-atlas@4d6107bda30662590654c39a2e343c26fef80aa2 -
Branch / Tag:
refs/heads/rohit/ten-117-define-versioning-schema-and-compatibility-policy - Owner: https://github.com/archon-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-axis.yml@4d6107bda30662590654c39a2e343c26fef80aa2 -
Trigger Event:
push
-
Statement type: