Skip to main content

C extensions for ImageD11 (c2py23 binding)

Project description

c2ImageD11

All code in this repository was generated by DeepSeek V4 and other large language models, in collaboration with jonwright.

Standalone C extensions for ImageD11, ported from f2py to c2py23. C functions are exposed by a generated CPython extension wrapper. Two functions (blobproperties, sparse_blob2Dproperties) have thin Python allocation wrappers in __init__.py to match f2py's convention of auto-allocating output arrays.

Build

A normal build needs only meson + ninja + a C compiler. The generated files in lib/interface/ are checked into git, so c2py23 is not required.

mkdir -p build/libc2ImageD11
cd build/libc2ImageD11
meson setup ../../lib
ninja
cp _cImageD11.so ../../c2ImageD11/

Regenerate lib/interface/

Run this when C2PY_BLOCKs change or c2py23 is updated (requires c2py23):

python3 tools/harvester.py --output-dir lib/interface

Test

python3 -m pytest tests/

Distributing

Copy _cImageD11.so into c2ImageD11/ and the package is ready -- same pattern as a ctypes library.

Project details


Download files

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

Source Distribution

c2imaged11-0.3.0.tar.gz (157.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

c2imaged11-0.3.0-py3-none-win_amd64.whl (339.5 kB view details)

Uploaded Python 3Windows x86-64

c2imaged11-0.3.0-py3-none-manylinux_2_39_aarch64.whl (324.1 kB view details)

Uploaded Python 3manylinux: glibc 2.39+ ARM64

c2imaged11-0.3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (277.8 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

c2imaged11-0.3.0-py2-none-win_amd64.whl (178.2 kB view details)

Uploaded Python 2Windows x86-64

c2imaged11-0.3.0-py2-none-manylinux_2_34_x86_64.whl (306.9 kB view details)

Uploaded Python 2manylinux: glibc 2.34+ x86-64

File details

Details for the file c2imaged11-0.3.0.tar.gz.

File metadata

  • Download URL: c2imaged11-0.3.0.tar.gz
  • Upload date:
  • Size: 157.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for c2imaged11-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e173cf548f5363abf1c8bbbdcd6fccad4190a75e1d63ac9e0a6ac2354814035b
MD5 f5cbe6a2343775059bb1a55bdffba446
BLAKE2b-256 8c42a10adc4181e9313998125644d9139d8dbf947ac8cd88369688d257b76a64

See more details on using hashes here.

File details

Details for the file c2imaged11-0.3.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: c2imaged11-0.3.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 339.5 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for c2imaged11-0.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bd39d6878473d73abbef6a88843fe4392ed1925345b434c21142fa254fba46c7
MD5 7fa741cce5343c421f32024a397de38f
BLAKE2b-256 1bf27adc395da9a8cd445411f9d1212a2dd521e38ec06f5d499277b17bb50121

See more details on using hashes here.

File details

Details for the file c2imaged11-0.3.0-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for c2imaged11-0.3.0-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 671adb2d96369987c83c890e9f74900aa444777545c3f8ab3d6d69a6bd170bff
MD5 1c1306fa77a95ef42b1992052699b50b
BLAKE2b-256 5edc6b27b587f72ee75dc8b1f104f4c42b7b6a0b455813a590fc9b8ce00e3077

See more details on using hashes here.

File details

Details for the file c2imaged11-0.3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for c2imaged11-0.3.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8795a9dd5574fd30a0f60f5d4b364780e47cb3ca07ac6496c08569bb927d94da
MD5 c1e96c107e6733538580f2ba13e812c1
BLAKE2b-256 c2a8107766bfb820ec1fa74fc4e55629850b2031cb08f926755ed6914069f835

See more details on using hashes here.

File details

Details for the file c2imaged11-0.3.0-py2-none-win_amd64.whl.

File metadata

  • Download URL: c2imaged11-0.3.0-py2-none-win_amd64.whl
  • Upload date:
  • Size: 178.2 kB
  • Tags: Python 2, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for c2imaged11-0.3.0-py2-none-win_amd64.whl
Algorithm Hash digest
SHA256 12e81fdc6ff08f9c2c7b42db398be7dd60eefb37690077c48560e2d4b4ef0312
MD5 a9b10958b00ecf6d8a4abaa6b6f56c39
BLAKE2b-256 172f1141dc05752dd08d4af56e1e26638efb5e2e96fba394b1f2cf088fcf1bfc

See more details on using hashes here.

File details

Details for the file c2imaged11-0.3.0-py2-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for c2imaged11-0.3.0-py2-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 648dee158f32bd87a10470463a1e8fcc28904b5f2e5af77153102958e9283915
MD5 73a9c4181c619dfedb8b36bf264b46cb
BLAKE2b-256 b57cca4ca3b6ea0e575e5befb21b86823888f4675c7a38689bb83f30f64be0c5

See more details on using hashes here.

Supported by

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