Wirehead
Caching system for scaling of synthetic data generators using MongoDB.
Features
- Cache and efficiently serve synthetic data from generators
- Scalable architecture using MongoDB for storage
- Support for numpy and torch tensors
- Configurable caching behavior
Quick Start
# Generator example
import numpy as np
from wirehead import WireheadGenerator
def create_generator():
while True:
img = np.random.rand(256,256,256)
lab = np.random.rand(256,256,256)
yield (img, lab)
brain_generator = create_generator()
wirehead_runtime = WireheadGenerator(
generator = brain_generator,
config_path = "config.yaml"
)
wirehead_runtime.run_generator()
# Dataset example
from wirehead import MongoheadDataset
dataset = MongoheadDataset(config_path = "config.yaml")
data = dataset[[0]]
MongoDB Setup Required
Requires a running MongoDB instance.
Documentation
For full documentation and examples, visit: https://github.com/neuroneural/wirehead
Metadata
Release files for wirehead 0.9.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 | Provenance | |
|---|---|---|---|---|
| wirehead-0.9.3.tar.gz | 15.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wirehead-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.7 kB
Release files / wirehead-0.9.3.tar.gz
| Download URL | wirehead-0.9.3.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d82c0a2eb02d19440840b21c5d4848b3eed2e9a3f53beafc19c0a61811dde71b
|
|
BLAKE2b-256 checksum How to use checksums |
5d9d83ca6e2d716bdff174fc7b7b058d064e03d68d6ca05b0656c34afca307ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / wirehead-0.9.3-py3-none-any.whl
| Download URL | wirehead-0.9.3-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31ec908e83d2b0b47f3e7005a808750c452e279ca09ba223dad637128f6686b3
|
|
BLAKE2b-256 checksum How to use checksums |
9a6549c7d547e4d1f6984339c4394c52e92a04dd1217232a71a0dfedb9f26cf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for wirehead 0.9.3
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.