Code Monkey home page Code Monkey logo

motorengine's Introduction

motorengine

Build Status PyPi version Coverage Status

motorengine is a port of the incredible mongoengine mapper, using Motor for asynchronous access to mongo.

Find out more by reading motorengine documentation.

motorengine's People

Contributors

bartv avatar bazzilic avatar btaitelb avatar cula avatar dimap-tr avatar etataurov avatar fpurchess avatar heynemann avatar ilex avatar sagallagherstarr avatar thekie avatar veeloox avatar webknjaz avatar wonderbeyond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

motorengine's Issues

Create EmailField

Create EmailField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create BinaryField

Create BinaryField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create GenericEmbeddedDocumentField

Create GenericEmbeddedDocumentField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Allow __alias__ in documents

Allow users to specify a default alias for a given Document.

Then the connection that has the alias specified by the Document will be used to query for Document instances.

Create URLField

Create URLField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Implement Aggregation

Allow users to aggregate data using the new Aggregation Pipeline(http://docs.mongodb.org/manual/core/aggregation-pipeline/):

class Product(Document):
    type = StringField()
    location = StringField()
    price = FloatField()
    stocked = IntField()
    is_active = BooleanField()

Document.objects.filter(is_active=True).order_by("type").aggregate(
    group_by=[Document.type, Document.location],
    price=Aggregation.add_to_set(Document.price),
    stocked=Aggregation.add_to_set(Document.stocked)
)

The types of aggregation are in the following tickets:

  • Implement add_to_set aggregation - #47
  • Implement first aggregation - #48
  • Implement last aggregation - #49
  • Implement max aggregation - #50
  • Implement min aggregation - #51
  • Implement avg aggregation - #52
  • Implement push aggregation - #53
  • Implement sum aggregation - #54
  • Implement count aggregation - #55

Create DecimalField

Create DecimalField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create MapField

Create MapField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create DictField

Create DictField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create FloatField

Create FloatField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Support querying in sub-documents

Support querying by sub-documents like this:

class Address(Document):
    street = StringField()
    number = IntField()

class User(Document):
    address = EmbeddedDocument(Address)

User.objects.filter(address__street="Main St")

# or 

User.objects.filter(address__number__gt=25)

It should support all available operators.

Create ComplexDateTimeField

Create ComplexDateTimeField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create SortedListField

Create SortedListField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create ImageField

Create ImageField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create IntField

Create IntField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create GeoPointField

Create GeoPointField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create SequenceField

Create SequenceField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Create FileField

Create FileField compatible with MongoEngine one.

Tests that must work:

  • Unit Test;
  • Integration Test (to and from MongoEngine).

Also must make sure that the docs are written in the field's docstring and that the modeling page in the documentation is updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.