semvec/pypi-packages huggingface dataset:
libfake 1.0.3
A professional library for generating realistic fake names and emails
License: MIT
Requires Python: >=3.8
Keywords: fake, data, generator, names, email, testing, mock

# libfake

First name , Surname and Email Fake Mode in Python with Library Fake.

## Install

```bash
pip install libfake
```
in mac or linux use `pip3` : `pip3 install libfake`

---

## Usage

```python
from libfake import FakeName
fake = FakeName()
```

### First Name and Surname

```python
# Random First name
first_name = fake.get_firstname()
# Random Surname
surname = fake.get_surname()
```
### First name , Surname and Email

```python
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 

```python
full_name = fake.get_full_name()
```

### Random Email

```python
random_email = fake.generate_email()
```

### Email for a Specific Name

```python
specific_email = fake.generate_email("Alice", "Wonderland")
```

### Custom Provider

```python
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](https://github.com/Pymmdrza)