Skip to main content

a very simple tool to generate random string with digits and numbers.

Project description

simple-rands

a very simple tool to generate random string with digits and numbers.

Install

pip install simple-rands

Usage

import simple_rands
import string

# optional: set seed for generator
simple_rands.seed(12345)

# generate a random string with uppercase letter, lowercase letter, and number
length = 16
print(simple_rands.gen(length))

# generate base32 data
print(simple_rands.gen(length, char_pool=string.ascii_uppercase + "234567"))

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

simple_rands-0.1.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

simple_rands-0.1.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_rands-0.1.2.tar.gz.

File metadata

  • Download URL: simple_rands-0.1.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.12 Windows/11

File hashes

Hashes for simple_rands-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d35c63136e1701966c3b24d8dcd87bcb68f1444d5e7a3d96b27cdcd4bb7b1d92
MD5 c854a83bbf3abb6d379891a12ee2a298
BLAKE2b-256 7e3f401b6112b03c78a3dca5fd24871c1da9ea190239565c18e1cb0cd62490eb

See more details on using hashes here.

File details

Details for the file simple_rands-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: simple_rands-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.12 Windows/11

File hashes

Hashes for simple_rands-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73a26876c5632598c7e7a5f00dafbd8418a55dee6ea5e49165c229dd15ef5cef
MD5 ce0e62ebfafbe6fc1e7bd6c9eaf73b24
BLAKE2b-256 0fca018526baecdd5b03393100d7cdd2a4feed03da76f7737525f31c2776594b

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