Skip to main content

Pygritia

Pygritia is a symbolic expression library.

It can

  • create symbolic expressions with one or more symbols
  • resolve symbolic expressions by substituting values to symbols
  • partially resolve symbolic expression

Example:

from pygritia import symbol, evaluate, update

this = symbol('this')
that = symbol('that')
arr = [1, 2, 3]
print(5 / this + 2 * 6)  # 5 / this + 12
print(evaluate(5 / this + 2 * 6, this=2))  # 14.5
print(evaluate(this[that], this=arr)) # [1, 2, 3][that]
update(this[that], 42, this=arr, that=1)
print(arr)  # [1, 42, 3]

Documentation of all public functions can be found in pygritia

Metadata

Release files for pygritia 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygritia 0.2.0
File Size Uploaded Provenance Actions
pygritia-0.2.0.tar.gz 61.2 kB Without provenance Details for pygritia-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygritia 0.2.0
File Interpreter ABI Platform Actions
pygritia-0.2.0-py3-none-any.whl Python 3 none any Details for pygritia-0.2.0-py3-none-any.whl

Total release size: 75.6 kB

Release files / pygritia-0.2.0.tar.gz

Download URL pygritia-0.2.0.tar.gz
Size 61.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9d27f2f2546ff2b58e929b6414cd1d97fc23f9182a3059da06f52f37716d6ec6
BLAKE2b-256 checksum
How to use checksums
e41d1bf32acadbd95823d9e3ddd2002e4be6fecf8893d21b03be4c41b98ea8e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / pygritia-0.2.0-py3-none-any.whl

Download URL pygritia-0.2.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4126dd4e56b38963ec547c18ec9e5498478b3416fae2b987c2d47707489c7c6d
BLAKE2b-256 checksum
How to use checksums
82d3e4bdffe38a2947e07cb3d8cdd120ae123df17a077ae7874f367075e7aa42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for pygritia 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page