📅  最后修改于: 2023-12-03 15:35:43.018000             🧑  作者: Mango
Wonsan is a Python library for generating fake data that can be used for testing and development purposes. It is inspired by the popular faker library and Django's built-in faker utility.
You can install Wonsan using pip:
pip install wonsan
Once you have installed Wonsan, you can start generating fake data using the provided generators.
from wonsan.generator import NameGenerator
name_gen = NameGenerator()
# Generate a random first name
first_name = name_gen.first_name()
# Generate a random last name
last_name = name_gen.last_name()
print(f"Full name: {first_name} {last_name}")
This will output a randomly generated full name, like this:
Full name: John Doe
Wonsan includes generators for many other types of data as well, including addresses, phone numbers, and IP addresses.
If you would like to contribute to Wonsan, please see our contributing guidelines for information on getting started.
Wonsan is released under the MIT License.