Skip to main content

Functions to manage the 2DoApp from the command line.

Project description

https://img.shields.io/github/release/KarstenSchulz/twodolib.svg https://img.shields.io/travis/KarstenSchulz/twodolib.svg https://img.shields.io/coveralls/KarstenSchulz/twodolib.svg https://img.shields.io/requires/github/KarstenSchulz/twodolib.svg https://img.shields.io/pypi/v/twodolib.svg https://img.shields.io/github/license/KarstenSchulz/twodolib.svg

Description

This package provides a library twodolib and a command line utility task2do to add tasks, projects and checklists on OS X to the 2DoApp from the command line.

Since version 1.5 (Mac) 2Do supports adding tasks by using an URL scheme. For example, if you want to add the task Save the world., you can open the URL:

twodo://x-callback-url/add?task=Save%20the%20world.

to add this task to your 2Do App.

The task2do command supports creating such URLs from the command line. To print an URL of such a task, enter:

task2do "Save the world."

which prints the URL to stdout:

twodo://x-callback-url/add?task=Save%20the%20world.

If you want to actually add the task to your 2Do App, use the -e or --execute option:

task2do -e "Save the world."
# no output here, but the task should be in your standard list in 2Do

Features

  • runs with Python 3 and Python 2

  • Create tasks on the command line and show the corresponding URL scheme, for copy and pasting it.

  • Create tasks on the command line and open the corresponding URL scheme.

See the documentation at http://twodolib.readthedocs.org/en/latest/

Install

See docs/installation.rst (It’s just pip install twodolib)

Dependencies

  • wheel

For testing:

  • mock

License

  • Free software: ISC license

History

0.2.1 (unreleased)

  • fixed classifier in setup.py

0.2.0 (2015-09-20)

  • first public release.

0.1.0 (unreleased)

  • ADD: more commandline options implemented: repeat, due, dueTime, start

  • ADD: docs

0.0.1 (2015-09-14)

  • not released - pre alpha.

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

twodolib-0.2.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twodolib-0.2.0-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file twodolib-0.2.0.tar.gz.

File metadata

  • Download URL: twodolib-0.2.0.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twodolib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 682af81c26f8b048e165618c0ec3c861919ce7c6a7a0d65939c7fac2d224e4ae
MD5 1e0f1a46406cd78a897877cfe323dd44
BLAKE2b-256 0e538024ab1c4e43f9fec68a35a768a03e01cb1c86c2e787b49220ac10e04fa0

See more details on using hashes here.

File details

Details for the file twodolib-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for twodolib-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58f56b71e7c56ae4f2109004951225ef31cdcaa4616bc41cec6fc6918ac415fa
MD5 54767f2cb52c6b1c6633e821a4b55fca
BLAKE2b-256 3389ae169b2008374102ea5730a9aae7ceb561288caab8ff8645a77b6115069e

See more details on using hashes here.

Supported by

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