Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 咕咕机
- Host: GitHub
- URL: https://github.com/wong2/memobird.py
- Owner: wong2
- License: mit
- Created: 2016-04-26T11:32:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T07:18:54.000Z (over 1 year ago)
- Last Synced: 2024-10-02T03:29:06.825Z (about 1 month ago)
- Topics: memobird
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 18
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)