Skip to main content

dsgen

License

Apache License Version 2.0

Usage

a) used in a single app:

# app/settings.py
from django.test.signal import setting_changed
from dsgen.utils import DSetting

class AppSetting(DSettting):
    SETTING_NAME = 'DEMO_APP_SETTING'
    DEFAULT = {
        '': False,
    }
    def get_passthrough_fields(self):
        fields = (
            'MEDIA_ROOT',
        )
        return fields

app_setting = AppSetting()
setting_changed.connect(app_setting.signal_handler_setting_changed)

b) used in project:

# project/settings.py
import os
from dsgen.utils import DSGenerator

class ProjectSetting(DSGenerator):
    DEFAULT_JSON_FILE = 'project.json'
    default_app_list = [
        'django.contrib.auth',
        'coolapp',
    ]

_proj = ProjectSetting(
    json_path=os.getenv(
        'PROJECT_CONFIG_JSON',
        os.path.join(
            '/etc',
            'coolproject',
            ProjectSetting.DEFAULT_JSON_FILE
        )
    )
)
__dir__ = _proj.get_config_field_list
__getattr__ = _proj.get_config_value

Metadata

Release files for dsgen 2.23012005.1342

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

Built distribution (wheel)

Table of built distributions (wheels) for dsgen 2.23012005.1342
File Interpreter ABI Platform Actions
dsgen-2.23012005.1342-py3-none-any.whl Python 3 none any Details for dsgen-2.23012005.1342-py3-none-any.whl

Release files / dsgen-2.23012005.1342-py3-none-any.whl

Download URL dsgen-2.23012005.1342-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
955035bc00b0780f725d42b99aec6c09fa42413e6688c20a0ea11f290bf0f950
BLAKE2b-256 checksum
How to use checksums
85f904a6ab18d2f60ef8a4c4a2a92680d2b8b228564847b1226857a9633dffae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Security for dsgen 2.23012005.1342

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