A professional and highly-configurable library for generating realistic names and email addresses.
Project description
libfake
First name , Surname and Email Fake Mode in Python with Library Fake.
Install
pip install libfake
in mac or linux use pip3 : pip3 install libfake
Usage
from libfake import FakeName
fake = FakeName()
First Name and Surname
# Random First name
first_name = fake.get_firstname()
# Random Surname
surname = fake.get_surname()
First name , Surname and Email
first_name = fake.get_firstname()
surname = fake.get_surname()
# Generate email From first name and surname.
email = fake.generate_email(first_name, surname)
Random Full Name
full_name = fake.get_full_name()
Random Email
random_email = fake.generate_email()
Email for a Specific Name
specific_email = fake.generate_email("Alice", "Wonderland")
Custom Provider
provider_custom = "example.com"
# Create a new, custom-configured instance (resets the singleton)
custom_fake = fake.get_details(first_name="Alice", surname="Smith", provider=provider_custom)
# return dict details , if need just email:
custom_email = custom_fake.get('email')
Programmer
Programmer and Owner By : Pymmdrza
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libfake-1.0.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libfake-1.0.0.tar.gz.
File metadata
- Download URL: libfake-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354fc511495bb8a1fffe58e3a9adc4327bc78e9df8f25263f26b0964daf17a45
|
|
| MD5 |
d46794638e4fd232eec06dafa70914ea
|
|
| BLAKE2b-256 |
ab5aff490ad8b04a57b50075da45edededf75857432cd973150347c7faac5def
|
File details
Details for the file libfake-1.0.0-py3-none-any.whl.
File metadata
- Download URL: libfake-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a0a8aaaaccd4ad234af208e23b0f9aa62f5ac92f254067289920898436dbfa
|
|
| MD5 |
486cd0bd694260e58134c8a451fe4aa9
|
|
| BLAKE2b-256 |
70734d63196d5f0bde7ce3bc68bc14237094b896c6e8e45d9efc491c060177e8
|