A simple tool for renaming and documenting Python code according to PEP
Project description
pythonccf
A simple tool for renaming and documenting Python code according to PEP
Table of contents
Installation
pip install pythonccf
Usage
pythonccf [args]
Arguments:
-h, --help Show help message and exit
-p P Path to project to format .py files in
-d D Directory to format .py files in
-f F .py file(s) to format
-v, --verify Verify object names and documentation
-o, --output Output fixed files
--output-prefix Output path prefix
Usage example
pythonccf -f examples/test*.py -o --output-prefix output
Functionality
- Verifies and converts class names to CamelCase
- Verifies and converts function and variable names to snake_case
- Verifies and converts file and directory names in project to snake_case
- Updates usages of renamed objects in code and docstrings
- Adds docstring templates for functions, methods and classes in reStructured Text format
- Adds skipped arguments to docstrings
Requirements
- python>=3.5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pythonccf-0.2.0.tar.gz
(7.5 kB
view details)
File details
Details for the file pythonccf-0.2.0.tar.gz.
File metadata
- Download URL: pythonccf-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d046b0c51c20089b339a56d6df9cb21a1ae9a8d5056790a0670f8877b8cd5d9
|
|
| MD5 |
f09831118b116f3444c388bb8274dc33
|
|
| BLAKE2b-256 |
f8b56cb1b60358d91aad09341e2d4c78a7769dc29c095c195f69e01036b7077e
|