写点什么

Facebook 开源的数据 Mock:Memisis 详解

用户头像
陈磊@Criss
关注
发布于: 2020 年 08 月 14 日



版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:http://blog.csdn.net/crisschan



安装



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 (creditcard, creditcard_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



From : https://blog.csdn.net/crisschan

关注我,关注测试



发布于: 2020 年 08 月 14 日阅读数: 54
用户头像

陈磊@Criss

关注

测者观天下bugs 2018.03.11 加入

华为云MVP,阿里云MVP

评论

发布
暂无评论
Facebook开源的数据Mock:Memisis详解