libfake
First name , Surname and Email Fake Mode in Python with Library Fake.
It has happened repeatedly that a programmer wants to create different users in a project for the user parts of his project with fictitious names and emails that are close to reality, for necessary checks or initial presentation, or other similar cases. This library has been created to meet the needs of this category of functions in a specialized way and using standard and optimized Python methods, and all its components are visible as open source. Using real and existing first and last names, all first and last names are created, and to use a large amount of this information for ease of use and to prevent the consumption of user resources, the required files are optimized and imported as a singleton, which is a trick that increases the speed of creation incomparably, along with other techniques used.
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
Metadata
Release files for libfake 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| libfake-1.0.4.tar.gz | 19.2 kB | Without provenance | Details for libfake-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| libfake-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for libfake-1.0.4-py3-none-any.whl |
Total release size: 37.8 kB
Release files / libfake-1.0.4.tar.gz
| Download URL | libfake-1.0.4.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
065ec14c948b443b7fe3fecb4893d469d407edf29481f7e5755b2f3a0256e8ef
|
|
BLAKE2b-256 checksum How to use checksums |
71a9c5fc8fca2e0459c9d5cd1d5509c3ee752e9a2f688c6eeb0ecef8ef4be89a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Release files / libfake-1.0.4-py3-none-any.whl
| Download URL | libfake-1.0.4-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba70c964a388f8d038a9d9cad8960302ccd50d3479cb5910fdab125be88380c4
|
|
BLAKE2b-256 checksum How to use checksums |
f532167ed19f1d0ba007722649327532742d2a4d7ed51161e5a3870104de1100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Security for libfake 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.