Skip to main content

Python wrapper for CPP stdlib containers

Project description

cpp-containers-python

Python wrapper for the C++ Standard Library containers. The behaviour of the containers might not be as expected, since for sorting and hashing the items only the pointer to the Python object is used, and not the actual content. That means items in ordered collections will be ordered according to memory layout and to object content. Furhermore, equality checks will work as pairwise is tests, because only the pointers are compared internally. Also certain operations will lead to undefined behavior, such as accessing out of bounds indices in Vector.

This design decision was made for performance reasons and to keep the code as simple and close to C++ as possible. Real equality checks can still be implemented by pairwise comparison of the objects at Python level. This won't be any faster than doing so on normal Python collections.

For more documentation about the C++ containers see https://en.cppreference.com/w/cpp/container.

Install

pip install cpp-containers (not working yet)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

cpp-containers-0.1.tar.gz (280.3 kB view hashes)

Uploaded Source

Built Distributions

cpp_containers-0.1-pp39-pypy39_pp73-win_amd64.whl (179.3 kB view hashes)

Uploaded PyPy Windows x86-64

cpp_containers-0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (271.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (256.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

cpp_containers-0.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (229.0 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

cpp_containers-0.1-pp38-pypy38_pp73-win_amd64.whl (180.0 kB view hashes)

Uploaded PyPy Windows x86-64

cpp_containers-0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (252.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

cpp_containers-0.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (230.2 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

cpp_containers-0.1-pp37-pypy37_pp73-win_amd64.whl (179.9 kB view hashes)

Uploaded PyPy Windows x86-64

cpp_containers-0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (268.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (254.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

cpp_containers-0.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (230.0 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

cpp_containers-0.1-cp311-cp311-win_amd64.whl (202.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

cpp_containers-0.1-cp311-cp311-win32.whl (169.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

cpp_containers-0.1-cp311-cp311-musllinux_1_1_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp311-cp311-musllinux_1_1_i686.whl (2.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

cpp_containers-0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp311-cp311-macosx_10_9_x86_64.whl (302.6 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

cpp_containers-0.1-cp310-cp310-win_amd64.whl (198.6 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

cpp_containers-0.1-cp310-cp310-win32.whl (168.3 kB view hashes)

Uploaded CPython 3.10 Windows x86

cpp_containers-0.1-cp310-cp310-musllinux_1_1_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp310-cp310-musllinux_1_1_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

cpp_containers-0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (1.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp310-cp310-macosx_10_9_x86_64.whl (302.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cpp_containers-0.1-cp39-cp39-win_amd64.whl (198.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

cpp_containers-0.1-cp39-cp39-win32.whl (168.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

cpp_containers-0.1-cp39-cp39-musllinux_1_1_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp39-cp39-musllinux_1_1_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

cpp_containers-0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (1.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp39-cp39-macosx_10_9_x86_64.whl (302.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cpp_containers-0.1-cp38-cp38-win_amd64.whl (201.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

cpp_containers-0.1-cp38-cp38-win32.whl (170.2 kB view hashes)

Uploaded CPython 3.8 Windows x86

cpp_containers-0.1-cp38-cp38-musllinux_1_1_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp38-cp38-musllinux_1_1_i686.whl (2.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

cpp_containers-0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp38-cp38-macosx_10_9_x86_64.whl (302.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cpp_containers-0.1-cp37-cp37m-win_amd64.whl (188.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

cpp_containers-0.1-cp37-cp37m-win32.whl (165.8 kB view hashes)

Uploaded CPython 3.7m Windows x86

cpp_containers-0.1-cp37-cp37m-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp37-cp37m-musllinux_1_1_i686.whl (2.2 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

cpp_containers-0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (1.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp37-cp37m-macosx_10_9_x86_64.whl (297.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cpp_containers-0.1-cp36-cp36m-win_amd64.whl (189.2 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

cpp_containers-0.1-cp36-cp36m-win32.whl (165.0 kB view hashes)

Uploaded CPython 3.6m Windows x86

cpp_containers-0.1-cp36-cp36m-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

cpp_containers-0.1-cp36-cp36m-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

cpp_containers-0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

cpp_containers-0.1-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686

cpp_containers-0.1-cp36-cp36m-macosx_10_9_x86_64.whl (311.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page