pyfex
Lightweight, zero-dependency Python library & CLI to fetch and execute remote Python scripts over HTTP/HTTPS.
Installation
pip install pyfex
Usage
Python API
from pyfex import fex, fetch
# Fetch and execute (https:// is optional)
fex("example.com/script.py")
# Pass variables into the executed script namespace
ns = {"x": 42}
if fex("https://example.com/script.py", namespace=ns, timeout=15):
print("Done!", ns.get("result"))
# Only fetch without executing
status, text = fetch("example.com")
CLI
pyfex example.com/script.py --timeout 10
Security Notice
fex() executes arbitrary Python code via exec(). Only use it with trusted URLs over HTTPS.
Metadata
Release files for pyfex 0.1.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 |
|---|---|---|---|---|
| pyfex-0.1.0.tar.gz | 4.7 kB | Without provenance | Details for pyfex-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyfex-0.1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / pyfex-0.1.0.tar.gz
| Download URL | pyfex-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56e90f79c75a8d5e76adebfe9b6227f8b9ded4cb0bdd5b54c05dd44a3f94965d
|
|
BLAKE2b-256 checksum How to use checksums |
d137e0a892939e812e5ca65ddb3d9b6e7608380a933f78d9b353bab2f1aa811a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.0
|
Release files / pyfex-0.1.0-py3-none-any.whl
| Download URL | pyfex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
460a92d3f4cddaee235a702e1babdb75bb735cb81813b6b1e71457b131afb0da
|
|
BLAKE2b-256 checksum How to use checksums |
dd0a06324272e7d6aeacb6c631b39f19ab41627fcadb36b77c34ec2c141ec237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.0
|
Security for pyfex 0.1.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.