Skip to main content

vnfaker is a Python package that generates fake data about fullname, address, phone, date_of_birth,... in Viet Nam.

Project description

VNFaker

VNFaker is a Python package that generates fake data about fullname, address, phone, date_of_birth,... in Viet Nam.

Basic Usage

Install with pip:

pip install vnfaker

Use vnfaker.VNFaker() to create and initialize a VNFaker generator, which can generate data by accessing properties named after the type of data you want.

from vnfaker import VNFaker

vnfaker = VNFaker()

vnfaker.fullname()
# Nguyễn Văn Thương
vnfaker.name()
# Thương
vnfaker.date_of_birth(minimum_age=10, maximum_age=30, timestamp=False)
# 1997-02-18

Each call to method vnfake.fullname() yields the same result. If you want different (random) result, you need to initialize a new VNFaker.

for _ in range(10):
    vnfaker = VNFaker()
    print(vnfaker.fullname())
# Hoàng An Thịnh
# Bạch Cát Mạnh
# Châu Kiệt Thái
# Trần Uy Bửu
# Đặng Thông Trạch
# Bùi Phi Hợp
# Đào Khương Hợp
# Nguyễn Tấn Liêm
# Đặng Lạc Hỷ
# Phạm Yên Hãn

License

VNFaker is released under the MIT License. See the bundled LICENSE file for details.

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

vnfaker-0.0.5.tar.gz (494.8 kB view details)

Uploaded Source

Built Distribution

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

vnfaker-0.0.5-py3-none-any.whl (524.3 kB view details)

Uploaded Python 3

File details

Details for the file vnfaker-0.0.5.tar.gz.

File metadata

  • Download URL: vnfaker-0.0.5.tar.gz
  • Upload date:
  • Size: 494.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for vnfaker-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6e698481041962882100539b4378ad5603924f6b19942e90b658519a73fb591b
MD5 af40597f2f69b2e8a59cb0aac9682fb9
BLAKE2b-256 aeca0396b234bd7d6de57a24f64413f5f7936566c5b87a6805a0d90e66b1ff81

See more details on using hashes here.

File details

Details for the file vnfaker-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: vnfaker-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 524.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for vnfaker-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 79ac87584be309113398f8994710c1bc25e12d88141dcd77c1a0442186056c00
MD5 903d141b7dc4b138e5f838110f2b99fb
BLAKE2b-256 e8dbf6d9fdc1bb218105f3bdede3d093af9629300b8d352855e682e537000165

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