devel/py-python-decouple 3.8
Strict separation of settings from code
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 15.3 KiB, 51.8 KiB installed
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)
Install
As a binary package — by origin, or by package name:
pkg install devel/py-python-decouple
pkg install py312-python-decouple
From the ports tree:
cd /usr/ports/devel/py-python-decouple/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-python-decouple>0:devel/py-python-decouple
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.8 | 3.8 | 3.6 | 3.8 | 3.8 |
| FreeBSD:14:quarterly | 3.8 | 3.8 | n/a | 3.6_1 | 3.8 |
| FreeBSD:15:latest | 3.8 | 3.8 | n/a | 3.8 | 3.8 |
| FreeBSD:15:quarterly | 3.8 | 3.8 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.8 | 3.8 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
All build dependencies 11
All run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| python-decouple-3.8.tar.gz | 9612 | ba6e2657d4f376ecc46f77a3a615e058d93ba5e465c01bbe57289bfb7cce680f |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.