Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyficache

How to install pyficache

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyficache
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.4
0.2.3Never BuiltWhy not?
0.1.4 Available View build log
0.1.0 Available View build log
Windows (64-bit)
0.1.4
0.2.3Never BuiltWhy not?
0.1.4 Available View build log
0.1.0 Available View build log
Mac OS X (10.5+)
0.1.4
0.2.3Never BuiltWhy not?
0.1.4 Available View build log
0.1.0 Available View build log
Linux (32-bit)
0.2.3 Available View build log
0.1.4 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.2.3 Available View build log
0.1.4 Available View build log
0.1.0 Available View build log
 
License
GPL
Dependencies
Depended by
Imports
Lastest release
version 0.2.3 on Mar 30th, 2013

A - pyficache module to read and cache information about a Python program.

SYNOPSIS

The pyficache module allows one to get any line from any file, caching lines of the file on first access to the file. Although the file may be any file, the common use is when the file is a Python script since parsing of the file is done to figure out where the statement boundaries are.

The routines here may be is useful when a small random sets of lines are read from a single file, in particular in a debugger to show source lines.

Summary

import pyficache lines = pyficache.getlines('/tmp/myprogram.py') line = pyficache.getline('/tmp/myprogram.py', 6) # Note lines[6] == line if /tmp/myprogram.py has more 6 or more lines

pyficache.clear_file_cache() pyficache.clear_file_cache('/tmp/myprogram.py') pyficache.update_cache() # Check for modifications of all cached files.

Credits

This is a port of the my Ruby linecache module which in turn is based on the Python linecache module. So in a sense this is decorator and extension of that.

coverage.py provides the cool stuff to figure out lines where there statements.

Other stuff

Author:: Rocky Bernstein <rockyb@rubyforge.net> License:: Copyright (c) 2009 Rocky Bernstein

System Message: ERROR/3 (<string>, line 39)

Unexpected indentation.
Released under the GNU GPL 3 license

0.2.2 02-10-13 - Make it work on 3k

0.2.1 01-06-13 - Handle "dark" and "light" terminal style - Remove a Coverage warning - Fix bug in clearing file cache

0.2.0 01-01-13

  • Caches terminal syntax-colorized code for terminals
  • Interface more closely matches Ruby linecache module.
  • Treats filename.pyc like filename.py

0.1.4 10-28-10

  • Correct packaging

0.1.3 03-15-09 - - incorrect "Provide" in setup.cfg

0.1.2 03-15-09 - Ron Frankel Release - Bug in searching for files

0.1.0 03-08-09 - Ron Frankel -1 Release

  • Initial release

Subscribe to package updates

Last updated Mar 30th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.