Skip to main content

DEPRECATED: Use invar-tools (CLI) or invar-runtime (contracts) instead

Project description

python-invar (DEPRECATED)

This package is deprecated. Please migrate to the new packages.

Migration Guide

python-invar has been split into two packages for better modularity:

Old New Purpose
python-invar invar-runtime Runtime contracts (@pre, @post, must_use, etc.)
python-invar invar-tools CLI tools (guard, map, sig, MCP server)

For Projects Using Contracts

If your project uses Invar contracts at runtime:

pip uninstall python-invar
pip install invar-runtime

Update imports:

# Old
from invar import pre, post, Contract

# New (recommended)
from invar_runtime import pre, post, Contract

# Or keep using 'invar' (still works via invar-tools)
from invar import pre, post, Contract

For Development Tools

If you use Invar CLI tools:

pip uninstall python-invar
pip install invar-tools

Or use without installing:

uvx invar-tools guard

Why the Split?

  • invar-runtime (~3MB): Lightweight, only what your project needs at runtime
  • invar-tools (~100MB): Full development tools with Hypothesis, CrossHair, etc.

Projects can now depend on just invar-runtime without the heavy verification tools.

Links

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

python_invar-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

python_invar-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file python_invar-1.0.0.tar.gz.

File metadata

  • Download URL: python_invar-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_invar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 06b871649d36d4c21bae1d63b623d0bad3f60c59acde85cc7f11abcda0b5cd4f
MD5 dc063c8ca3a9b997d8ad5952df5f22c5
BLAKE2b-256 ec8c4da4ad7c218b6cc7fc06965eb91439f597cb66cf639e768a2a10aac76696

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_invar-1.0.0.tar.gz:

Publisher: publish.yml on Tefx/Invar

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

File details

Details for the file python_invar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: python_invar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_invar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 040767a9023ae4d324290da6a1ceef01dc68dd3e56eb4079ac4133e561efacc4
MD5 5abd57352325dc2f7084c36c14841cfe
BLAKE2b-256 b572a595269482cf3e0ddff62768fa932cf1c524a92b9c80d657810d37f0257d

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_invar-1.0.0-py3-none-any.whl:

Publisher: publish.yml on Tefx/Invar

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