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.1.tar.gz (6.0 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: model_mocker-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 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.1.tar.gz
Algorithm Hash digest
SHA256 ba20f32bee0ad474648425d31d4dc6d364e7a1f7c6a2c5405dda00159f6f18af
MD5 418baf4e9e1123357a47530edf622002
BLAKE2b-256 23cd0d572c2eb0da98312aa5ac2c8070f4c385876f69c26febab70d6c0eeafb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: model_mocker-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 083a521959d60cd7c537294d161d492f60f4cbc81c2df0c94021b86e1cdf296d
MD5 cef45763f3fad65c6734f0d1edfc4b95
BLAKE2b-256 20c727a1255744e92e6f11b9d4abb421ceb7ba95c3bbfcb43202fb030cf97783

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