安装
pip install mimesis
源代码
git clone git@github.com:lk-geimfari/mimesis.git
支持多语言
|
Code |
Name |
Native Name |
|---|---|---|
|
cs |
Czech |
Česky |
|
da |
Danish |
Dansk |
|
de |
German |
Deutsch |
|
de-at |
Austrian german |
Deutsch |
|
de-ch |
Swiss german |
Deutsch |
|
el |
Greek |
Ελληνικά |
|
en |
English |
English |
|
en-au |
Australian English |
English |
|
en-ca |
Canadian English |
English |
|
en-gb |
British English |
English |
|
es |
Spanish |
Español |
|
es-mx |
Mexican Spanish |
Español |
|
et |
Estonian |
Eesti |
|
fa |
Farsi |
فارسی |
|
fi |
Finnish |
Suomi |
|
fr |
French |
Français |
|
hu |
Hungarian |
Magyar |
|
is |
Icelandic |
Íslenska |
|
it |
Italian |
Italiano |
|
ja |
Japanese |
日本語 |
|
kk |
Kazakh |
Қазақша |
|
ko |
Korean |
한국어 |
|
nl |
Dutch |
Nederlands |
|
nl-be |
Belgium Dutch |
Nederlands |
|
no |
Norwegian |
Norsk |
|
pl |
Polish |
Polski |
|
pt |
Portuguese |
Português |
|
pt-br |
Brazilian Portuguese |
Português Brasileiro |
|
ru |
Russian |
Русский |
|
sv |
Swedish |
Svenska |
|
tr |
Turkish |
Türkçe |
|
uk |
Ukrainian |
Український |
|
zh |
Chinese |
汉语 |
提供的provider种类
|
No |
Provider |
Description |
|---|---|---|
|
1 |
Address |
Address data (street name, street suffix etc.) |
|
2 |
Business |
Business data (company, company_type, copyright etc.) |
|
3 |
Code |
Codes (ISBN, EAN, IMEI etc.). |
|
4 |
ClothingSize |
Clothing sizes (international sizes, european etc.) |
|
5 |
Datetime |
Datetime (day of week, month, year etc.) |
|
6 |
Development |
Data for developers (version, programming language etc.) |
|
7 |
File |
File data (extension etc.) |
|
8 |
Food |
Information on food (vegetables, fruits, measurements etc.) |
|
9 |
Games |
Games data (game, score, pegi_rating etc.) |
|
10 |
Person |
Personal data (name, surname, age, email etc.) |
|
11 |
Text |
Text data (sentence, title etc.) |
|
12 |
Transport |
Dummy data about transport (truck model, car etc.) |
|
13 |
Science |
Scientific data (rna sequence dna sequence, etc.) |
|
14 |
Structure |
Structured data (html, css etc.) |
|
15 |
Internet |
Internet data (facebook, twitter etc.) |
|
16 |
Hardware |
The data about the hardware (resolution, cpu, graphics etc.) |
|
17 |
Numbers |
Numerical data (floats, primes, digit etc.) |
|
18 |
Path |
Provides methods and property for generate paths. |
|
19 |
Payment |
Payment data (credit_card, credit_card_network, etc.) |
|
20 |
UnitSystem |
Provides names of unit systems in international format. |
|
21 |
Generic |
All at once. |
|
22 |
Cryptographic |
Cryptographic data. |
schema支持的数据生成
|
No |
Provider |
Description |
|---|---|---|
|
1 |
AbstractField |
Can represent any method of any provider. |
|
2 |
Field |
Alias for schema.AbstractField |
转自:https://blog.csdn.net/crisschan/article/details/95331383
浙公网安备 33010602011771号