refactor: update naming convention

Updates naming convention to pubkycore throughout project.
Updated bindings accordingly.
Added python bindings.
This commit is contained in:
coreyphillips
2024-10-29 18:41:19 -04:00
parent 5e7ca04b67
commit d45279df02
28 changed files with 1643 additions and 3212 deletions

22
bindings/python/README.md Normal file
View 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]}")
```

View File

Binary file not shown.

File diff suppressed because it is too large Load Diff

23
bindings/python/setup.py Normal file
View 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",
)