mirror of
https://github.com/aljazceru/pubky-core-ffi.git
synced 2025-12-18 23:04:23 +01:00
refactor: update naming convention
Updates naming convention to pubkycore throughout project. Updated bindings accordingly. Added python bindings.
This commit is contained in:
22
bindings/python/README.md
Normal file
22
bindings/python/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Pubky Mobile Python Bindings
|
||||
|
||||
Python bindings for the Pubky Mobile SDK.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install .
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```python
|
||||
from pubkycore import *
|
||||
|
||||
# Generate a new keypair
|
||||
result = generate_secret_key()
|
||||
if result[0] == "success":
|
||||
print(f"Generated key: {result[1]}")
|
||||
else:
|
||||
print(f"Error: {result[1]}")
|
||||
```
|
||||
0
bindings/python/pubkycore/__init__.py
Normal file
0
bindings/python/pubkycore/__init__.py
Normal file
BIN
bindings/python/pubkycore/libpubkycore.dylib
Executable file
BIN
bindings/python/pubkycore/libpubkycore.dylib
Executable file
Binary file not shown.
1440
bindings/python/pubkycore/pubkycore.py
Normal file
1440
bindings/python/pubkycore/pubkycore.py
Normal file
File diff suppressed because it is too large
Load Diff
23
bindings/python/setup.py
Normal file
23
bindings/python/setup.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="pubkycore",
|
||||
version="0.1.0",
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
"pubkycore": ["*.so", "*.dylib", "*.dll"],
|
||||
},
|
||||
install_requires=[],
|
||||
author="Pubky",
|
||||
author_email="",
|
||||
description="Python bindings for the Pubky Mobile SDK",
|
||||
long_description=open("README.md").read(),
|
||||
long_description_content_type="text/markdown",
|
||||
url="",
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
python_requires=">=3.6",
|
||||
)
|
||||
Reference in New Issue
Block a user