Skip to main content

MokeiDB

MokeiDB is an ORM model for MongoDB.

Write MongoDB models like you would write a dataclass:

@database('MyDatabase')
class Company(MongoDbModel):
    registration_number: int
    name: str
    incorporated: datetime.datetime

You can create complex models by including one model in another:

@database('MyDatabase')
class Employee(MongoDbModel):
    employee_id: int
    company: Company

To retrieve an object from the database:

company = Company.find_one(name='Python Inc.')

To get all objects matching a particular query:

employees = Employee.find(company=company)

To make a change to the company:

company.name = 'Pythonistas Inc.'
company.save()  # writes to database

Or update and write fields in one line:

company.update(name='Snakes Inc.')

Metadata

Release files for mokeidb 0.1.8

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

Source distribution (sdist)

Source distribution for mokeidb 0.1.8
File Size Uploaded Provenance Actions
mokeidb-0.1.8.tar.gz 8.4 kB Without provenance Details for mokeidb-0.1.8.tar.gz

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / mokeidb-0.1.8.tar.gz

Download URL mokeidb-0.1.8.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eacaa93ee61c79aa7668b25951269e1ac4e7fcb48338f48f93848482a45ef629
BLAKE2b-256 checksum
How to use checksums
d5fe811c2285ceca8478bf3f21bca7fc60b2881c97e2946eb5236564f80d2386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mokeidb-0.1.8-py3-none-any.whl

Download URL mokeidb-0.1.8-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7521df0c8db944b51e9a885195d20f7ce9b42bc97ead8ba971d3f18d340914a
BLAKE2b-256 checksum
How to use checksums
16596bef1c2e8402968dd1d3fa975ee0c74ba4331ae92d2b78c4cc7756517559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for mokeidb 0.1.8

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