Data Generators Reference¶
Complete list of all data generators available in Fakestack.
Personal Information¶
first_name¶
Generate a random first name.
Example: "John", "Mary", "Ahmed"last_name¶
Generate a random last name.
Example: "Smith", "Johnson", "Lee"name¶
Generate a full name (first + last).
Example: "John Smith", "Mary Johnson"email¶
Generate a random email address.
Example: "john.smith@example.com"user_name¶
Generate a random username.
Example: "john_smith_42", "cool_user_99"password¶
Generate a random password.
Example: "aB3$xY9&mK2!"phone_number¶
Generate a phone number.
Example: "+1-555-123-4567"ssn¶
Generate a Social Security Number (US format).
Example: "123-45-6789"Address¶
address¶
Generate a complete address.
Example: "123 Main St, New York, NY 10001"street_address¶
Generate a street address.
Example: "123 Main Street"city¶
Generate a city name.
Example: "New York", "Los Angeles", "Chicago"state¶
Generate a state name.
Example: "California", "Texas", "New York"country¶
Generate a country name.
Example: "United States", "Canada", "Mexico"postcode¶
Generate a postal/zip code.
Example: "90210", "10001"latitude¶
Generate a latitude coordinate.
Example: "40.7128"longitude¶
Generate a longitude coordinate.
Example: "-74.0060"Company¶
company¶
Generate a company name.
Example: "Acme Corporation", "TechStart Inc."company_suffix¶
Generate a company suffix.
Example: "Inc.", "LLC", "Corp."job¶
Generate a job title.
Example: "Software Engineer", "Product Manager"catch_phrase¶
Generate a company catch phrase.
Example: "Innovative solutions for tomorrow"Internet¶
url¶
Generate a URL.
Example: "https://example.com"domain_name¶
Generate a domain name.
Example: "example.com"ipv4¶
Generate an IPv4 address.
Example: "192.168.1.1"ipv6¶
Generate an IPv6 address.
Example: "2001:0db8:85a3:0000:0000:8a2e:0370:7334"mac_address¶
Generate a MAC address.
Example: "00:1B:44:11:3A:B7"user_agent¶
Generate a browser user agent string.
Example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64)..."slug¶
Generate a URL slug.
Example: "my-awesome-post"Dates & Times¶
date¶
Generate a random date.
Example: "2023-05-15"date_time¶
Generate a random datetime.
Example: "2023-05-15 14:30:00"past_date¶
Generate a date in the past.
Example: "2022-03-20"future_date¶
Generate a date in the future.
Example: "2024-12-31"time¶
Generate a time.
Example: "14:30:00"unix_time¶
Generate a Unix timestamp.
Example: "1684159200"Text¶
text¶
Generate random text (multiple paragraphs).
Example: "Lorem ipsum dolor sit amet..."sentence¶
Generate a random sentence.
Example: "The quick brown fox jumps over the lazy dog."paragraph¶
Generate a random paragraph.
Example: "Lorem ipsum dolor sit amet, consectetur adipiscing elit..."word¶
Generate a single random word.
Example: "technology"words¶
Generate multiple random words.
Example: "technology innovation digital future trends"Numbers¶
random_int¶
Generate a random integer within a range.
Example: 42random_digit¶
Generate a single random digit (0-9).
Example: 7random_number¶
Generate a random number with specified digits.
Example: 123456random_float¶
Generate a random float.
{
"name": "price",
"generator": "random_float",
"args": { "min": 0.0, "max": 100.0, "decimals": 2 }
}
Special Generators¶
uuid¶
Generate a UUID (v4).
Example: "550e8400-e29b-41d4-a716-446655440000"boolean¶
Generate a random boolean.
Example: true or falserandom_from¶
Pick a random value from a list.
{
"name": "status",
"generator": "random_from",
"args": {
"choices": ["pending", "active", "inactive", "suspended"]
}
}
foreign_key¶
Reference a foreign key from another table.
This will randomly select an existing ID from the specified table.person¶
Generate a complete person object (returns JSON).
Returns:{"first_name": "John", "last_name": "Doe", "email": "john.doe@example.com", ...}
user¶
Generate a complete user object (returns JSON).
Returns:{"username": "john_doe", "email": "john@example.com", "password": "secret123"}
Generator Arguments¶
Most generators support optional arguments:
{
"name": "field_name",
"generator": "generator_name",
"args": {
"argument1": "value1",
"argument2": "value2"
}
}
Common arguments:
- min, max - For numeric ranges
- length - For string lengths
- choices - For random selection
- count - For multiple items
- max_chars - For text length limits
- decimals - For float precision
Tips¶
- Consistency: Use related generators for consistent data (e.g., use
user_nameandemailtogether) - Realistic Data: Choose generators that match your domain
- Performance: Simple generators are faster than complex ones
- Unique Values: Some generators may produce duplicates; use
unique: truein column options if needed - Foreign Keys: Always use
foreign_keygenerator when referencing other tables
See Also¶
- Schema Reference - How to use generators in schemas
- Examples - Real-world generator usage