Skip to main content

Cython extension module for C++ gbinder functions

Project description

gbinder: Cython Extension Module for libgbinder

gbinder is a Python module providing a Cython-based interface to the libgbinder library, enabling Python developers to leverage the power of libgbinder seamlessly. This README will guide you through the installation, usage, and development process for the gbinder module.

Features

  • Python bindings for libgbinder using Cython.
  • Easy integration with your projects.
  • Support for both PyPI and manual source builds.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Usage
  4. Building from Source
  5. Acknowledgements

Prerequisites

Before installing gbinder, ensure the following dependencies are installed on your system:

sudo apt update
sudo apt install libgbinder-dev libglibutil-dev pkgconf

If you plan to develop or customize gbinder, you will also need to install Cython:

pip install cython

Installation

Installing from PyPI

The easiest way to install gbinder is via PyPI:

pip install gbinder

Installing via apt

If your Linux distribution provides gbinder in its repositories, you can install it using:

sudo apt install python-gbinder

Usage

Verifying the Installation

After installation, verify the module by importing it in a Python shell:

python
>>> import gbinder
>>> print("gbinder imported successfully.")

Building from Source

For those who wish to contribute or build gbinder from source, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Kyle6012/gbinder.git
    cd gbinder
    
  2. Build the extension using Cython:

    python setup.py build_ext --inplace
    
  3. Test the module from the current directory:

    python
    >>> import gbinder
    >>> print("gbinder is working.")
    

Additional Information

For detailed usage instructions and API documentation, refer to the source code or open an issue on the GitHub repository.


Acknowledgements

This README is inspired by the geographiclib-cython-bindings project. Special thanks to @megaserg for the inspiration and guidance.


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

gbinder-1.2.1.tar.gz (208.4 kB view details)

Uploaded Source

File details

Details for the file gbinder-1.2.1.tar.gz.

File metadata

  • Download URL: gbinder-1.2.1.tar.gz
  • Upload date:
  • Size: 208.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for gbinder-1.2.1.tar.gz
Algorithm Hash digest
SHA256 dbbd07072490730bb0dccb31fe44405ebae5826cbf69cf68f02bae5d42487d39
MD5 5e7576075821dd2ca3b153002528ffb8
BLAKE2b-256 17e7088d732d6286c5bf53819f1b7c4a1b039ac70dc8fc3a520092756cb79011

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