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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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