Skip to main content

Type validation for bare django configuration settings system

Project description

Django Typed Settings

Type validation for bare django configuration settings system. Alternative to django-environ and somehow pydantic

Example

# /settings.py

# Default Django way
TIMEOUT = 80                             # Hardcoded
TIMEOUT = os.environ.get("TIMEOUT", 80). # Environment, non-type safe

# Django Typed Settings
TIMEOUT = env_key('TIMEOUT', as_type=int, default=80) # Runtime checkable, type safe

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

django_typed_settings-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_typed_settings-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file django_typed_settings-0.1.0.tar.gz.

File metadata

  • Download URL: django_typed_settings-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Darwin/24.1.0

File hashes

Hashes for django_typed_settings-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7dc2f1c09103269c3cf32f4d8b3fb1d56d7af255db273de66163432fb981ef2
MD5 f942dc1b7f479527e1f35bf9ebf9b8a0
BLAKE2b-256 299c33b925afe5fd58fc07c7c7982fdceef43c9274a8c84b9ed16001e8cac211

See more details on using hashes here.

File details

Details for the file django_typed_settings-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_typed_settings-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed1dfd58eea2354bb256ebf409ece7cc7b7758013bc2cc35ac404246c98b724
MD5 98732918ae516a91f2004e3da4d7c1e8
BLAKE2b-256 c9fbff1adcb0314b6dd454df528bc9a31adc9ca0a415c5cd9414d64cd4c9a7f4

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