Skip to main content

RTM API wrapper

Project description

codecov PyPI version

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.TasksCreateTimeline().timeline
try:
    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


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.9.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

rtmilk-0.0.9-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file rtmilk-0.0.9.tar.gz.

File metadata

  • Download URL: rtmilk-0.0.9.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.4.0

File hashes

Hashes for rtmilk-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e8e27225e3e487c98960f0bf9fa13835c11353c1dfcfeb3a1b016958e04658df
MD5 f8270bb2a1a272c1caeabb570f4e0c78
BLAKE2b-256 355f67a93fd3fc40ef37702101fb8385ecb286de51333158196490342daa6d86

See more details on using hashes here.

File details

Details for the file rtmilk-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: rtmilk-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.4.0

File hashes

Hashes for rtmilk-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c02fc128d947eb65268a8d3500821fe33163f11ff7e1592f16c9171ba078db93
MD5 971ef47057d5506614471453b4a225a7
BLAKE2b-256 db7843ba2310fab395a6608ba9363ac4b7cf6771e63acd1951a8ad9d3bb9a324

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page