Skip to main content

pycmd scripts

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.

Metadata

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 Provenance
pycmd-1.2.tar.gz 12.9 kB Without provenance 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

Security for pycmd 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file No provenance

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