Skip to main content

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


Download files

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

Source Distribution

axis_synome-0.1.dev184.tar.gz (69.0 kB view details)

Uploaded Source

Built Distribution

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

axis_synome-0.1.dev184-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file axis_synome-0.1.dev184.tar.gz.

File metadata

  • Download URL: axis_synome-0.1.dev184.tar.gz
  • Upload date:
  • Size: 69.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for axis_synome-0.1.dev184.tar.gz
Algorithm Hash digest
SHA256 b9ffc5f250ee33d0fd44a38ee72f643839afbfbc4030345d2d1f088bfe8189e6
MD5 f414ba6e226cb1bc299555408d662944
BLAKE2b-256 b6ea4a006c954171a9879ef6b84956c6851460be18a8c34e5d4b501f45e7dda0

See more details on using hashes here.

Provenance

The following attestation bundles were made for axis_synome-0.1.dev184.tar.gz:

Publisher: publish-axis.yml on archon-research/next-gen-atlas

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

File details

Details for the file axis_synome-0.1.dev184-py3-none-any.whl.

File metadata

File hashes

Hashes for axis_synome-0.1.dev184-py3-none-any.whl
Algorithm Hash digest
SHA256 144c2da94554ac9db1096ad7d427e825a7be2c2b511f757550805a04ac9ba12a
MD5 b52b6e453c946fe6dd640be011b11a57
BLAKE2b-256 44a6ebfd4798886c29674d87459364c90494041cebdf03e2437387e85dd6df36

See more details on using hashes here.

Provenance

The following attestation bundles were made for axis_synome-0.1.dev184-py3-none-any.whl:

Publisher: publish-axis.yml on archon-research/next-gen-atlas

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