Tool to translate docstring types to annotations.
Project description
doc2ann
Inspired by com2ann, I wanted to create a similar tool for converting docstring comments.
Usage:
Install the dependencies:
$ pip install doc2ann
Running
$ doc2ann -a your_file.py
Development
Setup
$ virtualenv .venv
$ . .venv/bin/activate
$ pip install -e ".[dev]"
Build
To build, confirm the version number in pyproject.toml
is up to date, and then run:
$ python3 -m build
Distribute
$ python3 -m twine upload -r pypi dist/doc2ann-<version>*
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
doc2ann-0.0.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for doc2ann-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d0ea8331045370b0f7a68aa8a259eff24b4f24ecd83f7ecab67c7b641f7ecd |
|
MD5 | 0425e200a2198b2a3054517d58234c27 |
|
BLAKE2b-256 | b70828b8bc344231bdd04462ed99c8affe5f124d5f2fba14b72c1344275a55be |