Skip to main content

Simple JSON-Based CRUD Query Language for SQLAlchemy

Project description

JsonQL-SQLAlchemy
=================

Simple JSON-Based CRUD Query Language for SQLAlchemy

### Installation

For installing JsonQL for SQLAlchemy, just run this command in your shell.

```bash
pip install jsonql-sqlalchemy
```

### Quick Start

After installing JsonQL-SQLAlchemy, just write this code. That's all!

```python
"""Print records in MyModel Table.

(MyModel) SQLAlchemy Model
(session) SQLAlchemy session instance
"""

from jsonql_sqlalchemy import *


class MyQuery(QueryObject):
model_class = MyModel
session = session
fields = qlutils.map_model(MyModel)


if __name__ == "__main__":
print(MyQuery().read({}))

```

### Example

For more example codes, see in `samples` directory.


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 jsonql-sqlalchemy, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size jsonql_sqlalchemy-1.0.0-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page