faker-stalker-names
Faker-stalker-names is a provider for the 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 StalkerNamesProvider
fake = Faker()
fake.add_provider(StalkerNamesProvider)
Or pass it to the constructor:
from faker import Faker
fake = 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 Smartass
fake.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
Release files for faker-stalker-names 0.1.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 | |
|---|---|---|---|
| faker-stalker-names-0.1.4.tar.gz | 35.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| faker_stalker_names-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.5 kB
Release files / faker-stalker-names-0.1.4.tar.gz
| Download URL | faker-stalker-names-0.1.4.tar.gz |
|---|---|
| Size | 35.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
059369efb38aa88457fe2718cbfa28d355c918499e44e7fb294f92dec884ecc7
|
|
BLAKE2b-256 checksum How to use checksums |
71016a7b0a6217c02de20ea737d2b26db65b0efa53e78170597ca1f78c6492fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.9.15 Linux/5.15.0-53-generic
|
Release files / faker_stalker_names-0.1.4-py3-none-any.whl
| Download URL | faker_stalker_names-0.1.4-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4433c2c33bd4ba4e02a957655d479dd5e233921ffbfd47e759ca1f64b7ad06ac
|
|
BLAKE2b-256 checksum How to use checksums |
0bc158573e4e69eb0c11d8a843f23182a320dc34df1f0b84413711fd8dfc8b90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.9.15 Linux/5.15.0-53-generic
|