Limier
Limier is a smart toolkit for conversion and validation of function arguments in Python powered by type annotations.
A typical use case is the conversion of route parameters in the context of web routing.
Install
pip install limier
Basic usage
from limier import converted, chain
# Custom converter: validate that the input value is positive
def positive(value: int) -> int:
if value < 0:
raise ValueError("Expected positive value")
return value
@converted
def compute(x: int, times: chain(int, positive)) -> float:
return x * times
result = compute("2", times="2.5")
assert result == 5
Metadata
Release files for limier 0.0.2
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 | Actions |
|---|---|---|---|---|
| limier-0.0.2.tar.gz | 6.0 kB | Without provenance | Details for limier-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| limier-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for limier-0.0.2-py3-none-any.whl |
Total release size: 14.1 kB
Release files / limier-0.0.2.tar.gz
| Download URL | limier-0.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21be88bd624e91ad7d754c2eb9d58af3f92aa9a9e7832f301b8a061fad51be76
|
|
BLAKE2b-256 checksum How to use checksums |
25f2be87806a327c85b6b6ec652bdc532466b112f2479064587494bacd3762c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / limier-0.0.2-py3-none-any.whl
| Download URL | limier-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4823f5bc6647e73f2f0952a5f87ebacaadd26b43b8b435ba97d5aab5b0e15b1e
|
|
BLAKE2b-256 checksum How to use checksums |
8ad9c8e53c4750e79d71e263804620ec16fcc9cd0bd5c7b9b64a1bb8580a37a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for limier 0.0.2
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.