A async wrapper for mongodb
Project description
## Tailow
[](https://travis-ci.org/sourcepirate/tailow)
A ORM wrapper around motor
## Usage
```python
import asyncio
from tailow.fields import *
from pymongo import ASCENDING
from tailow.document import Document
class Address(Document):
address = StringField(required=True)
class Student(Document):
name = StringField(required=True)
age = IntegerField(required=True)
std = IntegerField(required=True)
address = ReferenceField(Address)
class Meta:
name = "students"
indexes = [(age, ASCENDING)]
async def get_all_students():
values = await Student.objects.filter(name="sathya").limit(10).skip(2).find()
print(values)
evloop = asyncio.get_event_loop()
evloop.run_until_complete(get_all_students())
```
## Status
Work in progress.
[](https://travis-ci.org/sourcepirate/tailow)
A ORM wrapper around motor
## Usage
```python
import asyncio
from tailow.fields import *
from pymongo import ASCENDING
from tailow.document import Document
class Address(Document):
address = StringField(required=True)
class Student(Document):
name = StringField(required=True)
age = IntegerField(required=True)
std = IntegerField(required=True)
address = ReferenceField(Address)
class Meta:
name = "students"
indexes = [(age, ASCENDING)]
async def get_all_students():
values = await Student.objects.filter(name="sathya").limit(10).skip(2).find()
print(values)
evloop = asyncio.get_event_loop()
evloop.run_until_complete(get_all_students())
```
## Status
Work in progress.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tailow-0.1.0-py3.6.egg
(21.8 kB
view details)
File details
Details for the file tailow-0.1.0-py3.6.egg.
File metadata
- Download URL: tailow-0.1.0-py3.6.egg
- Upload date:
- Size: 21.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a3308e269f1f1de1a275638b67ed6b15e2faf60b6eaa9ac7dd0880b4c641c15
|
|
| MD5 |
ef9736c0b8e7ecb7059dae2b87cd85e9
|
|
| BLAKE2b-256 |
c03e1159ca3c8cc95f1e90e198a2be6dfed3d615b9bf4cdb1b79f250d520eb5b
|