Coder Social home page Coder Social logo

jucacrispim / mongomotor Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 1.0 394 KB

Asynchronous Object-Document Mapper for Python and MongoDB

Home Page: http://mongomotor.poraodojuca.dev

License: GNU General Public License v3.0

Python 99.19% Shell 0.81%

mongomotor's People

Contributors

dependabot[bot] avatar jucacrispim avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

sourcepirate

mongomotor's Issues

what would you think about changing the license from GPL3 to MIT?

Hi @jucacrispim ,

I'm working on a large project involving MongoDB and MongoEngine. We are about to refactor our code in order to make Mongo queries asynchronous. mongomotor is the solution to our problem and we are almost about to integrate it in our project.

The project is a professionnal project, this means that we would report bugs, propose pull requests, etc. We would be contributors to your project.

Unfortunately, our project is distributed under a proprietary licence, which is not compatible with GPL 3 - the licence of mongomotor.

Question : would you mind changing mongomotor's license from GPL 3 to something like Apache or MIT?

I ask the question because you may have chosen GPL 3 ...

  • for strong reasons (like you do not want mongomotor to be included in proprietary software)
  • "as a default choice" because you did not know which open source licence to choose and GPL 3 sounded like a good choice but are not against changing it.

Let me know your point of view. We'll decide to continue with mongomotor if changing the licence is ok for you, or we'll continue our investigations in order to find the right module for our needs.

Damien

Upgrade to motor 2

Motor 2 has breaking changes and mongomotor must be changed. Gridfs support must be refactored

Bad dereferencing of cached references

When a reference is already cached, it is returned imediately not, by a future.

RROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<Slave._process_info() done, defined at /home/deployer/toxicmaster-env-py35/src/toxicbuild/toxicbuild/master/slave.py:172> exception=TypeError("object Repository can't be used in 'await' expression",)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/deployer/toxicmaster-env-py35/src/toxicbuild/toxicbuild/master/slave.py", line 184, in _process_info
await self._process_build_info(build, info)
File "/home/deployer/toxicmaster-env-py35/src/toxicbuild/toxicbuild/master/slave.py", line 193, in _process_build_info
repo = await build.repository
TypeError: object Repository can't be used in 'await' expression

Using ioloop explicitly durring connect function call.

Does mongomotor provide a way to connect with an io_loop explicitly. If not its a good to have enhancement. Since it would be very useful to use mongomotor along with third party async frameworks like sanic.

@app.listener('before_server_start')
def pre_hook(app, loop):
      connect('<mongo_url>', io_loop=loop)

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.