Skip to main content

NWON Django seeding

Source: python-packages/packages/nwon-django-seeding.

A bunch of functions that you can use for creating seeds for your current application state and loading them.

This is build on top of Django fixtures. This package helps you handle database content and media files as well.

Settings

The Django Seeding package can be configured using the Django settings. We expect the key NWON_DJANGO_SEEDING that holds a dictionary or a pydantic object of type NWONDjangoSeedingSettings. The dictionary must be parsable by NWONDjangoSeedingSettings. The keys mus be snake case or camel case.

For example like this

def directories_for_environment(environment: str) -> SeedDirectories:
    return SeedDirectories(default_directory="", environment_directory="")

def file_seeds_for_environment(environment: str) -> List[ModelFolderMapping]:
    return []

def disable_seeding() -> List[Type[Model]]:
    return []    

def custom_seed_map() -> Dict[Type[Model], Dict[str, str]]:
    return {}        

NWON_DJANGO_SEEDING: NWONDjangoSeedingSettings = {
    disable_signals_before_seeding_model=disable_seeding,
    custom_seed_map=custom_seed_map,
    directories_for_environment=directories_for_environment,
    file_directories_for_environment=file_seeds_for_environment,
    default_app_name="nwon",
}

Metadata

Release files for nwon_django_seeding 1.0.9

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

Source distribution (sdist)

Source distribution for nwon_django_seeding 1.0.9
File Size Uploaded Provenance Actions
nwon_django_seeding-1.0.9.tar.gz 8.4 kB Without provenance Details for nwon_django_seeding-1.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 22.4 kB

Release files / nwon_django_seeding-1.0.9.tar.gz

Download URL nwon_django_seeding-1.0.9.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d8c32199c15114f86a1d85821cb40e47fd16d6386ecace819745ca396d11c2
BLAKE2b-256 checksum
How to use checksums
b4799ef44dd9d86b501a0695764dca30f20bd6a202329472fbc3596e1b8aa380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.6 Linux/6.8.0-149-generic

Release files / nwon_django_seeding-1.0.9-py3-none-any.whl

Download URL nwon_django_seeding-1.0.9-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a696bd6511dad231eee856a480b608f6e16b7834bc047f459e38a835f1aae14
BLAKE2b-256 checksum
How to use checksums
7555ddea13608fecbfa075c45d862ad320692c6a7c5b32d7338c7356c87ee341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.6 Linux/6.8.0-149-generic

Security for nwon_django_seeding 1.0.9

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