Skip to main content

Maprule

value validating library

Installation

python -m pip install -U maprule

Update

  • v0.2.0: added error tracking

Usage

from maprule import fields

fields.Boolean().compare(True)

fields.Integer().compare(0)
fields.Integer(maximum=0).compare(1)

fields.String(min_length=3).compare("he")

fields.Dictionary(dict(
	name=fields.String(min_length=3),
	age=fields.Integer(minimum=0)
)).compare(dict(name="rubbie", age=19))

fields.Array(fields.String(min_length=3)).compare(["rubbie", "kelvin"])

Metadata

Release files for maprule 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maprule 1.1.0
File Size Uploaded Provenance
maprule-1.1.0.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / maprule-1.1.0.tar.gz

Download URL maprule-1.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9e31cdb0b0f949b9397b5dc49a03f43c6d05d5c0f605dbcf847e516da1962750
BLAKE2b-256 checksum
How to use checksums
a115ae2b1b9c0157d876d6c832c119557216e0d4db2ccf7f2d65e899da515432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / maprule-1.1.0-py3-none-any.whl

Download URL maprule-1.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9851a3219661ae649880f7c6f85ddb789db021c9b034cb7e91453576aa6718d8
BLAKE2b-256 checksum
How to use checksums
2a4c1da73515ae09e83c44e4cb58ad73b1a8df95af109871f546d5677cb99d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Security for maprule 1.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.

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