Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A Database Connector interface that follows a factory model pattern.

Project description

Coeus Factory - Database Connector Factory

made-with-python PyPI pyversions Maintenance Coverage Awesome Badges

A Database Connector interface that follows a factory model pattern.


# if using poetry
# highly recommended
poetry add coeusfactory

# also works with standard pip
pip install coeusfactory

Then add necessary database interfaces as necessary. Below are the libraries that works with Coeus Factory.

Database Python Library Status
MongoDB pymongo Passed unit tests
DynamoDB boto3 Needs unit tests

Getting Started

For every first step for any database, initialization and connections will come first. As long as it is supported in the factory, you can pass the parameters you normally handle in supported databse interfaces.

from coeusfactory import ConnectorFactory
cf = ConnectorFactory(
    # other config or auth params for the db

# db init

Connector Methods

Getting / Creating a model

Users = cf.get_model("Users")
Carts = cf.get_model("Carts")
CustomerReviews = cf.get_model("CustomerReviews")


Users.get({"name": "Test User"})


Users.add({"name": "Test User"})


Users.delete({"name": "Test User"})


Users.update_by_id(0, {"name": "New Name"})
Users.update({"name": "Test User"}, {"name": "New Name"})

Entry Count



Almer Mendoza Ask Me Anything !

ForTheBadge built-with-love forthebadge forthebadge

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 coeusfactory, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size coeusfactory-0.7.0-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size coeusfactory-0.7.0.tar.gz (7.4 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