Skip to main content

exporteer_todoist

This is a very simple tool for exporting data from Todoist via their API.

Getting Started

  1. Install python3 and pip
  2. pip install exporteer_todoist
  3. Look up your API token

To download the latest backup (i.e., what you would get by going to 'Backups' in 'Settings' in Todoist) as a zip file:

export TODOIST_API_TOKEN=your_token_here
exporteer_todoist latest_backup > backup.zip

To download JSON representing a full sync:

export TODOIST_API_TOKEN=your_token_here
exporteer_todoist full_sync > backup.json

Note that the latter is essentially equivalent to just running this curl command:

curl https://api.todoist.com/sync/v8/sync \
    -d token=your_token_here \
    -d sync_token='*' \
    -d resource_types='["all"]' \
    > backup.json

Development

Setup:

  1. Install python3 and pip
  2. Clone the repo
  3. I recommend creating a venv:
    cd exporteer_todoist
    python3 -m venv venv
    source venv/bin/activate
    
  4. Install dependencies:
    pip install .
    pip install -r requirements-dev.txt
    

To run integration tests (these will download real data from your Todoist account, so a token is required):

export TODOIST_API_TOKEN=your_api_token
PYTHONPATH=src pytest

(Overriding PYTHONPATH as shown ensures the tests run against the code in the src/ directory rather than the installed copy of the package.)

To run the CLI:

export TODOIST_API_TOKEN=your_api_token
PYTHONPATH=src python -m exporteer_todoist ...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/brokensandals/exporteer_todoist.

License

This is available as open source under the terms of the MIT License.

Release files for exporteer-todoist 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exporteer-todoist 0.0.1
File Size Uploaded
exporteer_todoist-0.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exporteer-todoist 0.0.1
File Interpreter ABI Platform
exporteer_todoist-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / exporteer_todoist-0.0.1.tar.gz

Download URL exporteer_todoist-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4de6015ccaeeb342d8e50a5076ede33d23129884729e47a729a1a0a112eb64b
BLAKE2b-256 checksum
How to use checksums
a9825598e07a06e9badd0051b62999d90d668ace9fe7e26f63d6aac8cf94989a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release files / exporteer_todoist-0.0.1-py3-none-any.whl

Download URL exporteer_todoist-0.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74f6c55b37cc48392bc5b90f1abc2092465a0c85af34eb33679ba7318935d0f2
BLAKE2b-256 checksum
How to use checksums
cd5d49c1da03f3a7659cadb6979bbe83749d70876987dfe1f0244aa28a7089e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page