Skip to main content

Extracts TODO: notes from source code.

Project description

todo-extractor

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.

Usage

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

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

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.

Source Distribution

todo_extractor-0.2.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

todo_extractor-0.2.1-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file todo_extractor-0.2.1.tar.gz.

File metadata

  • Download URL: todo_extractor-0.2.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for todo_extractor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a1392896c71566ee69c8eacfa7678aaf095f79e9c24eefaacac6f06e02a79111
MD5 97de58d9ccea713e46411acfdb5cf439
BLAKE2b-256 0d58e78ff0fdb6d18838009f5be0b4fd1eeda5f042c29ae0eecfd0a5f8113623

See more details on using hashes here.

File details

Details for the file todo_extractor-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for todo_extractor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9689f5bf0f8296ffb546519202eadcc1948ec6d6e0a573dc98fc92ea049adbcd
MD5 dff3774cf3da316c4e6d0a72a387e11a
BLAKE2b-256 a15af30a0b01ae7dc2144480f873d9a19c96c59a3ed4de94e6c93cd26a244448

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page