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.2.1.tar.gz (183.9 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.2.1-py3-none-win_amd64.whl (341.6 kB view details)

Uploaded Python 3Windows x86-64

c2imaged11-0.2.1-py3-none-manylinux_2_39_aarch64.whl (324.9 kB view details)

Uploaded Python 3manylinux: glibc 2.39+ ARM64

c2imaged11-0.2.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (282.2 kB view details)

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

c2imaged11-0.2.1-py2-none-win_amd64.whl (180.3 kB view details)

Uploaded Python 2Windows x86-64

c2imaged11-0.2.1-py2-none-manylinux_2_34_x86_64.whl (309.1 kB view details)

Uploaded Python 2manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for c2imaged11-0.2.1.tar.gz
Algorithm Hash digest
SHA256 83fba8c79f70e18a5d1ea3d6e5a6420cfec74ae580f34e124d047691e6a93eee
MD5 7c147acb51e3185e33d72aa3df7f8e8e
BLAKE2b-256 92f71d1c5c8898a10b042042f33ebb7d51d17a47d3fcb299a3c5fbf039ca5ff6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: c2imaged11-0.2.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 341.6 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.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 77813b7593f0d7095854d2417a4b3b5fb2329ab67af7f8dadaada38570a61383
MD5 773d9f247b84b30af4cecce28632d4b9
BLAKE2b-256 2435ceeb5c72f8ce57a88856065b9b3c3afe00f03651782e97e6267c7c56897f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for c2imaged11-0.2.1-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 0d4adab5b4ed1ab085123f11ce422c01cf8df7c88fa19da0bd2a0718fa315cb3
MD5 8c52f684e45330968d58a41246563db5
BLAKE2b-256 94ce9cec9c891fc20ccaecfc49ce055d95129fc105e6df6a3896f598a1185b5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for c2imaged11-0.2.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 80f5e3b645a56c48fb911163cc652f192e65038f486d56564ecb1856f61d7d1b
MD5 24de08ae7e13dcd379d3f981d6722fd0
BLAKE2b-256 38c9c61fe87a8886492b3566b3f609f4b30fbff1faaddd3e8a43c1f1a6782fba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: c2imaged11-0.2.1-py2-none-win_amd64.whl
  • Upload date:
  • Size: 180.3 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.2.1-py2-none-win_amd64.whl
Algorithm Hash digest
SHA256 bd8d4627647c40d7641a056edf90f431ac519a0b1453620a1e6341a164f31239
MD5 a0dcb124b886a7c53bedd1b1341e9e1a
BLAKE2b-256 4b8f75020b523c8ef36d82d09de477d6997f1c679deb8cb8ef617b18e5cad012

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for c2imaged11-0.2.1-py2-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0c7a39bf52b8c4964b8a69f190e41dc74885d51bf115c171eb08ac78d28e5dce
MD5 1eba0c923abfd15e17fe0e4dbb6184d4
BLAKE2b-256 ce3c18f58591c09f4e915e0766a50848909406f3fc5c7bbc122b5e764505ae00

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