This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The ptypes (“persistent types”) package is a set of Python extension modules written in Cython. It provides a persistency mechanism to Python programs based on memory mapped files. ptypes emphasises execution speed. The persistent objects (persistent versions of ints, floats, strings, structures, lists, sets, dicts plus any extension type supporting the buffer interface) can be accessed and manipulated directly, without serializing and de-serializing them.

The package also implements data types for property graphs (nodes and edges), as well as a basic query interface allowing the enumeration of object-tuples matching a given pattern at (nearly) the speed of a C program.

In its current shape, ptypes is experimental with regards to the stability of its API and the completeness of its functionality. Making the updates to the memory mapped files atomic and implementing garbage collection for the persistent objects are of prime priorities.


ptypes is tested on Linux (but should run on any Posix platform) using CPython 2.7 (Python 3 support is on the agenda). It is distributed as a source tarball, so you need to have gcc to install it. The simplest way to do so is:

pip install ptypes

If you do not have internet access on the host where you need to install it, then download it from PyPI on a host where you do have internet access, copy the tarball over to the target host and:

tar -xf ptypes-<version>.tgz
cd ptypes-<version>
python install

In the doc directory you should find abundant examples of how to use it.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ptypes-0.5.0.tar.gz (698.2 kB) Copy SHA256 Checksum SHA256 Source Feb 10, 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