This is a tool for producing random data.
Project description
moker
仿照mock.js生成随机数据
Basic
character
m_mock.mock("@character()"):X
m_mock.mock("@character('lower')"):f
m_mock.mock("@character('upper')"):E
m_mock.mock("@character('number')"):4
m_mock.mock("@character('symbol')"):)
m_mock.mock("@character('aeiou')"):o
integer
m_mock.mock("@integer(2,4)"):3
m_mock.mock("@integer(3)"):4941869747671297
m_mock.mock("@integer()"):-3191979912544874
boolean
m_mock.mock("@boolean(2,4)"):False
m_mock.mock("@boolean(3)"):True
m_mock.mock("@boolean()"):False
float
m_mock.mock("@float(2,4)"):2.937
m_mock.mock("@float(3)"):229342892631770.44
m_mock.mock("@float()"):872256.00439
string
m_mock.mock("@string(2)"):$@
m_mock.mock("@string("lower", 3)"):nyx
m_mock.mock("@string("upper", 3)"):HWS
m_mock.mock("@string("number", 3)"):987
m_mock.mock("@string("symbol", 3)"):^)<
m_mock.mock("@string("aeiou", 3)"):iee
m_mock.mock("@string("lower", 1, 3)"):gn
m_mock.mock("@string("upper", 1, 3)"):DSZ
m_mock.mock("@string("number", 1, 3)"):773
m_mock.mock("@string("symbol", 1, 3)"):#(<
m_mock.mock("@string("aeiou", 1, 3)"):eaa
m_mock.mock("@string("chinese", 1, 3)"):太主截
m_mock.mock("@string("cn_symbol", 1, 3)"):『“
m_mock.mock("@string("cn_string", 3, 9)"):〕壁辨钻眠素举沾。
m_mock.mock("@string("cn_string", 1)"):柔
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
m_mock-1.2.3.tar.gz
(26.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
m_mock-1.2.3-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file m_mock-1.2.3.tar.gz.
File metadata
- Download URL: m_mock-1.2.3.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19c9474298d3b76752cc77a6e47c98c7bdd4d236b63586705d81e443238438eb
|
|
| MD5 |
8d18d515724630559287972f2bc06f93
|
|
| BLAKE2b-256 |
7d26323d5635fce33286283cb88ce19353a4a54f574c708cfc0f87ffedde04d4
|
File details
Details for the file m_mock-1.2.3-py3-none-any.whl.
File metadata
- Download URL: m_mock-1.2.3-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2da4722a67004955b0f0a0c483c3c486092ae094428151452c7a0c7519f301ea
|
|
| MD5 |
b5f977e9029807d2831df0df7407382e
|
|
| BLAKE2b-256 |
f8ba53a3bcfcc3943b66f495bef6d1693f8b7e98b6ddab1c9c0daea2611832c4
|