Skip to main content

Library to access todo.txt like task lists

Project description


A tiny library to access todo.txt-like task lists.


To install pytodotxt, you can follow these steps to clone the repository, and install the program.

pip install pytodotxt

That’s all there is to do.

Example usage

Here’s an example how to open a todo.txt file and print the description of all tasks that are not marked as completed:

import pytodotxt

todotxt = pytodotxt.TodoTxt('todo.txt')

for task in todotxt.tasks:
    if not task.is_completed:

Here is how you add a new task to an existing todo.txt file:

import datetime

import pytodotxt

todotxt = pytodotxt.TodoTxt('todo.txt')

task = pytodotxt.Task()
task.parse('This is a new task')
task.creation_date =


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytodotxt, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pytodotxt-1.0.4.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View
Filename, size pytodotxt-1.0.4-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page