Skip to main content

todoist-python - The official Todoist Python API library

Project description

# todoist-python - The official Todoist Python API library

## Quick Start

Install with

`bash pip install todoist-python `

Official Documentation can be found at https://todoist-python.readthedocs.io/en/latest/.

## Example Usage

Import the library and try some commands:

`python $ python >>> import todoist >>> api = todoist.TodoistAPI('0123456789abcdef0123456789abcdef01234567') >>> api.sync() >>> full_name = api.state['user']['full_name'] >>> print(full_name) John Doe >>> for project in api.state['projects']: ... print(project['name']) ... Personal Shopping Work Errands Movies to watch `

## Building from Source

### Build Project

Requirements:

Clone the repo and enter it:

$ git clone git@github.com:Doist/todoist-python.git ; cd todoist-python

Create an environment:

$ virtualenv –system-site-packages -p /usr/bin/python2.7 Env

Activate the environment:

$ source Env/bin/activate

Install the library along with all the dependencies (so far we depend on awesome requests only):

$ pip install -e .

### Build Documentation

If you want to build the documentation as well, install some extra packages:

$ pip install -r doc/requirements.txt

Build the documentation:

$ (cd doc ; make html)

Read the built documentation by opening:

doc/_build/html/index.html

## Testing the library

We have a set of tests to ensure we support Python both 2.x and 3.x. To test it out, please make sure you have python 2.7 and python 3.4 installed in you system. Then install “tox” either globally (preferred way) or in your local environment.

# apt-get install python-tox

or

$ pip install tox

You will also need to have the pytest.ini file. We are providing a pytest.ini.sample that you can copy and paste to create your own pytest.ini. You will need two different tokens (token and token2 keys on on pytest.ini) to be able to run all the tests successfully.

With everything set up, you can just run:

$ tox

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

todoist-python-8.1.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

todoist_python-8.1.1-py2.py3-none-any.whl (23.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file todoist-python-8.1.1.tar.gz.

File metadata

  • Download URL: todoist-python-8.1.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for todoist-python-8.1.1.tar.gz
Algorithm Hash digest
SHA256 da22f97c353fb0af435dd06194b1c72d0f8ac1c6ea987af0d51b3fb091bb114e
MD5 5e73c72187c5435be3eaee3fd4f93b11
BLAKE2b-256 90db8f7c4836b37205c951f82a17827ebd52e9e0cc73ecbb9df0312f5558c513

See more details on using hashes here.

File details

Details for the file todoist_python-8.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: todoist_python-8.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for todoist_python-8.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f38c04ae3704c8318f5397e2e1c34586260e06b3f2e0f659eec91a56a08d1fc6
MD5 6fc68feb6e1e29d967ef50ac8813bcc0
BLAKE2b-256 65219c1260c10df84be644fb49bd2813a4a2ed293b4f6e42b08089a0cf0390a6

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