Skip to main content

Ultimate Python Randomizer Library

Project description

🌟 Randize: The Ultimate Python Randomizer Library 🌟

Welcome to Randize — your all-in-one solution for generating random data in Python! This library offers a wide variety of functions to produce random numbers, strings, names, emails, colors, coordinates, and much more. Perfect for testing, simulations, and fun projects! 🎉

📚 Table of Contents

✨ Features

  • Random Number Generation: Generate random integers, floats, dates, times, and UUIDs.
  • Random String Utilities: Create random strings, passwords, and emails.
  • Data Structure Generators: Generate random dictionaries, JSON objects, and more.
  • Web Testing Utilities: Random user agents, URLs, and HTTP request data.
  • Custom Data Mocks: Random color palettes, coordinates, weather conditions, and more!
  • Flexible API: Easy-to-use static methods to integrate with your code.

🔧 Installation

Install Randize via pip:

pip install randize

Or, clone the repository and install manually:

git clone https://github.com/BlazeDevelop/randize.git
cd randize
pip install -r requirements.txt

🚀 Usage

Basic Randomization

First, import the library in your Python script:

from randize import Randize

Generate a Random Number

random_number = Randize.number(1, 100)  # Returns a random number between 1 and 100
print(random_number)

Generate a Random Password

password = Randize.password(length=16, include_digits=True, include_punctuation=True)
print(password)  # Example: 'aB3$dEfGhI8!K@Lm'

Advanced Randomization

Create a Random User Profile

user_profile = Randize.struct({
    'name': 'name',
    'email': 'email',
    'birthdate': 'date',
    'address': 'random_coordinate'
})
print(user_profile)

Generate a Random Payment Card

payment_card = Randize.payment_card()
print(payment_card)

📋 Examples

Here's a quick example of how you can use Randize to generate random data:

# Generate a random color palette
color_palette = Randize.random_color_palette(n=5)
print(f"🎨 Color Palette: {color_palette}")

# Generate a random date between 2000 and 2023
random_date = Randize.date(start_year=2000, end_year=2023)
print(f"📅 Random Date: {random_date}")

📋 To-Do

  • Implement a function to generate random texts.
  • Update documentation with examples of using new functions.
  • Optimize performance of random data generators.

🤝 Contributing

Contributions are welcome! If you have ideas for new features or have found a bug, feel free to open an issue or submit a pull request. Please read our contributing guide first.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


✨ Happy Randomizing! ✨

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

randize-1.0.6.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

randize-1.0.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file randize-1.0.6.tar.gz.

File metadata

  • Download URL: randize-1.0.6.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for randize-1.0.6.tar.gz
Algorithm Hash digest
SHA256 1685d40c016165889a94b962a76c1e6022023ada908db34129ba08527e34cc02
MD5 fa66b0146bf785dc16089231deb394e7
BLAKE2b-256 f83da2fb24972debdb80d2f3122d063b46a797b664ac27f7a5a7a020dda15b39

See more details on using hashes here.

File details

Details for the file randize-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: randize-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for randize-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3191f0490716346dfd17187798cbe62be34da24b3a790b99f180f25d31389c
MD5 4a07518b310ac81b341304c8e44a96c7
BLAKE2b-256 b336e698db735770297406541052ee95734bfce006a1f35b8f2ec5bd5fa9f29e

See more details on using hashes here.

Supported by

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