Metadata-Version: 2.4
Name: pyfex
Version: 0.1.0
Summary: Lightweight zero-dependency utility to fetch and execute remote Python scripts.
License: MIT
Keywords: fetch,exec,http,remote,script,loader
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# pyfex

Lightweight, zero-dependency Python library & CLI to fetch and execute remote Python scripts over HTTP/HTTPS.

## Installation

```bash
pip install pyfex
```

## Usage

### Python API

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

```bash
pyfex example.com/script.py --timeout 10
```

## Security Notice

`fex()` executes arbitrary Python code via `exec()`. Only use it with trusted URLs over HTTPS.
