Random-Text
A Random Object Generator for Addresses, Names, Reviews, Testimonials, Business Names, and Random Objects.
Sources
Description | Type | Link |
---|---|---|
Random Data Website | General | Click |
Randommer Data Website | General | Click |
Random Geek Jokes | Jokes | Click |
Evil Insult Generator | Jokes | Click |
Dad Jokes | Jokes | Click |
Shibe Generator | Images | Click |
Testimonial Generator | Text | Click |
Text Generator | Text | Click |
Requirements
- Python >= 3.6
Getting started
pip install random-text
random-text
is simple to use — take a look at the below example:from randomText import RandomTextClient client = RandomTextClient(api_key='api_key')Available methods:
Basic Usage (No Api Key Required)
df = client.address.get_random(size=1) print(df.head(2))Advanced Usage – Requires API Key when creating the client.
business_name = client.fancy_random.generate_business_name(size=2) brand_name = client.fancy_random.generate_brand_name(starting_word='funny') product_reviews = client.fancy_random.generate_product_reviews(size=2, product='toy')Available Objects:
- Address
- Appliances
- Apps
- Banks
- Beers
- Blood
- Credit Card
- Cannabis
- Code
- Coffee
- Commerce
- Company
- Computer
- Crypto
- Crypto Coin
- Color
- Dessert
- Device
- Food
- Dessert
- Device
- Name
- Hipster
- Invoice
- User
- Stripe
- Subscription
- Vehicle
- Id_Number
- Internet Stuff
- Lorem Ipsum
- Lorem Pixel
- Lorem Flickr
- Nation
- Number
- Phone Number
- Place Hold It
- Restaurant
- Fancy Random
- Geek Jokes
- Evil Insults
- Dad Jokes
- Shibe
- Testimonials
- Meta
TO DO
- Add as many random open api’s from the web. Based off https://github.com/public-apis/public-apis
Tests
To run tests:
python -m unittest discover -p *test.pyGitHub