Skip to main content

GitHub Workflow Status

aimock

借助AI自动生成测试数据

快速开始

from mock import MockModel, Field

class User(MockModel):
    name: str = Field(description="用户名")
    age: int = Field(description="年龄")
    email: str = Field(description="邮箱")
    phone: str = Field(description="电话")

api_key = "xxx"
base_url = "xxx"
MockModel.init(api_key, base_url, model="gpt-3.5-turbo")
print(User.create())

Release files for amock 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amock 0.1.1
File Size Uploaded
amock-0.1.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amock 0.1.1
File Interpreter ABI Platform
amock-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / amock-0.1.1.tar.gz

Download URL amock-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7931c37f8d53604d96e4037edd71be22a600c3a315f76da9e2c72766ebd9ccf2
BLAKE2b-256 checksum
How to use checksums
14da3ac52fe1b05978b0170136325f8bdd2a2efb13d236ebc709b792693424b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / amock-0.1.1-py3-none-any.whl

Download URL amock-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
207f2dc0ac417a0ac5b4150574dd948b28caf25fd7e44efe08d279637f45c892
BLAKE2b-256 checksum
How to use checksums
c58be18c236286a5710f7fb718373e80ee4a87de16a5fadd6e49376fe87b015c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page