Skip to main content

rdm-ppl

rdm-ppl generates random IDs, names, and dates. The PyPI distribution is named rdm-ppl; the Python import is rdm_ppl.

Install

Requires Python 3.10 or newer.

python -m pip install rdm-ppl

For development, run this from the project directory:

python -m pip install -e .

This also installs the python-dateutil dependency used for calendar year calculations.

Use

from datetime import date
from rdm_ppl import gen_id, gen_name, gen_date

gen_id()                       # 8 alphanumeric characters
gen_id(12)                     # 12 alphanumeric characters
gen_name()                     # two names using the default syllables
gen_name(format=[2], syllables=["la"])  # "Lala"

gen_date()                     # between four years ago and today
gen_date(end=date(2024, 2, 29))  # four calendar years before end through end
gen_date(years=2)              # two calendar years ago through today
gen_date(end=date(2024, 2, 29), years=2)
gen_date(start=date(2020, 1, 1))  # given start through today
gen_date(start=date(2020, 1, 1), end=date(2024, 1, 1))

gen_date includes both range endpoints. Supply either start or years; if neither is supplied, it uses four years. end defaults to today's local date. Dates must be datetime.date objects. gen_id requires an integer length of at least 1. gen_name uses its built-in syllables when syllables is omitted or an empty list is passed. Each number in format must be at least 2.

Run the tests

From the project directory in Command Prompt, install the project in editable mode and run the standard-library test suite:

python -m pip install -e .
python -m unittest discover -s tests -v

Publish an update to PyPI

  1. Change version in pyproject.toml to a new version. PyPI does not allow replacing an already uploaded distribution file.

  2. Run the tests shown above.

  3. Install the release tools and build the new distributions:

    python -m pip install --upgrade build twine
    rmdir /s /q dist
    python -m build
    python -m twine check dist/*
    
  4. Create a PyPI API token at pypi.org. Upload the new wheel and source distribution:

    python -m twine upload dist/*
    

    When prompted, use the API token, the full pypi-... token. You will not be asked for a username or password. Keep the token private. Check the release at pypi.org/project/rdm-ppl.

Metadata

Release files for rdm-ppl 0.2.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 rdm-ppl 0.2.0
File Size Uploaded Provenance
rdm_ppl-0.2.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rdm-ppl 0.2.0
File Interpreter ABI Platform
rdm_ppl-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / rdm_ppl-0.2.0.tar.gz

Download URL rdm_ppl-0.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
19b82e41e13ab219f1db8bdd0de1a0f479faca10825cfe0b56a302200275bf5d
BLAKE2b-256 checksum
How to use checksums
abbf50da34b47a597a979e880a01f8f83b00c71476000e892ea68c19f7e8fe28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / rdm_ppl-0.2.0-py3-none-any.whl

Download URL rdm_ppl-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8853c2af350dfda75a7d60a29bb8298c0e2b5b3cac5d7fda4f13380972af7c0a
BLAKE2b-256 checksum
How to use checksums
e7b1e99b836a2f4a146fdec5963da2cad82f31d0e9ff4913e0d964a1634e9dca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for rdm-ppl 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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