Registry-based object builder for nested configs.
Project description
specbuild
Registry-based object builder for nested configuration dictionaries.
Docs: https://kabouzeid.github.io/specbuild/
Install
pip install specbuild
Quick start
from specbuild import register, build
@register()
class Encoder:
def __init__(self, channels: int):
self.channels = channels
cfg = {"type": "Encoder", "channels": 64}
model = build(cfg)
Works well with cfgx for loading config dictionaries.
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
specbuild-0.1.0.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 specbuild-0.1.0.tar.gz.
File metadata
- Download URL: specbuild-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9516eaf44afd072d0e07b8a7fba1e0589d2cb064db4b23c7fae8004aa06f7e78
|
|
| MD5 |
e4da385698410efb373f3e254d426311
|
|
| BLAKE2b-256 |
e5b945380a6f4c8924fd06021dfadf1a65484dfd33f4cd48df4e289319586953
|
File details
Details for the file specbuild-0.1.0-py3-none-any.whl.
File metadata
- Download URL: specbuild-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a9ef334dd42f43e85fe89bdc24a2b7377f3d45a5ab6b683eb453afd0b86070e
|
|
| MD5 |
81c0376c877732db5f022a55d68205e2
|
|
| BLAKE2b-256 |
8026ff07c4c1656f2d1498a5b7f6e5182de4561ebd84af7e9cb4c7bf76af188b
|