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.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


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

Uploaded Source

Built Distribution

rtmilk-0.0.12-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtmilk-0.0.12.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

Hashes for rtmilk-0.0.12.tar.gz
Algorithm Hash digest
SHA256 d33da9fb658f15af69d02b2a1c80927b9004b0d86c96e32bf47637a58ca45f49
MD5 0ddd44100c4f4f1586d6d7be4202882e
BLAKE2b-256 5d19c65f79ea0cdca8049989ce55eaa784cd30d751d20c3692fab5626bff4b55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rtmilk-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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

Hashes for rtmilk-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b90c869b99d5757ae728f003222b6dbb41312da48c27e511415dcb356eccc473
MD5 a9a1419fca261dab332727cd87434bfb
BLAKE2b-256 e9da2c340847e528a8ae726adeba209b17596d6d6cac9975a826ff3b5a1c72ea

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