Skip to main content

Welcome to ptypes!

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.

Installation

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 setup.py install

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

Metadata

Release files for ptypes 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptypes 0.5.0
File Size Uploaded Provenance Actions
ptypes-0.5.0.tar.gz 698.2 kB Without provenance Details for ptypes-0.5.0.tar.gz

Release files / ptypes-0.5.0.tar.gz

Download URL ptypes-0.5.0.tar.gz
Size 698.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d1ca948b60a9b5504f5a218beb0dd5d4c0804930e19383e999dade8dfff8df0f
BLAKE2b-256 checksum
How to use checksums
a87780a8fe113a94d8fd880ffa7471fb60029d1dbeddc60969bda4ee3e848a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ptypes 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page