# 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:
Python 2.7+
Virtualenv: https://pypi.python.org/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 .
### 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
Metadata
Release files for todoist-python 8.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| todoist-python-8.1.0.tar.gz | 18.8 kB | Without provenance | Details for todoist-python-8.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| todoist_python-8.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for todoist_python-8.1.0-py2.py3-none-any.whl |
Total release size: 42.6 kB
Release files / todoist-python-8.1.0.tar.gz
| Download URL | todoist-python-8.1.0.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f4d402137f02f415f99acaa9d7ab24016687202dec9a191aee4745a9ce67dc6
|
|
BLAKE2b-256 checksum How to use checksums |
1537809d1440ae816bdbfa1c542d01d93d3c42cd228739f7c39a67f6c4716ef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / todoist_python-8.1.0-py2.py3-none-any.whl
| Download URL | todoist_python-8.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
aec728f82bfa5b8f83610a4f53c4e30b5196fe4d541da500777d5f13dd2692cd
|
|
BLAKE2b-256 checksum How to use checksums |
e431b0b4887a5ef2278972ac155902c403ac6c05ab5dfd78a26ba878d249f881
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for todoist-python 8.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.