Skip to main content

Registry-based object builder for nested configs.

Project description

specbuild

PyPI version

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


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)

Uploaded Source

Built Distribution

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

specbuild-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for specbuild-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9516eaf44afd072d0e07b8a7fba1e0589d2cb064db4b23c7fae8004aa06f7e78
MD5 e4da385698410efb373f3e254d426311
BLAKE2b-256 e5b945380a6f4c8924fd06021dfadf1a65484dfd33f4cd48df4e289319586953

See more details on using hashes here.

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

Hashes for specbuild-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9ef334dd42f43e85fe89bdc24a2b7377f3d45a5ab6b683eb453afd0b86070e
MD5 81c0376c877732db5f022a55d68205e2
BLAKE2b-256 8026ff07c4c1656f2d1498a5b7f6e5182de4561ebd84af7e9cb4c7bf76af188b

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