Skip to main content

Gin-Config: A lightweight configuration library for Python

Project description

Gin

Gin provides a lightweight configuration framework for Python, based on dependency injection. Functions or classes can be decorated with @gin.configurable, allowing default parameter values to be supplied from a config file (or passed via the command line) using a simple but powerful syntax. This removes the need to define and maintain configuration objects (e.g. protos), or write boilerplate parameter plumbing and factory code, while often dramatically expanding a project's flexibility and configurability.

Gin is particularly well suited for machine learning experiments (e.g. using TensorFlow), which tend to have many parameters, often nested in complex ways.

Authors: Dan Holtmann-Rice, Sergio Guadarrama, Nathan Silberman Contributors: Oscar Ramirez, Marek Fiser

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

gin_config_v2-0.7.0.tar.gz (51.9 kB view details)

Uploaded Source

File details

Details for the file gin_config_v2-0.7.0.tar.gz.

File metadata

  • Download URL: gin_config_v2-0.7.0.tar.gz
  • Upload date:
  • Size: 51.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gin_config_v2-0.7.0.tar.gz
Algorithm Hash digest
SHA256 344b19582a7d39914a734827bb2d9bb89f7f76dcb6f2361899db53a2f46bd0bb
MD5 eaf6ebbdbd269a6aa994ecdd0ff1685a
BLAKE2b-256 9507cb2a9c0d4025fdb3f6c49aef7703edfd96ea894733ab8bfc72ef4ba6e833

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