FreeBSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.83.83.63.83.8
FreeBSD:14:quarterly3.83.8n/a3.6_13.8
FreeBSD:15:latest3.83.8n/a3.83.8
FreeBSD:15:quarterly3.83.8n/an/an/a
FreeBSD:16:latest3.83.8n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
python-decouple-3.8.tar.gz9612ba6e2657d4f376ecc46f77a3a615e058d93ba5e465c01bbe57289bfb7cce680f
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.