fxy
fxy is a small loader for reusable Python import vocabularies.
A vocabulary lives in a GitHub repository as a declarative fxy.py. fxy can inspect it without importing its dependencies, install the packages it declares, materialize its imports as a dictionary, or inject them into the current interactive namespace.
import fxy
fxy.describe("mindey/cas")
fxy.install("mindey/cas")
fxy.use("mindey/cas")
The interpreter remains ordinary Python. The same vocabulary can be used from CPython, IPython, Jupyter, QtConsole, a script, or another Python host.
Canonical vocabularies
Three small canonical profiles provide useful starting points:
- mindey/calc@v1 — arbitrary-precision numerical calculation with mpmath and eday;
- mindey/cas@v1 — symbolic mathematics with SymPy and mpmath;
- mindey/lab@v1 — NumPy/pandas/xarray/SciPy/scikit-learn/statsmodels, plus SymPy, mpmath, and eday.
Use an unpinned name such as mindey/cas when following the profile's current main branch is intentional. Use @v1 or an exact commit for reproducible work.
Profiles
A profile is deliberately small:
__fxy_profile__ = 1
__requires__ = [
"sympy>=1.13",
"mpmath>=1.3",
]
import sympy as sp
from sympy import Eq, diff, integrate, solve, symbols
from mpmath import mp
Schema 1 permits only:
- an optional module docstring;
- fxy_profile = 1;
- optional literal requires = [...];
- absolute import and from ... import ... statements.
The profile file itself cannot contain function calls, definitions, control flow, or other executable statements. Imported Python packages retain their normal import-time behavior.
Four operations
Inspect without importing the declared packages:
info = fxy.describe("mindey/cas")
info["requirements"]
info["bindings"]
info["sha256"]
Explicitly install the declared requirements into the current interpreter:
fxy.install("mindey/cas")
Materialize the vocabulary without changing the caller:
cas = fxy.namespace("mindey/cas")
cas["solve"](...)
Or inject it into the current namespace:
fxy.use("mindey/cas")
solve(...)
install() is the only operation that modifies the Python environment. namespace() and use() never install packages implicitly.
Versioning and reproducibility
The profile schema and the vocabulary have separate versioning.
fxy_profile = 1 versions the declarative profile language. Git versions the vocabulary itself:
fxy.use("mindey/cas@main")
fxy.use("mindey/cas@v1")
fxy.use("mindey/cas@44e0c10f778d8564fa4ff884b5a22ed651f368a5")
Pin a commit when reproducibility matters.
Unpinned branches are cached. Pass refresh=True to describe(), install(), namespace(), or use() when you intentionally want to refetch one. The cache defaults to the platform user cache directory and can be overridden with FXY_CACHE_DIR.
Installation
The core has no runtime dependencies:
pip install fxy
Scientific, symbolic, plotting, data, or other packages belong to profiles, not to fxy itself.
Design
fxy does one thing:
transport, validate, and realize import vocabularies.
It does not define scientific environments, own a package registry, provide a calculator shell, install Jupyter kernels, or wrap numerical libraries.
Metadata
Release files for fxy 0.9.0
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 |
|---|---|---|---|---|
| fxy-0.9.0.tar.gz | 8.1 kB | Without provenance | Details for fxy-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fxy-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for fxy-0.9.0-py3-none-any.whl |
Total release size: 14.5 kB
Release files / fxy-0.9.0.tar.gz
| Download URL | fxy-0.9.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffefac795c1aa0d770b58c83063b445b63cfdf37212a326d157b27919ac36432
|
|
BLAKE2b-256 checksum How to use checksums |
df3399976ed15e5d2a7b98e38f99de2cf0d9cb60064946b343786a3304fe5b07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / fxy-0.9.0-py3-none-any.whl
| Download URL | fxy-0.9.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e31617b4e0bea8b17776caa8b52cf2b5a2b059699c57055a626b8543b8b6641b
|
|
BLAKE2b-256 checksum How to use checksums |
5f1a5786758b5ba86c05e5c784677564c6f8200ce0c88d8bcf0571fd06236a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for fxy 0.9.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.