Skip to main content

pycmd: tools for managing/searching Python related files.

Project description

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.

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

pycmd-1.2.tar.gz (12.9 kB view details)

Uploaded Source

File details

Details for the file pycmd-1.2.tar.gz.

File metadata

  • Download URL: pycmd-1.2.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycmd-1.2.tar.gz
Algorithm Hash digest
SHA256 adc1976c0106919e9338db20102b91009256dcfec924a66928d7297026f72477
MD5 4f42f0696d597c07538d8aeb7754d610
BLAKE2b-256 c1eac73238007d9e57a513f39835a815c4aaaf3bdc9e1ee64fd3bdb6a616ecf9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page