This Python data mapper library was created thinking on simplicity learning and using it. As opposed to other ORM options, this one will not be as powerful and flexible in terms of queries. That is the trade-off to make it simpler to learn and use.
Usage
Defining models is done using property descriptors as you would for SQLAlchemy and Django. Querying them is completely different in regards to how we avoid overriding Python operators or using dynamic keyword arguments.
from albus.model import Model
from albus import field
class Book(Model):
author = field.StringField()
title = field.StringField()
year = field.IntegerField()
query = Book.new_query()
query.filter_equals('author', 'John Doe')
query.filter_greater('year', 2000)
results = query.select()
for current in results:
print('Found:', current.title)
Metadata
Release files for albus 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 |
|---|---|---|---|---|
| albus-0.0.2.tar.gz | 9.8 kB | Without provenance | Details for albus-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| albus-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for albus-0.0.2-py3-none-any.whl |
Total release size: 22.4 kB
Release files / albus-0.0.2.tar.gz
| Download URL | albus-0.0.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1030a420e2c930fd3212a8fd5b20e62496edbfca75543cd124fe5120cbeac8d
|
|
BLAKE2b-256 checksum How to use checksums |
12cfe1ab18eda9adccd836225799b1ac0d4cf27258a798ab43eef1c62bc9fb2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / albus-0.0.2-py3-none-any.whl
| Download URL | albus-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6bd50520d70cd0f2c7da757d8967ea1b014f7efbb0a6b15fa51ae23a5b45b0a
|
|
BLAKE2b-256 checksum How to use checksums |
78c1f94cba95bb79383cc8cc6c49dc8f4fce8f521e6d3aa92bdc11be5223c815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for albus 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.