Skip to main content

A async wrapper for mongodb

Project description

## Tailow
[![Build Status](https://travis-ci.org/sourcepirate/tailow.svg?branch=master)](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


Download files

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

Files for tailow, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size tailow-0.1.0-py3.6.egg (21.8 kB) File type Egg Python version 3.6 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