Skip to main content

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](#installation)

  • [Usage](#usage)

  • [Functionality](#functionality)

  • [Requirements](#requirements)

# 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

  • Updates usages of renamed objects in code and docstrings

  • Adds docstring templates for functions and methods in reStructured Text format

# Requirements

  • python>=3.5

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

pythonccf-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file pythonccf-0.1.2.tar.gz.

File metadata

  • Download URL: pythonccf-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 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

Hashes for pythonccf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eb4b2b07c181d61cc691c4b7b6579848e2ee7316e821d8e2c7cb3b13de72dedb
MD5 c28cc0c4cd3be979c83f2eb81d3f43a3
BLAKE2b-256 9693fbdf741e9e92a480360a3c723dbc264f1b289e214b55059bc4800718f2e3

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