معرفی شرکت ها


environ-config-23.2.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Boilerplate-free configuration with env variables.
ویژگی مقدار
سیستم عامل -
نام فایل environ-config-23.2.0
نام environ-config
نسخه کتابخانه 23.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Hynek Schlawack <hs@ox.cx>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/environ-config/
مجوز -
# *environ-config*: Application Configuration With Env Variables [![Documentation](https://img.shields.io/badge/Docs-Read%20The%20Docs-black)](https://environ-config.readthedocs.io/) [![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-C06524)](https://github.com/hynek/environ-config/blob/main/LICENSE) [![PyPI version](https://img.shields.io/pypi/v/environ-config)](https://pypi.org/project/environ-config/) [![Downloads / Month](https://static.pepy.tech/personalized-badge/environ-config?period=month&units=international_system&left_color=grey&right_color=blue&left_text=Downloads%20/%20Month)](https://pepy.tech/project/environ-config) <!-- teaser-begin --> *environ-config* allows you to configure your applications using environment variables – as recommended in [*The Twelve-Factor App*](https://12factor.net/config) methodology – with elegant, boilerplate-free, and declarative code: ```pycon >>> import environ >>> # Extracts secrets from Vault-via-envconsul: 'secret/your-app': >>> vault = environ.secrets.VaultEnvSecrets(vault_prefix="SECRET_YOUR_APP") >>> @environ.config(prefix="APP") ... class AppConfig: ... @environ.config ... class DB: ... name = environ.var("default_db") ... host = environ.var("default.host") ... port = environ.var(5432, converter=int) # Use attrs's converters and validators! ... user = environ.var("default_user") ... password = vault.secret() ... ... env = environ.var() ... lang = environ.var(name="LANG") # It's possible to overwrite the names of variables. ... db = environ.group(DB) ... awesome = environ.bool_var() >>> cfg = environ.to_config( ... AppConfig, ... environ={ ... "APP_ENV": "dev", ... "APP_DB_HOST": "localhost", ... "LANG": "C", ... "APP_AWESOME": "yes", # true and 1 work too, everything else is False ... # Vault-via-envconsul-style var name: ... "SECRET_YOUR_APP_DB_PASSWORD": "s3kr3t", ... }) # Uses os.environ by default. >>> cfg AppConfig(env='dev', lang='C', db=AppConfig.DB(name='default_db', host='localhost', port=5432, user='default_user', password=<SECRET>), awesome=True) >>> cfg.db.password 's3kr3t' ``` `AppConfig.from_environ({...})` is equivalent to the code above, depending on your taste. ## Features - Declarative & boilerplate-free. - Nested configuration from flat environment variable names. - Default & mandatory values: enforce configuration structure without writing a line of code. - Built on top of [*attrs*](https://www.attrs.org/) which gives you data validation and conversion for free. - Pluggable secrets extraction. Ships with: - [HashiCorp Vault](https://www.vaultproject.io) support via [*envconsul*](https://github.com/hashicorp/envconsul). - [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) (needs [*boto3*](https://pypi.org/project/boto3/)) - INI files, because secrets in env variables are icky. - Helpful debug logging that will tell you which variables are present and what *environ-config* is looking for. - Built-in dynamic help documentation generation. <!-- teaser-end --> You can find the full documentation including a step-by-step tutorial on [Read the Docs](https://environ-config.readthedocs.io/). ## Project Information *environ-config* is maintained by [Hynek Schlawack](https://hynek.me/) and is released under the [Apache License 2.0](https://github.com/hynek/environ-config/blob/main/LICENSE) license. It targets Python 3.7 and newer, and PyPy. Development takes place on [GitHub](https://github.com/hynek/environ-config). The development is kindly supported by [Variomedia AG](https://www.variomedia.de/). *environ-config* wouldn't be possible without the [*attrs* project](https://www.attrs.org). ## *environ-config* for Enterprise Available as part of the Tidelift Subscription. The maintainers of *structlog* and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.](https://tidelift.com/subscription/pkg/pypi-environ-config?utm_source=pypi-environ-config&utm_medium=pypi) ## Release Information ### Fixed - Type hints for `environ.config()` now allow for arguments (e.g. `@environ.config(prefix="")`). [#56](https://github.com/hynek/environ-config/issues/56) --- [**Full Changelog**](https://www.structlog.org/en/stable/changelog.html)


نیازمندی

مقدار نام
- attrs>=17.4.0
ython_versio importlib-metadata;
xtr boto3;
xtr environ-config[docs,tests];
xtr environ-config[aws];
xtr furo;
xtr myst-parser;
xtr sphinx;
xtr sphinx-notfound-page;
xtr coverage[toml];
xtr moto;
xtr pytest;


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl environ-config-23.2.0:

    pip install environ-config-23.2.0.whl


نصب پکیج tar.gz environ-config-23.2.0:

    pip install environ-config-23.2.0.tar.gz