Skip to main content

pycmd is a collection of command line tools for helping with Python development.

py.cleanup: remove .pyc and similar files

Usage: py.cleanup [PATH]

Delete pyc file recursively, starting from PATH (which defaults to the current working directory). Don’t follow links and don’t recurse into directories with a “.”.

py.lookup: find text in recursively found .py files

Usage: py.lookup SEARCH_STRING [options]

Looks recursively at Python files for a SEARCH_STRING, starting from the present working directory. Prints the line, with the filename and line-number prepended.

py.countloc: give LOCs for lines and testlines

Usage: py.countloc [PATHS]

Count (non-empty) lines of python code and number of python files recursively starting from a PATHS given on the command line (starting from the current working directory). Distinguish between test files and normal ones and report them separately.

py.which: print location of an importable package or module

Usage: py.which modulename

Print the __file__ of the module that is imported via import modulename. The version-suffix is the same as with py.test above.

Release files for pycmd 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycmd 1.2
File Size Uploaded
pycmd-1.2.tar.gz 12.9 kB Details

Release files / pycmd-1.2.tar.gz

Download URL pycmd-1.2.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
adc1976c0106919e9338db20102b91009256dcfec924a66928d7297026f72477
BLAKE2b-256 checksum
How to use checksums
c1eac73238007d9e57a513f39835a815c4aaaf3bdc9e1ee64fd3bdb6a616ecf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page