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.1.tar.gz (4.6 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_typed_settings-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 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.1.tar.gz
Algorithm Hash digest
SHA256 2f4a8de8846f96590a453433976b604303b1dd14ab93056ed9ced68d56951be6
MD5 b587d6bb36628ed8af4e0c499bc3591e
BLAKE2b-256 98dbe32d56b206435a2afc7f8e7be353f90ddcc66f40aecf102dc89f2702290b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_typed_settings-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d502a21aae1c2cbff28f54277702d7ba800fc3abbab72a9a53201551cf6bab09
MD5 5ef49bd02d38fa0b8e358736b7a06317
BLAKE2b-256 a6c4d3b1614cc23fb842e1470d98e19ec33d5f3784d0917b56990e6e7c8c19d4

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