Unifactory
Unifactory is a spin off from fastapi-overrider. A simple tool to automatically choose a matching factory from polyfactory's inventory.
Installation
pip install unifactory
Examples
from polyfactory.pytest_plugin import register_fixture
from unifactory import unifactory, build, batch, coverage
@dataclass
class Person:
name: str
age: float
height: float
weight: float
some_person = build(Person)
five_persons = batch(Person, 5)
all_persons = coverage(Person)
person_factory = register_fixture(unifactory(Person), name="person_factory")
Metadata
Release files for unifactory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| unifactory-0.1.0.tar.gz | 2.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unifactory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / unifactory-0.1.0.tar.gz
| Download URL | unifactory-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bb7b7874fe6368fdc4302d805263a3fa423e046196a71433e4cb9e381380cc6
|
|
BLAKE2b-256 checksum How to use checksums |
fba347a749e72f5896622275d4ea29e45b9253729e8c7fb0a5dd5b04ce918570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
|
Release files / unifactory-0.1.0-py3-none-any.whl
| Download URL | unifactory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51db23016684c286df6790614ade56018c634bef485c822e878c74f8229f5891
|
|
BLAKE2b-256 checksum How to use checksums |
a1ae8a9f063cc9703b1413fbf344ecc5d0f80c57515884e932ca327082fcd87a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
|
Security for unifactory 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.