Skip to main content

Caching system for scaling of synthetic data generators using MongoDB

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wirehead-0.9.3.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wirehead-0.9.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file wirehead-0.9.3.tar.gz.

File metadata

  • Download URL: wirehead-0.9.3.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wirehead-0.9.3.tar.gz
Algorithm Hash digest
SHA256 d82c0a2eb02d19440840b21c5d4848b3eed2e9a3f53beafc19c0a61811dde71b
MD5 9c105a13949331bb291b01705697f314
BLAKE2b-256 5d9d83ca6e2d716bdff174fc7b7b058d064e03d68d6ca05b0656c34afca307ad

See more details on using hashes here.

File details

Details for the file wirehead-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: wirehead-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wirehead-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31ec908e83d2b0b47f3e7005a808750c452e279ca09ba223dad637128f6686b3
MD5 7254f4a9e98537b4f773c1633085407f
BLAKE2b-256 9a6549c7d547e4d1f6984339c4394c52e92a04dd1217232a71a0dfedb9f26cf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page