Skip to main content

A Python package to generate random strings with numbers, characters, or both

Project description

am-random-generator

A simple Python package to generate random numbers, characters or both of a given length.

Installation

pip install am-random-generator

Usage

from randomgen import generate_random

# Generate both numbers and characters (default)
print(generate_random(8))  # e.g., "a2b9c4d8"

# Generate numbers only
print(generate_random(5, 'number'))  # e.g., "12345"

# Generate characters only
print(generate_random(10, 'char'))  # e.g., "abcdefghij"

Development

To install the package locally for development:

git clone https://github.com/ashish4824/RandomValue.git
cd RandomValue
pip install -e .

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

am_random_generator-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

am_random_generator-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file am_random_generator-0.1.1.tar.gz.

File metadata

  • Download URL: am_random_generator-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for am_random_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 059e3aa85b3a017064b79319bdef261859afa411222d6373d1107afaff8c8deb
MD5 4117cb21de0022c0451df6d0ae6adb75
BLAKE2b-256 ffa42b807256f59c49f2dfe99e8734902643cb12a18806472889118db254c2bb

See more details on using hashes here.

File details

Details for the file am_random_generator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for am_random_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa77f10415dc21f34539ae4ddef1120b10c9c5d6ab64b0080fb346fbf11c57f8
MD5 6e1161c7684d69f27a0a2f0f1470d27e
BLAKE2b-256 9a2d2af10fad5fb14eec25da10b286a5cd499fa74617d5f6ee0572051ec5d37c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page