Skip to main content

Utilities for Burla.dev (unofficial)

Project description

burla_io

Tiny utilities you can import directly:

  • cd: a context manager to temporarily change the current working directory.
  • prepare_inputs: builds cartesian-product parameter dictionaries for test inputs.

Install (local)

From this folder, run:

pip install .

Or for development/editable mode:

pip install -e .

Usage

from burla_io import cd, prepare_inputs

with cd("/tmp"):
    ...  # do work in /tmp

combos = prepare_inputs({
    "lr": [1e-3, 1e-4],
    "batch": [16, 32],
})
# combos -> [
#   {"lr": 0.001, "batch": 16},
#   {"lr": 0.001, "batch": 32},
#   {"lr": 0.0001, "batch": 16},
#   {"lr": 0.0001, "batch": 32},
# ]

License

MIT

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

burla_io-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

burla_io-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file burla_io-0.1.0.tar.gz.

File metadata

  • Download URL: burla_io-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for burla_io-0.1.0.tar.gz
Algorithm Hash digest
SHA256 35fe138836b3da038fac700dafae1452f0ac90f022f29742f5fa05b43756c48a
MD5 682d290b87fa67f7fb53b5c3ba8fe140
BLAKE2b-256 d26711922cab9de08832fe53697b6d7a9e3b2994cdb43b475d57ce566ae2be1f

See more details on using hashes here.

File details

Details for the file burla_io-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: burla_io-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for burla_io-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d39bd0e580f2f115b9faa6205d3be8ec4a06b9322242d029b3783b8703e3c65
MD5 30ef63f6e1d273fdd0f895b790c414c6
BLAKE2b-256 8ce24a4dba1e6286a2369ba7db382471c1b85238559d60a0b5ac5aa6144eae1a

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