Skip to main content

A professional library for generating realistic fake names and emails

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


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.3.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libfake-1.0.3-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file libfake-1.0.3.tar.gz.

File metadata

  • Download URL: libfake-1.0.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for libfake-1.0.3.tar.gz
Algorithm Hash digest
SHA256 74b5b78a7ffcbc215ad6a5803a66c43957edc46509dab1bcb68fd89437d6f809
MD5 c650d323e930386294f39d149b293803
BLAKE2b-256 73b0bf13085cbc1a6196bcc501ffaa28e56191f7b9607d795a3846ebdeeac3e6

See more details on using hashes here.

File details

Details for the file libfake-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: libfake-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for libfake-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5669032ea408f2d77607bd498cd43982fbaa3e18aab6a7e805f8e246865d017
MD5 9d3583c1235781cba7a835492ff8662a
BLAKE2b-256 1e1b37bc36ec1085ce2ea38d8962f4e1bb4612f096157eb71fda8f112bc4d002

See more details on using hashes here.

Supported by

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