pytodotxt
A tiny library to access todo.txt-like task lists.
Installation
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.
Documentation
You can find the full documentation at https://vonshednob.cc/pytodotxt/doc/.
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')
todotxt.parse()
for task in todotxt.tasks:
if not task.is_completed:
print(task.description)
Here is how you add a new task to an existing todo.txt file:
import datetime
import pytodotxt
todotxt = pytodotxt.TodoTxt('todo.txt')
todotxt.parse()
task = pytodotxt.Task()
task.parse('This is a new task')
task.creation_date = datetime.date.today()
todotxt.tasks.append(task)
todotxt.save()
Is this project still active?
You can consider this project actively maintained until: 2026-07-01.
If today is past that date, please consider this project no longer maintained and do not expect issues or questions to be answered by the maintainers.
Metadata
Release files for pytodotxt 3.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 |
|---|---|---|---|---|
| pytodotxt-3.1.0.tar.gz | 123.7 kB | Without provenance | Details for pytodotxt-3.1.0.tar.gz |
Release files / pytodotxt-3.1.0.tar.gz
| Download URL | pytodotxt-3.1.0.tar.gz |
|---|---|
| Size | 123.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00ed7e6ca22a8d7dc0f8f0c3424765209d20808a76c06963a1c43d917506e5fe
|
|
BLAKE2b-256 checksum How to use checksums |
d8595449ac80f2a85c1156d6226b841497577563585fdeae8115f17e9abdea65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for pytodotxt 3.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.