Skip to main content
https://github.com/petrnymsa/jdog/workflows/build-test/badge.svg https://readthedocs.org/projects/jdog/badge/?version=latest

Just another Data Offline Generator (JDOG) 🐶

🗎 Full documentation.

  • JDOG is Python library which helps generate sample data for your projects.

  • JDOG can be run also as CLI tool.

  • For generating sample data, the data scheme is provided

  • The scheme is in JSON format

Scheme

  • Scheme is provided in JSON format with special placeholders.

  • Placeholder is something like variable, where generated data will be replaced.

  • Output is nearly the same as scheme besides replaced placeholders.

In the simplest form, given JSON scheme

{
    "name": "Bob",
    "age" : "18"
}

is valid scheme although no additional generation will proceed.

The simplest example can be

{
    "name": "Bob",
    "age": "{{number(18,100)}"
}

which produce Bob with any age between <18, 99> e.g:

{
    "name": "Bob",
    "age": 26
}

More useful example

{
    "{{range(people, 4)}}": {
        "name": "{{first_name}}",
        "age" : "{{number(18, 100)}}"

    }
}

generates array of size 4 with objects containing name and age. The result

{
    "people": [{
            "name": "Bob",
            "age": "18"
        },
        {
            "name": "Alice",
            "age": 25
        },
        {
            "name": "George",
            "age": 85
        },
        {
            "name": "Janice",
            "age": 34
        }
    ]
}

TODO - faker info

Metadata

Release files for jdog 0.1.0

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

Source distribution (sdist)

Source distribution for jdog 0.1.0
File Size Uploaded Provenance Actions
jdog-0.1.0.tar.gz 9.8 kB Without provenance Details for jdog-0.1.0.tar.gz

Release files / jdog-0.1.0.tar.gz

Download URL jdog-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c0bd2f5757600b3b6563b72f49aaa4911099707beace1310da610d22c76f42cb
BLAKE2b-256 checksum
How to use checksums
0a63f879768de79deba15e31c21eb1d120252f503b66c539fe1310fd856fd7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Security for jdog 0.1.0

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