Parametrize From File is a library for reading unit test parameters from config files. It works with the pytest framework. Below is the basic workflow that this package enables:
Write test cases in a JSON, YAML, TOML, or NestedText file:
# test_camelot.yml test_str_find: - str: sir lancelot sub: lance loc: 4 - str: sir robin sub: brave loc: -1Decorate the corresponding test functions with @parametrize_from_file:
# test_camelot.py import parametrize_from_file @parametrize_from_file def test_str_find(str, sub, loc): assert str.find(sub) == locRun pytest as usual:
============================= test session starts ============================== platform linux -- Python 3.10.0, pytest-7.4.0, pluggy-1.2.0 rootdir: /home/arthur/holy_grail collected 2 items test_camelot.py .. [100%] ============================== 2 passed in 0.09s ===============================
Refer to the online documentation for more information.
Metadata
Release files for parametrize-from-file 0.21.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 | |
|---|---|---|---|
| parametrize_from_file-0.21.0.tar.gz | 19.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| parametrize_from_file-0.21.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.4 kB
Release files / parametrize_from_file-0.21.0.tar.gz
| Download URL | parametrize_from_file-0.21.0.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91e2ac9e433293d76eed31af2616573f61292ea38a933f2fc6b473597c868345
|
|
BLAKE2b-256 checksum How to use checksums |
def7a0eb2c970ceec2ec7107f16b174cde2443e040e197bc797ab19408677c89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logRelease files / parametrize_from_file-0.21.0-py3-none-any.whl
| Download URL | parametrize_from_file-0.21.0-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edfef8c6662af251780cce9027eca8812315f5702982839877971b6fd82c3e4a
|
|
BLAKE2b-256 checksum How to use checksums |
31980b4e2f99d65ecde21a9e7869fd1b761bbc58f9e3ce6fe4ebee7c88e2b512
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency log