Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/booqoffsky/faker-stalker-names
Faker provider to generate stalker names.
https://github.com/booqoffsky/faker-stalker-names
faker generator provider stalker
Last synced: 5 days ago
JSON representation
Faker provider to generate stalker names.
- Host: GitHub
- URL: https://github.com/booqoffsky/faker-stalker-names
- Owner: booqoffsky
- License: mit
- Created: 2022-07-18T12:28:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-02T12:59:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T01:33:17.935Z (5 days ago)
- Topics: faker, generator, provider, stalker
- Language: Python
- Homepage: https://pypi.org/project/faker-stalker-names
- Size: 382 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![python version](https://img.shields.io/pypi/pyversions/faker-stalker-names?style=for-the-badge)
[![version](https://img.shields.io/pypi/v/faker-stalker-names?style=for-the-badge)](https://pypi.org/project/faker-stalker-names/)
![Codecov](https://img.shields.io/codecov/c/github/booqoffsky/faker-stalker-names?style=for-the-badge&token=1W6WD47RFU)# faker-stalker-names
![](https://raw.githubusercontent.com/booqoffsky/faker-stalker-names/main/imgs/head.png)>_Faker-stalker-names_ is a provider for the [Faker](https://github.com/joke2k/faker) Python package that allows you
>to generate stalker names for your tests and other tasks.
>
>Don't forget your friends) (с) Slava Smartass# Localizations
The following localizations are present:
>`de_DE`, `en_US`, `es_ES`, `fr_FR`, `it_IT`, `pl_PL`, `ru_RU`, `uk_UA`# Installation
From PyPi:`pip3 install faker-stalker-names`
# Usage
Just add the `Provider` to your `Faker` instance:```
from faker import Faker
from faker_stalker_names.en_US import Provider as StalkerNamesProviderfake = Faker()
fake.add_provider(StalkerNamesProvider)
```
Or pass it to the constructor:
```
from faker import Fakerfake = Faker(includes=["faker_stalker_names"], locale="ru_RU")
```
Now you can start to generate data:
```
fake.stalker_name()
# Яшка Нытикfake.stalker_first_name()
# Саняfake.stalker_last_name()
# Резкий
```You can specify the desired type of name (`stalker` or `bandit` are available).
By default, the first and last names are randomly selected.
```
fake.stalker_name(name_type="stalker")
# Slava Smartassfake.stalker_first_name(name_type="bandit")
# Vasyan
```In addition, a way to replace the standard `name` method at your own risk:
```
StalkerNamesProvider.name = StalkerNamesProvider.stalker_name
fake = Faker()
fake.add_provider(StalkerNamesProvider)
fake.name()
# Shurik Professor
```