Skip to main content

dum lil CLI tool to create summary files with todos and extracts from source code for chatbots.

Project description

Zippity

PyPI version Build Status codecov Documentation Status License: MIT

dum lil CLI to collect TODOs for ChatGPT

alt text

Installation

pipx install zippity_py

Usage

After installation, you can use the CLI by running:

> zpt --help

Usage: zpt [OPTIONS] [SOURCE_DIRECTORY]

Options:
  -e, --extensions TEXT (Default: '.py,.js,.ts')
  -r, --result_file PATH  (Default: 'ZIPPITYDO_EXAMPLE.md')
  -t, --template_file PATH
  --help    

Template

Templates are jinja markdown files, that get passed an list of these:

FileTodos = TypedDict(
    "FileTodos",
    {
        "todos": List[Todo],
        "content": str,
        "language": str,
        "mimetype": str,
        "name": str,
    },
)

Each FileTodo will have a list of todos, like this:

Todo = TypedDict(
    "Todo",
    {
        "line_number": int,
        "text": str,
    },
)

The default template is in template/template.md; once compiled it looks like this:

Screenshot

Contributing

Contributions are welcome. Please make sure to update tests as appropriate.

License

MIT

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

zippity_py-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zippity_py-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file zippity_py-0.1.1.tar.gz.

File metadata

  • Download URL: zippity_py-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for zippity_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d7181b68c346a8246f678289d988487d4c95423941777dbc443f83a91c95f85b
MD5 ae7fc50b2820a8b93db0a9ec43dac682
BLAKE2b-256 11d136ba7b53a3919da1af12417f2dac58fd5db985943aa07a933dd07174ece7

See more details on using hashes here.

File details

Details for the file zippity_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zippity_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for zippity_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fd335393a1b59f706ca7c305d8787b4609083e3e3bf193a4eece05ae5b5c6a1
MD5 585b1bc5b40c0f366ba9d9ac55de2eca
BLAKE2b-256 0d429f05bf087210ca65cf0723531031bb3257f51b210ab0be7ad3343d484952

See more details on using hashes here.

Supported by

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