Skip to main content
Release files added late

3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Speedups

This library contains a number of functions for speeding up critical parts of your Python code without having to bother with the hassle of building binary extensions. That way you can keep your main packages simple PEP517 based packages and still get the speedups.

Currently only a few functions are available, but several more are planned.

Generic endian conversion functions in speedups.hton:

  • void pack_int16(char *buf, int16_t x)

  • void pack_int32(char *buf, int32_t x)

  • void pack_int64(char *buf, int64_t x)

  • void pack_float(char *buf, float f)

  • void pack_double(char *buf, double f)

  • int16_t unpack_int16(const char *buf)

  • uint16_t unpack_uint16(const char *buf)

  • int32_t unpack_int32(const char *buf)

  • uint32_t unpack_uint32(const char *buf)

  • int64_t unpack_int64(const char *buf)

  • uint64_t unpack_uint64(const char *buf)

  • float unpack_float(const char *buf)

  • double unpack_double(const char *buf)

These functions are used to convert between native and network byte order and are meant to be used from Cython code. Examples can be found in the speedups.psycopg_array code.

For the psycopg library we have a binary COPY loader to convert a PostgreSQL array to a numpy ndarray. This can be used with the copy() method of a psycopg cursor: https://www.psycopg.org/psycopg3/docs/basic/copy.html

It supports the following PostgreSQL types:

  • float4 (numpy.float32)

  • float8 (numpy.float64)

  • smallint (numpy.int16)

  • integer (numpy.int32)

  • bigint (numpy.int64)

Additionally, it supports arrays varying from 1D to N-D so a 2D or 3D array are supported.

cursor: psycopg.Cursor
psycopg_loaders.NumpyLoader.install(cursor)

query = '''
COPY (
    SELECT array_agg(x)
    FROM generate_series(1, 100000) x
) TO STDOUT WITH BINARY
'''

copy: psycopg.Copy
with cursor.copy(query) as copy:
    copy.set_types(['integer[]'])

    for row in copy.rows():
        print(row)

Metadata

Release files for speedups 1.0.0

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

Files added late

3 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for speedups 1.0.0
File Size Uploaded Provenance Actions
speedups-1.0.0.tar.gz 138.4 kB Without provenance Details for speedups-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for speedups 1.0.0
File Actions
speedups-1.0.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for speedups-1.0.0-cp310-cp310-win_amd64.whl
speedups-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for speedups-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
speedups-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 12.0+ x86-64 Details for speedups-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
speedups-1.0.0-cp310-cp310-macosx_11_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 11.0+ x86-64 Details for speedups-1.0.0-cp310-cp310-macosx_11_0_x86_64.whl
speedups-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for speedups-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
speedups-1.0.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for speedups-1.0.0-cp39-cp39-win_amd64.whl
speedups-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for speedups-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
speedups-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for speedups-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
speedups-1.0.0-cp39-cp39-macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) Details for speedups-1.0.0-cp39-cp39-macosx_10_9_universal2.whl
speedups-1.0.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for speedups-1.0.0-cp38-cp38-win_amd64.whl
speedups-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for speedups-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
speedups-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for speedups-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
speedups-1.0.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for speedups-1.0.0-cp37-cp37m-win_amd64.whl
speedups-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for speedups-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
speedups-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64 Details for speedups-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl
speedups-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details for speedups-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl

Total release size: 5.4 MB

Release files / speedups-1.0.0.tar.gz

Download URL speedups-1.0.0.tar.gz
Size 138.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bc9e9fd82528a798a53741da355dadb344c5909bff899b2367834173773720e0
BLAKE2b-256 checksum
How to use checksums
9a1209dfad67aefeb81290a628020d9ec23e494190d5f05495a30baf9804c526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / speedups-1.0.0-cp310-cp310-win_amd64.whl

Download URL speedups-1.0.0-cp310-cp310-win_amd64.whl
Size 210.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
5a99686f7967133d1707f2394f89a738474a0cdd724807e1df2b077fef1b6dbf
BLAKE2b-256 checksum
How to use checksums
03c576372e22b772f9e7e9c621ab0d000aeaf0241d526fd529f7f680f36851a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL speedups-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 624.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fb6272c2bf4144b29484a665644592e3bf1dd709ef143a2d65dbe4ed2f818f9c
BLAKE2b-256 checksum
How to use checksums
4896ac74628f1205c5a77843838707960271976322c1fb73e4973df832fe4e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL speedups-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
Size 234.6 kB
Tags CPython 3.10 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
3798b76c46d1151369c9c7d21bb390eae80871fc50cf37dedcb3556606c8009f
BLAKE2b-256 checksum
How to use checksums
6517990fee91c0e4d6c1a7d3ecc820ab75841aa57a316ae4443a617d9087aa2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / speedups-1.0.0-cp310-cp310-macosx_11_0_x86_64.whl

Download URL speedups-1.0.0-cp310-cp310-macosx_11_0_x86_64.whl
Size 225.6 kB
Tags CPython 3.10 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
c64e01c490dd388d33803c333fde20a2ca2c0c0b01a29c1492c8a631f859ea0b
BLAKE2b-256 checksum
How to use checksums
8152cb26335eba5c74586c2711007a73c8bc2b1629818298aef935ab5a0fa094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / speedups-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL speedups-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 225.4 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
48e45a283fda2903d7c749f2e11705d38b1807648f7a4b316ec6efc56eb51343
BLAKE2b-256 checksum
How to use checksums
f2387933c6ff81a326fe3b767a9db5c271e0b7849bc4253a32f59c2fcd3b8ec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp39-cp39-win_amd64.whl

Download URL speedups-1.0.0-cp39-cp39-win_amd64.whl
Size 210.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
7f5e3f3f222262909e0d7cce5667be622dd261421866149fd71a6325dbb9cc70
BLAKE2b-256 checksum
How to use checksums
5ce2b6c79aa5cc9c77855f4cacc43aab60b40f36eaccf4af8b544a30b9cf9d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL speedups-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 624.0 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3c8fec2487da7b0a94460561d46ce4328c060a71d7787a498d56e3cd079024c6
BLAKE2b-256 checksum
How to use checksums
677e74284dfa0867062393a5680883f458b1efdfe3dbb4261ddbc0df595dea6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL speedups-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 225.4 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
c370b348f2f08652cd7b950ca4df0537563a82c15939cd9dc4cf9317b39e8dc9
BLAKE2b-256 checksum
How to use checksums
83bebbf96658b65660771f237484115de36bce9dde7f91f66fd904b17186d888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp39-cp39-macosx_10_9_universal2.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL speedups-1.0.0-cp39-cp39-macosx_10_9_universal2.whl
Size 331.9 kB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
22a54d18a42c81da1dd489faf1fe48a21ffc02cde311d403e509c7cca3a4636e
BLAKE2b-256 checksum
How to use checksums
f3a8ae5a1aa1a668247f28a0fe919b7d208c211fdc5ef5d411ce3f7e5b3e0168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / speedups-1.0.0-cp38-cp38-win_amd64.whl

Download URL speedups-1.0.0-cp38-cp38-win_amd64.whl
Size 210.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
f2ff2034316b57340ee51f08b073a1711a91c61c93636baa2d570fdfd7c98601
BLAKE2b-256 checksum
How to use checksums
2e4223b3a3cbe760c97b535697bc4a3ff9afab901085eaf6ef57eebd647ec3e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL speedups-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 627.9 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4b9c344b2611f9b869d9d1c1588227eeba5543114d522c5c9e2785162d74ceff
BLAKE2b-256 checksum
How to use checksums
715e567028da8d8f00ca9d2ee94669e35e112193daa6eaed3eb257844c030a03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL speedups-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 223.1 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
adae3770970c6e96be66c3143fd1ac3b8e44fa0f60afadf1ef9df7b734cc7b5e
BLAKE2b-256 checksum
How to use checksums
e0a0e56cf5e348489900c7335a727ea204925c3bb0765cf77a36783b761e431b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp37-cp37m-win_amd64.whl

Download URL speedups-1.0.0-cp37-cp37m-win_amd64.whl
Size 209.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
5f8896bc754a8914db1f45487f9cc22f3d2dfa1a0b4d74ecd29dc71623c0d0a7
BLAKE2b-256 checksum
How to use checksums
d24effecea5096bcfd5aba8754d7d49e5a6ad78f60074b57aa64ad05a9de6785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL speedups-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 590.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
86a66490d4d88e0adb4b5b7980b1614e8900bd72c6f150ab06ac53bed62987a8
BLAKE2b-256 checksum
How to use checksums
491d34bd3a77ff90f01cc0f620f67305998eba6e3e48312b48be6e2794527b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / speedups-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL speedups-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl
Size 241.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
4884dc5e6943b855286d1205f8f5167e9f25a4283c7f69686d3651f0fb47bf46
BLAKE2b-256 checksum
How to use checksums
0947d38288c2fefe9865c2bdfed039195673216b54722870d06ca1f17ac0ca45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / speedups-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL speedups-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Size 223.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e5128fd7d5afc49319ea2b6048b6b159252ddb9b38053176cefc33583e0ccc55
BLAKE2b-256 checksum
How to use checksums
1ccf14dfa1311962835f04bf92ecd305f9fe093978f5a452f6432dcb09f23e9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Security for speedups 1.0.0

Upload timing

Release files added late

3 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

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