Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sichercalc

Fork of ast_calculator, modernized and refactored as a reusable library.

What is SicherCalc?

When you need to evaluate simple mathematical or logical expressions supplied by untrusted users, you need a sandboxed environment that prevents arbitrary code execution. SafeCalc parses the expression into an abstract syntax tree (AST), inspects each node, and evaluates only those that belong to a predefined, whitelisted set of operations.

Why AST?

An abstract syntax tree (AST) is a tree‑structured representation of source code. By operating on the AST we can precisely control which constructs are allowed, eliminating the security risks associated with eval().

Features

  • No eval() – pure AST parsing and controlled evaluation
  • Extensible – register your own custom functions
  • Works on Python 3.10+

Getting Started

Installation

pip install sichercalc

CHANGELOG

0.0.0.dev1

  • New publishing try due to workflow error in 0.0.0.dev0.
  • Invalid development status classifier and workflow corrections.

0.0.0.dev0

Hello, world!

Metadata

Release files for sichercalc 0.0.0.dev1

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

Source distribution (sdist)

Source distribution for sichercalc 0.0.0.dev1
File Size Uploaded Provenance Actions
sichercalc-0.0.0.dev1.tar.gz 4.8 kB With provenance Details for sichercalc-0.0.0.dev1.tar.gz

Built distribution (wheel)

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

Total release size: 10.4 kB

Release files / sichercalc-0.0.0.dev1.tar.gz

Download URL sichercalc-0.0.0.dev1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6a2b0913a8f5869004920d213a8c9517ff9d10fe07c9e920c7a7ac6b7f2797d2
BLAKE2b-256 checksum
How to use checksums
e2e45dc1965a331edcd07cc045876635b229c39a87e854c5a0b753e29a3a72de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.

Transparency log

Release files / sichercalc-0.0.0.dev1-py3-none-any.whl

Download URL sichercalc-0.0.0.dev1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1ef239bdc667c9fc93f4c48d9ad039a06890d294ce01d89138da729182f871a
BLAKE2b-256 checksum
How to use checksums
f19f1b4cafe1273976fb337f65e73070fe473ba143ec4b9bf05330fd4b7a470d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.

Transparency log

Security for sichercalc 0.0.0.dev1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sichercalc-0.0.0.dev1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.

Transparency log

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
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