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

Uploaded Source

Built Distribution

rtmilk-0.0.8-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtmilk-0.0.8.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/21.2.0

File hashes

Hashes for rtmilk-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c669231621b3bd793f13b2f19745348eec641ba45674cde112ee6d73d54c693a
MD5 36cddf14f6eab42b37739adf12e8783b
BLAKE2b-256 632f105356da1bec699736536f2d3ce95ae6907f77b0757e8565b44bf197fb2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rtmilk-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/21.2.0

File hashes

Hashes for rtmilk-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6aed4f27237ad889d246df8292e55f194aaeb0bb4f5730a932e761d3f0fce578
MD5 71e1236f9a7d180508ef0ce5fac16ee0
BLAKE2b-256 a23b45d7183c8022f8afd6aabca9924f050b00f55ee8d292e9bd4f7cfe6f784a

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