Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

1.2

History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pycmd-1.2.tar.gz (12.9 kB) Copy SHA256 Checksum SHA256 Source Apr 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting