Skip to main content

mockdata生产数据

Project description

项目描述

mockdata 是一个 Python 库,用于生成模拟数据。它包含各种字段,如姓名、地址、电话号码等,可以用于测试、演示和开发。

安装步骤

  • 从pypi安装
pip install mockdata
  • 从源码安装
https://github.com/Joyamon/mockdata.git
cd mockdata
python setup.py

项目目录说明

mockdata
    ├── __init__.py
    ├── fields
       │   ├── __init__.py
       │   ├── mock_address.py
       │   ├    ......
       └── setup.py
       └── README.md
       └── requirements.txt
    ├── img
      └── image.png
    ├── utils
      └── __init__.py
       └── convert.py    # base64转图片
    ├── bank.json

使用方法

from mockdata.fields.mock_address import MockAddress

if __name__ == '__main__':
    # 实例化
    ma = MockAddress()
    # 调用方法
    address = ma.mock_address()
    # 输出结果
    print(address)
    

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mockdata-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

mockdata-1.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file mockdata-1.0.0.tar.gz.

File metadata

  • Download URL: mockdata-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for mockdata-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ecd4e197b0102a0f4f2e5dfd84c4379af32f987186324e96029a016598e243ac
MD5 f039876df0f12fd44c6c3a95a0f35bce
BLAKE2b-256 673e6737a42fade3eed92a43da56285eeabd738094fe0f91b8d93ce00fcd71e6

See more details on using hashes here.

File details

Details for the file mockdata-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mockdata-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for mockdata-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8523dbd8701dc3946cd69440c4e895f8dd05ea94d3474da0e6172c705b240bff
MD5 2d257b2843b5f2166819f21e0fa449a3
BLAKE2b-256 3eb240c0080be754e52ceb3f9028671c92177671784fe5ad0864305f2aab1014

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page