Skip to main content

Default template for PDM package

Project description

model-mocker

model-mocker is an asynchronous Python tool that automatically generates mock data for Pydantic models. It uses Faker under the hood to intelligently fill in fields based on their name and type – making it perfect for testing, prototyping APIs, or populating local databases with realistic fake data.


✨ Features

  • ✅ Generate realistic fake data from your Pydantic model definitions
  • 🧠 Field-based string heuristics (email, name, phone, etc.)
  • 🔁 Supports nested models and lists
  • 💤 Asynchronous API for modern Python projects
  • 🧪 Compatible with both Pydantic v1 and v2
  • 🔌 Easily extendable with custom generators

🚀 Installation

With PDM:

pdm add model-mocker

With [pip]

pip install model-mocker

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

model_mocker-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_mocker-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file model_mocker-0.1.0.tar.gz.

File metadata

  • Download URL: model_mocker-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for model_mocker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5718812da597a98101c41353f5353ace0229a0f31b6042acd2b2c1930d574491
MD5 3a11c099886b3c2a7e9109bb9e66527a
BLAKE2b-256 309c5fd2c09740e76de6bbfcac9e25102d23c5bd7c2dc4699cfe3cf3d13ed881

See more details on using hashes here.

File details

Details for the file model_mocker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: model_mocker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for model_mocker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17a6f14d2d2016be488e74a57ead41fb474f5ef9be9408c3719ae57be5cde256
MD5 14c52145525e8406614edb25f20a98d6
BLAKE2b-256 d067ffaa4e3a292ba0bc2e0dc0768ac71cd0aaba48f6b353bfdc1d26cc33765a

See more details on using hashes here.

Supported by

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