An open API service indexing awesome lists of open source software.

https://github.com/hunternet93/ddp_asyncio

Asynchronous Python module for Meteor's DDP protocol
https://github.com/hunternet93/ddp_asyncio

asyncio ddp meteor meteor-framework python

Last synced: 6 months ago
JSON representation

Asynchronous Python module for Meteor's DDP protocol

Awesome Lists containing this project

README

          

# ddp_asyncio

ddp_asyncio is an asynchronous implementation of [Meteor's DDP protocol](https://github.com/meteor/meteor/blob/devel/packages/ddp/DDP.md) for Python 3.5+.

### Installation

Install via PyPi:

pip3 install ddp_asyncio

Or, install using the included setup.py script:

python3 setup.py install

### Usage

[API docs](https://github.com/hunternet93/ddp_asyncio/blob/master/api.md)

Check out the following examples, all of which use Meteor's reference [Todos](https://github.com/meteor/todos) application.

* [Retrieve todo list](https://github.com/hunternet93/ddp_asyncio/blob/master/example_retrieve_todos.py)
* [Create a todo list](https://github.com/hunternet93/ddp_asyncio/blob/master/example_create_todos.py)
* [Watch todo lists for changes](https://github.com/hunternet93/ddp_asyncio/blob/master/example_watch_todos.py)

### Extras

#### Meteor-Files Upload
ddp_asyncio's `MeteorFilesUploader` can upload files to a server using the [Meteor-Files](https://github.com/VeliovGroup/Meteor-Files) package.

[Example](https://github.com/hunternet93/ddp_asyncio/blob/master/example_upload_file.py)