Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wong2/memobird.py

unofficial Python SDK for memobird 咕咕机
https://github.com/wong2/memobird.py

memobird

Last synced: 6 days ago
JSON representation

unofficial Python SDK for memobird 咕咕机

Awesome Lists containing this project

README

        

### memobird.py

unofficial Python SDK for [memobird](http://www.memobird.cn/)

### Installation

$ pip install memobird

### Usage

from memobird import Memobird

memobird = Memobird('{ak}')
memobird.setup_device('{device_id}')
memobird.print_text('text')
memobird.print_image('/path/to/image.jpg')

### Advanced Usage

In case you need more control of contents layout:

from memobird import Memobird

memobird = Memobird('{ak}')
memobird.setup_device('{device_id}')

paper = Paper()
paper.add_text('text')
paper.add_text('another text')
paper.add_image('/path/to/image.jpg')
paper.add_text('one more text')

paper_id = memobird.print_paper(paper)

// check if paper is printed
print memobird.is_paper_printed(paper_id)