Port details on branch 2022Q2 |
- py-python-decouple Strict separation of settings from code
- 3.6 devel =0 3.6Version of this port present on the latest quarterly branch.
- Maintainer: dvl@FreeBSD.org
- Port Added: 2022-01-06 16:00:05
- Last Update: 2023-06-27 19:34:34
- Commit Hash: 3d9a815
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/henriquebastos/python-decouple/
- Description:
- Decouple helps you to organize your settings so that you can change parameters
without having to redeploy your app.
It also makes it easy for you to:
* store parameters in ini or .env files;
* define comprehensive default values;
* properly convert values to the correct data type;
* have only one configuration module to rule all your instances.
* It was originally designed for Django, but became an independent generic too
for separating settings from code.
Import the config object:
from decouple import config
Retrieve the configuration parameters:
SECRET_KEY = config('SECRET_KEY')
DEBUG = config('DEBUG', default=False, cast=bool)
EMAIL_HOST = config('EMAIL_HOST', default='localhost')
EMAIL_PORT = config('EMAIL_PORT', default=25, cast=int)
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}python-decouple>0:devel/py-python-decouple@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-python-decouple/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-python-decouple
- pkg install py39-python-decouple
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-python-decouple listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-python-decouple
- Package flavors (<flavor>: <package>)
- py39: py39-python-decouple
- distinfo:
- TIMESTAMP = 1643916215
SHA256 (python-decouple-3.6.tar.gz) = 2838cdf77a5cf127d7e8b339ce14c25bceb3af3e674e039d4901ba16359968c7
SIZE (python-decouple-3.6.tar.gz) = 9547
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-python-decouple
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|