Metadata-Version: 2.3
Name: goedge-core-sdk-python
Version: 0.1.0
Summary: GoEdge Core SDK Python Wrapper
Author: zhangtc
Author-email: zhangtc@rigoiot.com
Requires-Python: >=3.8
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Description-Content-Type: text/markdown

# GoEdge Core SDK Python Wrapper

This project provides a Python wrapper for the GoEdge Core C SDK. It uses `ctypes` to interface with the C library, allowing Python applications to leverage the functionality of the GoEdge ecosystem.

## Project Structure

- `goedge/`: Contains the Python wrapper module.
  - `core.py`: The main wrapper file that uses `ctypes` to call the C SDK functions.
- `goedge-core-sdk-c/`: Contains the C source code for the core SDK.
- `pyproject.toml`: Poetry project configuration file.

## Installation

To use this wrapper, you first need to compile the C SDK into a shared library (e.g., `libge-core.so` on Linux). Then, you can install the Python package using Poetry:

```bash
poetry install
```

## Usage

```python
from goedge import core

# Initialize the core SDK
core.core_init("my_module", 2, core.LOG_LEVEL_INFO)

# ... use other SDK functions ...

# Exit the core SDK
core.core_exit()
```

