Skip to main content

Generating a random string

Project description

RandomChar

Install

pip install randomchar

How to use

Basic

import RandomChar
from RandomChar.Generator import CharType

char = RandomChar.create(CharType.LOWER)
print(char)
ex: xyfntp

Length

import RandomChar
from RandomChar.Generator import CharType

char = RandomChar.create(CharType.LOWER, length=10)
print(char)
ex: xyfntpqncy

Length default: 6

CharType

import RandomChar
from RandomChar.Generator import CharType

char = RandomChar.create(CharType.LOWER, CharType.UPPER, CharType.DIGITS, CharType.PUNCTUATION)
print(char)
ex: dp8N!n

Secure

import RandomChar

char = RandomChar.secure_create(length=16)
print(char)
ex: nAq1s_QhWe4t-3zP

Length default: 10

URL-safe, base64

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

randomchar-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

randomchar-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file randomchar-0.0.1.tar.gz.

File metadata

  • Download URL: randomchar-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for randomchar-0.0.1.tar.gz
Algorithm Hash digest
SHA256 787118522aa2edef326ba7f6c2e9641aed973007c78229c30331129ceb653f6d
MD5 aac2509c8dbec9832006e76762a58950
BLAKE2b-256 b5ee05871743d06871d8a57e2a5e7901a99aa7701d96ef6b1d746229d7d368af

See more details on using hashes here.

File details

Details for the file randomchar-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: randomchar-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for randomchar-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46a92f136bad50679649c91c7ce6002896614f535b6a3a67a7309bb411b6e10a
MD5 e653ac5cf6a2f77db1e3fd32ab66ab46
BLAKE2b-256 8517a07cdc32de3f17405696f6d66742cae4ccd52711a977e0a878cdfbe33a13

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