Skip to main content

ASN.1c Python Bndings Support Files

asn1cpython-support is a small Python helper package that provides build-time support utilities for Python packages using the modified asn1c compiler to generate C sources from ASN.1 specifications. Documentation is here: matrixeditor.github.io/asn1c-bindings.

Its primary purpose is to bridge Python packaging tools (such as scikit-build-core) with the asn1c-bindings CMake package, ensuring that ASN.1 source files can be compiled into Python extension modules seamlessly.

Usage in CMake

When building a Python extension module that uses ASN.1 specifications, you can retrieve the CMake package path like this:

execute_process(
    COMMAND "${Python_EXECUTABLE}" -m asn1cpython_support --cmake-dir
    OUTPUT_STRIP_TRAILING_WHITESPACE
    OUTPUT_VARIABLE asn1c-bindings_ROOT
)
find_package(asn1c-bindings CONFIG REQUIRED)

Installation

pip install asn1cpython-support

Example

A typical pyproject.toml snippet using this package with scikit-build-core:

[build-system]
# This requirement will make all required files available at build time
requires = ["scikit-build-core~=0.9.0", "asn1cpython-support"]
build-backend = "scikit_build_core.build"

[tool.scikit-build]
cmake.minimum-version = "3.15"
# ...

License

MIT License — see LICENSE for details.

Metadata

Release files for asn1cpython-support 0.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for asn1cpython-support 0.0.2
File Interpreter ABI Platform
asn1cpython_support-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / asn1cpython_support-0.0.2-py2.py3-none-any.whl

Download URL asn1cpython_support-0.0.2-py2.py3-none-any.whl
Size 8.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c4b38223e4c7efa76c23975456228dd1f261953d16bd7b5bca1bc38de76da8fa
BLAKE2b-256 checksum
How to use checksums
1eb07f3b1bcb4d6e251865a88a11328f1fbec8d402af86afde858de0a0bd55e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

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