Skip to main content

I needed a way to generate random text strings for a variety of things. This module was created to fit the bill. You might find it useful as well.

Installation

Install this module with the standard pip install randomthings.

Usage

This module is a standard python module. Here are some examples of random things you can generate with it.

import random_things

>>> random_things.random_course()
'Hepatology'
>>> random_things.random_job_title()
'King of Town'
>>> random_things.random_animal()
'Rapid yellow snake'
>>> random_things.random_name()
('Carl','Banks')
>>> random_things.random_flower()
{'common_name': 'love-in-a-mist', 'botonical_name': 'nigella', 'meaning': ''}
There are others. Here is the current list:
  • random_animal

  • random_capital

  • random_course

  • random_flower

  • random_highschool_musical

  • random_job_title

  • random_name

  • random_president

  • random_sources

  • random_state

  • random_state_and_capital

Version 1.2.1.5

Added examples to the README

Version 1.2.1.4

Added an actual README with content…what a thought.

Metadata

Release files for RandomThings 1.2.1.6

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

Source distribution (sdist)

Source distribution for RandomThings 1.2.1.6
File Size Uploaded Provenance
randomthings-1.2.1.6.tar.gz 333.7 kB Without provenance Details

Release files / randomthings-1.2.1.6.tar.gz

Download URL randomthings-1.2.1.6.tar.gz
Size 333.7 kB
Tags Source
SHA-256 checksum
How to use checksums
61d6018ebbadbe649aea31990f06db7e2328d00c79302386e3525220d47cd432
BLAKE2b-256 checksum
How to use checksums
e8403b55e0fc5c7358181234ec3d38e1c934684e54470698ed98acdd8aa35c03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for RandomThings 1.2.1.6

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.

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