Skip to main content

django-json-secrets

JSON secrets to Django settings module

Setup

  • install it via pip install django-json-secrets

Usage

  • Setup ‘SECRET_DIR’ to settings module

    SECRETS_DIR = os.path.join(ROOT_DIR, '.secrets')
  • Import library function

    from djs import import_secrets
  • Execute function

    import_secrets()
  • If there is a Python module needed to eval() the value of the secrets, define it in SECRETS_MODULES

    import requests
    
    SECRETS_MODULES = {
        'raven': 'raven',
        'requests': requests,
    }

Contributing

As an open source project, we welcome contributions.

The code lives on github.

Metadata

Release files for django-json-secrets 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-json-secrets 0.1.11
File Size Uploaded Provenance Actions
django-json-secrets-0.1.11.tar.gz 4.7 kB Without provenance Details for django-json-secrets-0.1.11.tar.gz

Release files / django-json-secrets-0.1.11.tar.gz

Download URL django-json-secrets-0.1.11.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f00f6de6e29c00e188ff0669316b9f56041287cbfe3d9813fefd1fd070d7f86c
BLAKE2b-256 checksum
How to use checksums
0563f105f63ef5e7c70eef1d77abe2f5a7eec34011f2b65c435b9b483af06b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for django-json-secrets 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page