Skip to main content
Files added late

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

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.1.0

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

Files added late

4 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.1.0
File Size Uploaded
speedups-1.1.0.tar.gz 140.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for speedups 1.1.0
File
speedups-1.1.0-cp311-cp311-macosx_12_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 12.0+ x86-64 Details
speedups-1.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
speedups-1.1.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
speedups-1.1.0-cp310-cp310-macosx_12_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 12.0+ x86-64 Details
speedups-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
speedups-1.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
speedups-1.1.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
speedups-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
speedups-1.1.0-cp39-cp39-macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) Details
speedups-1.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
speedups-1.1.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
speedups-1.1.0-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details
speedups-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
speedups-1.1.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
speedups-1.1.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
speedups-1.1.0-cp37-cp37m-macosx_12_0_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64 Details
speedups-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details

Total release size: 5.8 MB

Release files / speedups-1.1.0.tar.gz

Download URL speedups-1.1.0.tar.gz
Size 140.6 kB
Tags Source
SHA-256 checksum
How to use checksums
69c25454f6ec87b6b69a49060f2ae54f2a48578b8b72db3be8a31ae713e8c5b6
BLAKE2b-256 checksum
How to use checksums
02545a99d38519f43a6930cf3694e539e29bffb05b485db707258c92411c58dd
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.1.0-cp311-cp311-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.1.0-cp311-cp311-macosx_12_0_x86_64.whl
Size 282.2 kB
Tags CPython 3.11 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
d834a692a21a8173372e6e40ae409045ed257530166e4e8ea5968cea178cd0c8
BLAKE2b-256 checksum
How to use checksums
63ce494d7d6c80f290db53d3041ba40a6ecaa4d23c789743f97d4a09e176757b
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.1.0-cp310-cp310-win_amd64.whl

Download URL speedups-1.1.0-cp310-cp310-win_amd64.whl
Size 211.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
452f23b4d90ee28de4d4eb82a79c8214ed8c6189f72a4070d148aefcf8b6c938
BLAKE2b-256 checksum
How to use checksums
e01cbb2094ad007401ed9ba80078d9952106521b91917835c8c19e8f5610ef93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 620.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5609ed0354eb670229f5f73ec77b70c41adfdc72817e92ffe78364512576f5b3
BLAKE2b-256 checksum
How to use checksums
5d156ce2d455bbab495bcaad01d2beb7b586b9092c4f87fba21f7ad3f07ba142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp310-cp310-macosx_12_0_x86_64.whl
Size 225.6 kB
Tags CPython 3.10 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
8671358948431a0cdddd6bfa800eb3fc30c1c0bcb70ac79fc37778bbc5ea399f
BLAKE2b-256 checksum
How to use checksums
c412196bd3e6c69478b0df1aef9c6645189e6eb7fadc608fea55ac49f18ace0e
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.1.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL speedups-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 227.2 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
f5e26c0bdb91feed3da392c85c409bff797a9d8c2df821f5a7fdcd4d196b4ff2
BLAKE2b-256 checksum
How to use checksums
52651a415351153e3adcddf5ef8ac24fbcbb7ea095b0382504bdf920b00cbeae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp39-cp39-win_amd64.whl
Size 212.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
adb7f3d84e4152e6f603211e7e60a9d6f46a02ee20995f58565e362239ee1aef
BLAKE2b-256 checksum
How to use checksums
3fea0425a1f2e4cdf9772692c3726a49b09ad5845570938ee2ffecc8faa5a23b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 628.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
49b087afff26b36f8eb0f9d30abf1d4e01c36c99d05eb359082e303bb296d6d7
BLAKE2b-256 checksum
How to use checksums
113fcd5c008e9e50bb68f79093733497dd6f2469b0d3e7037fe549e098b492a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 227.3 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
73144981c392dc496d7f775460a1d0f542e4ceaa90e4c64221d2fc6f4dc37f5b
BLAKE2b-256 checksum
How to use checksums
c8ce6eba2ec6d827d054230de6db30c0ac79a2feb7f39049c9d6458a615b48a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / speedups-1.1.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.1.0-cp39-cp39-macosx_10_9_universal2.whl
Size 387.4 kB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
025d4d96fd61ae6309f9c5c1739a07bea26892343b5b4899f8aa7976ae7f76ea
BLAKE2b-256 checksum
How to use checksums
c343ff30f1a19eb7b930bf1a4eb4f4a2579e03f3673063f1be6afc7363c4ae34
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.1.0-cp38-cp38-win_amd64.whl

Download URL speedups-1.1.0-cp38-cp38-win_amd64.whl
Size 212.8 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
19527f4de27e203a43ea902f61e34e964eef4c9fa78438ec01692dda0e287768
BLAKE2b-256 checksum
How to use checksums
d2287cc2ca7e7caa35dd29c146487c7918647e85793f6ba4be999b15d50492c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 634.9 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4a098f922c081b648c6468aafbdff0653aaaa13e1a398370c0db06ff706b0ce3
BLAKE2b-256 checksum
How to use checksums
0d822be12b23600b4fb9529f62085d2a44c082b9e5f9c89383b4cca4608c3b7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / speedups-1.1.0-cp38-cp38-macosx_10_15_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.1.0-cp38-cp38-macosx_10_15_x86_64.whl
Size 283.0 kB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
3359e9668080a9149d5cb7e091aa9bf8af586f7ef87e9a68e60663786578fb70
BLAKE2b-256 checksum
How to use checksums
aa528c965ae6b9eab00a308751c611fd694bf44496735f1e95f632181a5c7a0e
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.1.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL speedups-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 224.9 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
b642149f09319e31c4bbc5e3c1a26aa20b8e70f956063927f4c218aad6a574f3
BLAKE2b-256 checksum
How to use checksums
4737e9025c413706b6655ae209a9f5a1b7c2cbec11d20ffa072862deb35e5fe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp37-cp37m-win_amd64.whl
Size 211.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
efaef07bc49623557efc7b892027943f48df9f22e26ddc29acdd32be42fd7305
BLAKE2b-256 checksum
How to use checksums
899ee46e78fe654a1732218f2102ddcb0a001e231ce27add20276dd898927ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL speedups-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 595.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f9ac6651bf28f487a879ed3d79407c6ea3c32d715974a166f60f3b8395daf142
BLAKE2b-256 checksum
How to use checksums
e8dfc4142fa1176662fe72cfe124d7e7a2b9c77c6655b608dfc5dfbc1c5548c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / speedups-1.1.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.1.0-cp37-cp37m-macosx_12_0_x86_64.whl
Size 287.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
3315ed9189f0a03de46a878592f05b83ca901f56354102197480b2f15bcb41af
BLAKE2b-256 checksum
How to use checksums
cdf164abb461d46b2ba58de199bf58dea9c58ae3829f1db644e9a7b6c08e81d3
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.1.0-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL speedups-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Size 225.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e0c8f0504df18685051c96e93852f46735e6faec2f845a1c0422c3a7f9d7f15c
BLAKE2b-256 checksum
How to use checksums
02d8bb6eac614dc864a5c3760d2ccd756629f4dab2461ee43e6341bdbfeb2d12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

2.3.3

50 release files

2.3.2

50 release files

2.3.1

50 release files

2.3.0

50 release files

2.2.0

19 release files

2.1.0

19 release files

1.4.0

17 release files

1.3.2

16 release files

1.3.0

2 release files

1.2.0

17 release files

This release

1.1.0 This release

18 release files

1.0.0

17 release files

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