Skip to main content

PyPI PyPI - Python Version PyPI - License Codecov Code Climate maintainability

Meritous

Meritous is an absurdly simply approach to "Models" in Python.

It came about because there is no modern, framework agnostic approach to modelling data.

On the face of it the usage is very trivial; but the intent is that Meritous is a building block for more complex data models. Essentially, it provides a simple Model class which can contain data to be used in Python applications. It then sets out a standard practice for transforming that data for storage or transport.

Installation

pip install meritous

Basic Usage

from meritous.core import Model
from meritous.core.properties import UUIDProperty, StrProperty, DateProperty

from datetime import date

class EventModel(Model):

    _schema = {
        "id"          : UUID4Property(),
        "title"       : StrProperty(),
        "date"        : DateProperty(),
        "description" : StrProperty(),
    }


event = EventModel()
event.title = 'Sample Event'
event.date = date.fromisoformat('2023-01-10')
print(event.id)
print(event.title)
print(event.date)

Metadata

Release files for meritous 1.2.2

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

Source distribution (sdist)

Source distribution for meritous 1.2.2
File Size Uploaded Provenance Actions
meritous-1.2.2.tar.gz 14.7 kB Without provenance Details for meritous-1.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 21.6 kB

Release files / meritous-1.2.2.tar.gz

Download URL meritous-1.2.2.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
690a13c1fc47c791d1a40b6f508be929dfc1b7cbfd89801b5f10a6eecd4afb21
BLAKE2b-256 checksum
How to use checksums
26c90daf61ef116cd2f7ff459889a04a237f1908855a4a180c5a974c915f0fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / meritous-1.2.2-py3-none-any.whl

Download URL meritous-1.2.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca97260bd1a8360da881b38e602b73b32b85afaace16334f2334be3ecdda99a
BLAKE2b-256 checksum
How to use checksums
13e67fd440bd64e0164210a9d0041306b14876f20005bbf9fa5a233565d4c302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for meritous 1.2.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.

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