faker
A Python library and a tool to generate fake data. More information: https://faker.readthedocs.io/en/master/.
- Show all fake data providers along with examples:
faker
- Generate fake data of a specific type:
faker
- Generate a number of fake addresses from a specific country (use
localectl list-locales | cut --delimiter . --fields 1to get list of locales):
faker address
- Generate a number of cities in a specific country and output them to a file (use
localectl list-locales | cut --delimiter . --fields 1to get list of locales):
faker city -o
- Generate a number of random HTTP user-agents showing verbose output:
faker user_agent
- Generate a number of domain names and separate each using a specific separator:
faker '' domain_name
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
