FPy
An embedded Python DSL for specifying and simulating numerical algorithms.
Important links:
- PyPI package: fpy2
- Documentation: fpy.readthedocs.io
- GitHub: fpy
- Guide: USAGE.md
Installation
FPy can be installed from PyPI with either uv or pip, or built from
source for development. The following instructions assume a bash-like
shell.
Installing from PyPI
Requirements:
- Python 3.11 or later
To install the latest stable release of FPy, run:
uv pip install fpy2
or, with pip:
pip install fpy2
Installing from source
Requirements:
- Python 3.11 or later
make
With uv (preferred)
uv is the recommended development workflow — it handles the virtual environment and dependency installation in a single step:
uv sync
This creates .venv/ and installs FPy in editable mode along with the
dev dependency group. Activate the environment with
source .venv/bin/activate
or prefix individual commands with uv run (e.g. uv run pytest tests/unit).
With pip (legacy)
This path is preserved for compatibility with existing tooling; new
contributors should prefer uv above.
If you do not have a Python virtual environment, create one using
python3 -m venv .venv/
and activate it using
source .venv/bin/activate
To install an instance of FPy for development, run:
pip install -e .[dev]
To uninstall FPy, run:
pip uninstall fpy2
Testing
There are a number of tests that can be run through
the Makefile including
make lint
to ensure formatting and type safety;
make unittest
to run the unit tests;
make infratest
to run the infrastructure tests.
Metadata
Release files for fpy2 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fpy2-0.2.3.tar.gz | 509.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fpy2-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / fpy2-0.2.3.tar.gz
| Download URL | fpy2-0.2.3.tar.gz |
|---|---|
| Size | 509.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14660e3820232c1a0dd12439a9fac84927338e9de7cb5b096576157b95e092d8
|
|
BLAKE2b-256 checksum How to use checksums |
21519f54c63b3ae5e001881b6ab2801194140daed9fd442de25b8ccf19a201cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / fpy2-0.2.3-py3-none-any.whl
| Download URL | fpy2-0.2.3-py3-none-any.whl |
|---|---|
| Size | 607.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6730dfcbd94a580fe714b548ee0f89bd2ad83a6b8d6096730b03554e35232d0
|
|
BLAKE2b-256 checksum How to use checksums |
aff14fea24e0b2eb389e39c8f955242cc04809a74f77a0ca0d7a33fdd5ef0f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|