constraintula
import attrs
import constraintula
import numpy as np
PI = np.pi
area, radius = constraintula.symbols('area radius')
@constraintula.constrain([area - PI * radius**2])
@attrs.define(frozen=True) # or `@attrs.frozen`
class Circle:
radius: float
area: float
circle_from_radius = Circle(radius=2)
circle_from_area = Circle(area=42)
Installation
User
pip install constraintula
Developer
pip install -e .[dev]
Disclaimer
This is not an officially supported Google product.
Metadata
Release files for constraintula 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| constraintula-0.3.1.tar.gz | 10.5 kB | Without provenance | Details for constraintula-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| constraintula-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for constraintula-0.3.1-py3-none-any.whl |
Total release size: 22.2 kB
Release files / constraintula-0.3.1.tar.gz
| Download URL | constraintula-0.3.1.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5205b74133628a4299c54862af33e3a0226c8b17fe8f1fc293be5046f356f7a0
|
|
BLAKE2b-256 checksum How to use checksums |
06aa48dbbb1a410b923f03d82405a8d307dd8ca58fd9f23165662473487b90d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / constraintula-0.3.1-py3-none-any.whl
| Download URL | constraintula-0.3.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa21e7b5ed18c2dbf2cf342eac84f2d03a99d608e6dcf97bc3f3e54a5351dac0
|
|
BLAKE2b-256 checksum How to use checksums |
2e88a3bf137737db095ec4395c38b520b3faeb1bb1028ea42a75bb6303404877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for constraintula 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.