todoist-python - The official Todoist Python API library
Project description
# todoist-python - The official Todoist Python API library
## How to get started
Requirements:
Python 2.7+
Virtualenv: https://pypi-hypernode.com/pypi/virtualenv
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 .
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
Import the library and try some commands:
`python $ python >>> import todoist >>> api = todoist.TodoistAPI() >>> user = api.user.login('john.doe@gmail.com', 'secret') >>> print(user['full_name']) John Doe >>> response = api.sync() >>> for project in response['projects']: ... print(project['name']) ... Personal Shopping Work Errands Movies to watch `
## 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
Then just type
$ tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file todoist-python-7.0.15.tar.gz
.
File metadata
- Download URL: todoist-python-7.0.15.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61468416119c141215920600852be6854c3e7560de5921c3b9a38525c3019bf9 |
|
MD5 | ddbede3aa86a4d26f0aeac245dfb0f14 |
|
BLAKE2b-256 | 7650e20654362449b67f406d439a953cc3e96ae414ad97300cb02aa5464259e0 |