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 blocked-table

How to install blocked-table

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install blocked-table
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
Windows (64-bit)
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
Mac OS X (10.5+)
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
Linux (32-bit)
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
Linux (64-bit)
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
1.05 Available View build log
1.01 Available View build log
1.08 Available View build log
 
Author
License
BSD
Depended by
Imports
Lastest release
version 1.08 on Dec 2nd, 2011

blocked-table

This package provides an efficient, 2-level indexed table in pure Python. The index structure allows for billions of keys to be added while retaining low memory usage.

Tables are expected to contain string keys; values are encoded using the 'json' package and optionally compressed using gzip or snappy compression.

usage

Building a table:

import blocked_table
tb = blocked_table.TableBuilder('/tmp/mytable')
for i in range(1000000):
  tb.add(str(i), 'Value %d' % i)
del tb

Reading a table:

t = blocked_table.open('/tmp/mytable')
for k, v in t.iteritems(): print k
v = t.lookup('this is a key')

Utility functions:

d = dict([('key %d' % i, 'value %d' % i) for i in range(1000000)])
dictionary_to_table(d, '/tmp/mytable')

Subscribe to package updates

Last updated Dec 2nd, 2011

Download Stats

Last month:4

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.