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.8.0.tar.gz (51.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: gin_config_v2-0.8.0.tar.gz
  • Upload date:
  • Size: 51.8 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.8.0.tar.gz
Algorithm Hash digest
SHA256 b286afc2db110d07540602c1071384e68bdd8ffdc09c1218aa82c770832c35b8
MD5 34c04518cfacedb0eeccfbfbbb2150d8
BLAKE2b-256 ad30956005d83269d49a279fc64b9e6b60a7dec5b13ce0d2b070f53a42a29f2e

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