Skip to main content

Small and partial Obejct mapper on top of sqlalchemy for async

Project description


# AsyncOM

Async OM it's a super basic Object mapper based almost all on sqlalchemy
ORM layer.

We use the declarative extension for building the classes, and also,
factor instances of them on querys.

There is still no support for relations. At the moment it's
tied to the [encode/databases](https://github.com/encode/databases) dependency.



## Usage

```python

from sqlalchemy.ext.declarative import declarative_base
import sqlalchemy as sa

Base = declarative_base()


class OrmTest(Base):
__tablename__ = 'orm_test'

id = sa.Column(sa.Integer, primary_key=True)
name = sa.Column(sa.String(100), index=True)
value = sa.Column(sa.Text)


# Instead of usign Database from databases, you can use:

db = OMDatabase()
res = await db.query(OrmTest).filter(
OrmTest.name.like('xx')).all()

# Look at tests
```




=======
History
=======

0.1.3
----
- Fixes and improvements. Lay out basic API

0.1.0 (2019-04-07)
------------------

* First release on PyPI.


Project details


Download files

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

Source Distribution

asyncom-0.1.3.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

asyncom-0.1.3-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file asyncom-0.1.3.tar.gz.

File metadata

  • Download URL: asyncom-0.1.3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for asyncom-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f2c7e5592e7a0ba3afb341a8c84e60096ea87b7182add3f76a6a6f738720d2a9
MD5 9af4bc16b1d3cb411c57eb4b3b8be7f1
BLAKE2b-256 7c7b45aeaec3af2aaae39a06e7bb68463b861c785b240d2e7731583a54f2a58e

See more details on using hashes here.

File details

Details for the file asyncom-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: asyncom-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for asyncom-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 491381fea094b4c0cd9623e035e076d0b6a0aae9060f0fec9b9751d7b92280cd
MD5 2b3bf40bbe6e731dba2ce9577bd5ba57
BLAKE2b-256 e5241c5c69299007801edcd09e795951420edd9439712fcee2436d6587f5506f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page