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.2.tar.gz (15.3 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.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wirehead-0.9.2.tar.gz
  • Upload date:
  • Size: 15.3 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.2.tar.gz
Algorithm Hash digest
SHA256 488f43a1a93dd50c330097ed183976e28c71981b10142960b044808723a5bdf9
MD5 c2c5f7f2a5da5af6a00ee8cedd0a5cd6
BLAKE2b-256 ca5d3797b5a6b64f3c8b75d286af4e2fdfa4bfe8b3dd452d0b754f992879ba83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wirehead-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42a499150715e6b29232252980b6fcb53ec71413533e0728c5a30b857db4cc5c
MD5 7c08067c660c4f53be8397a8b043c51f
BLAKE2b-256 663ff55b977aa797a177d4009b540cdc0e1d36ddd825a8bd27b318cbde9c32de

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