Skip to main content

Extracts TODO: notes from source code.

Project description


Extracts TODO comments from code.

The purpose of this project is to serve as an example of going from a script to a full-fledged project and to be used with the presentation Modern Python development at Omegapoints conference OpKoKo 19.2.

It might be turned into something useful, but currently it's main purpose is to give examples to the presentation.


Run it from the command line like:

$ todo_extractor <optional directory>

if no directory is specified the current directory will be used.

todo-extrator prints a JSON output with match, line number and filename.


Development should preferable always be done in a virtualenv.

Installation is done with flit, which needs to be first be installed in the virtualenv (pip3 install flit).

The package can be installed in development mode with

flit install --symlink

or on Windows

flit install --pth

This will install the package in editable mode and also install the dev-dependencies.


Testing can be done with pytest: pytest --cov=todo_extractor which will also measure test coverage.

To test the installed package, use tox (tox). This will test the installed package on all supported Python versions.

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 todo_extractor, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size todo_extractor-0.2.2-py3-none-any.whl (15.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size todo_extractor-0.2.2.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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