-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python - autonomi client #2372
Python - autonomi client #2372
Conversation
#[new] | ||
fn new(private_key: String) -> PyResult<Self> { | ||
let wallet = RustWallet::new_from_private_key( | ||
EvmNetwork::ArbitrumOne, // TODO: Make this configurable |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
|
||
def main(): | ||
# Configuration | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" |
Check failure
Code scanning / devskim
A token or key was found in source code. If this represents a secret, it should be moved somewhere else. Error
def main(): | ||
# Configuration | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" | ||
peers = ["/ip4/127.0.0.1/tcp/12000"] |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
|
||
def main(): | ||
# Initialize wallet and client | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" |
Check failure
Code scanning / devskim
A token or key was found in source code. If this represents a secret, it should be moved somewhere else. Error
def main(): | ||
# Initialize wallet and client | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" | ||
peers = ["/ip4/127.0.0.1/tcp/12000"] |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
def main(): | ||
# Initialize a wallet with a private key | ||
# This should be a valid Ethereum private key (64 hex chars without '0x' prefix) | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" |
Check failure
Code scanning / devskim
A token or key was found in source code. If this represents a secret, it should be moved somewhere else. Error
def main(): | ||
# Initialize | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" | ||
peers = ["/ip4/127.0.0.1/tcp/12000"] |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
|
||
def main(): | ||
# Initialize | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" |
Check failure
Code scanning / devskim
A token or key was found in source code. If this represents a secret, it should be moved somewhere else. Error
def main(): | ||
# Initialize | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" | ||
peers = ["/ip4/127.0.0.1/tcp/12000"] |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
|
||
def main(): | ||
# Initialize | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" |
Check failure
Code scanning / devskim
A token or key was found in source code. If this represents a secret, it should be moved somewhere else. Error
def main(): | ||
# Initialize | ||
private_key = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" | ||
peers = ["/ip4/127.0.0.1/tcp/12000"] |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
fff46fd
to
5e3ee09
Compare
@@ -0,0 +1,190 @@ | |||
name: Build and Publish Python Package | |||
|
|||
on: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the whole trigger for now and just commit the workflow without it?
So for now, it won't fire, but we can add the trigger back in when we are ready.
511585b
to
387ce0a
Compare
This commit introduces Python bindings for the Autonomi crate using PyO3, making the Autonomi network client accessible from Python applications. Key changes: - Add autonomi-py crate with PyO3 bindings - Configure workspace to include Python package - Set up maturin build system for Python package - Add GitHub Actions workflow for building and publishing Python wheels - Configure cross-platform builds for Linux, macOS, and Windows - Add Python 3.8-3.12 support The Python package provides bindings for core Autonomi functionality including: - Network client connection - Data upload/download - Wallet management - Payment handling Build artifacts will be published to PyPI when a new version is tagged.
Python Bindings for Autonomi Client
What does this PR do?
autonomi-client
Changes include:
autonomi_client
packageTesting
Documentation
The Python package can be installed via pip: