Skip to main content

Pydantricks

Faker for pydantic models.

Start simple

>>> from pydantic import BaseModel
>>> from pydantricks import FieldFactory, ModelFactory
>>>
>>>
>>> class User(BaseModel):
...     username: str
...
>>>
>>> class UserFactory(ModelFactory[User]):
...     username = FieldFactory.field.user_name
...
>>> UserFactory()
User(username='qmiller')
>>> UserFactory()
User(username='harrisamanda')
>>> UserFactory()
User(username='jamesamy')

pydantricks support composed models as well.

Metadata

Release files for pydantricks 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 pydantricks 0.1.1
File Size Uploaded
pydantricks-0.1.1.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / pydantricks-0.1.1.tar.gz

Download URL pydantricks-0.1.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f7362eeebcc7a6503db790d3fb579a118c6d04e02bfd59b9ad00a9f98d96b92c
BLAKE2b-256 checksum
How to use checksums
9539d3f3126e971ac92419d42be2bd4aa63779f6ece5f6d128ee95805c9f62de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.6 CPython/3.12.12 Linux/6.11.0-1018-azure

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

Download URL pydantricks-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8a36a2115a2de2057b94a8f35d6d1f9109d5d119ed7cafa896af6787b18f1e0
BLAKE2b-256 checksum
How to use checksums
e3b4ecfa3a04b261e826fbd54445ffb619134aba089253926f10b5948c941799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.6 CPython/3.12.12 Linux/6.11.0-1018-azure

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