RTM API wrapper
Project description
Python wrapper for "Remember the Milk" API
Usage of client
from rtmmilk import Client, RTMError, Task
client = Client(API_KEY, SHARED_SECRET, TOKEN)
try:
client.Add(Task(title='title', tags=['tag1', 'tag2']))
await client.AddAsync(Task(title='title', tags=['tag1', 'tag2']))
except RTMError as e:
print(e)
Usage of API functions directly
from rtmmilk import API, RTMError
api = API(API_KEY, SHARED_SECRET, TOKEN)
timeline = api.TimelinesCreate().timeline
try:
api.TasksAdd(timeline, 'task name')
except RTMError as e:
print(e)
from rtmmilk import APIAsync, RTMError
apiAsync = APIAsync(API_KEY, SHARED_SECRET, TOKEN)
timeline = await apiAsync.TimelinesCreate().timeline
try:
await api.TasksAdd(timeline, 'task name')
except RTMError as e:
print(e)
Authorization
from rtmmilk import AuthorizationSession
authenticationSession = AuthorizationSession(API_KEY, SHARED_SECRET, 'delete')
input(f"Go to {authenticationSession.url} and authorize. Then Press ENTER")
token = authenticationSession.Done()
print(f'Authorization token is {token}')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtmilk-0.0.11.tar.gz
(12.9 kB
view details)
Built Distribution
rtmilk-0.0.11-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file rtmilk-0.0.11.tar.gz
.
File metadata
- Download URL: rtmilk-0.0.11.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0daedda2c92e723d32bdb0148bde7f45c04134c3ec43b75eee87430ef911617 |
|
MD5 | 35d436a5b9bd287d57b55a575666934b |
|
BLAKE2b-256 | 73141d69e4222dfa8dfa1ab76d2d8c7976b9b423d25c232785cdedc818638c42 |
File details
Details for the file rtmilk-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: rtmilk-0.0.11-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0654ad88aa2a145bc3315a8bbb5dc1a24cad28d1c0f222d5359f85ec419fd460 |
|
MD5 | 997608e8543deb0362f0c61444456840 |
|
BLAKE2b-256 | 471fba8345090253bff67232f73df72f108b71af74ac561b33c6711f7b4d623d |