Skip to main content

Mongo ORM

Project description

Snakelet is a Schema-less ORM-like system built in pure Python to reduce redundancy with Mongo Native Drivers and Object Management. This package contains a very simple implementation and will need to be expanded upon largely to remain relevant.


Registration only requires exposing the object to the Manager.

from import Document, Manager

class Cat(Document):

manager = Manager(database='felines')


Connecting to a database is fairly straightforward.

from import Manager

manager = Manager(

By default, Managers build and fetch collections in snake case, but this can be switched to camel case during instantiation.

from import Manager

manager = Manager(

Finding, Saving, and Removal are also pretty straightforward.

pye = manager.Cat.find_one({'name': 'pyewacket'})
shoshana = Cat()
shoshana['name'] = 'shoshana'
shoshana['owner'] = 'schrodinger'
schrodinger = manager.Cat.find({'owner': 'schrodinger'})

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for snakelet, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size snakelet-0.5.0.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page