Runtime loader for Virtuous Python clients
Project description
Virtuous Loader
Stdlib-only loader for Virtuous runtime-generated Python clients.
Install
pip install virtuous
Usage
from virtuous_loader import load_module, load_module_to_disk, get_remote_hash
module = load_module("https://api.example.com/client.gen.py")
client = module.create_client("https://api.example.com")
# Optional: write to disk and import later
module = load_module_to_disk(
"https://api.example.com/client.gen.py",
"/tmp/client.gen.py",
)
# Optional: fetch the server-provided hash
remote_hash = get_remote_hash("https://api.example.com/client.gen.py")
Notes
- This loader executes remote Python code. Use trusted endpoints only.
get_remote_hashreads from<url>.sha256.- Loaded modules expose
__virtuous_hash__with the computed SHA-256 digest.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
virtuous-0.0.5.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file virtuous-0.0.5.tar.gz.
File metadata
- Download URL: virtuous-0.0.5.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c8f5c19ab183a3c75ab63249a59689d22e30511ad3c0a3705b0ab2546df8ac
|
|
| MD5 |
3db43624d751fba58e4d7d453151593d
|
|
| BLAKE2b-256 |
d2fab76645cde15e71a36490719ccdc842e3b260d2df2157b2249f160bc62dab
|
File details
Details for the file virtuous-0.0.5-py3-none-any.whl.
File metadata
- Download URL: virtuous-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25f6ea0c29d2cbc21106012b1ea97ef7b24d359e3ae4785d12bb76c1b79ee66d
|
|
| MD5 |
a44576b368f9b007e66d3db76c7bd836
|
|
| BLAKE2b-256 |
c0625694204252eca0a4b94b35e230e73a17aab4cbdc8ea334911c63981e63fa
|