
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
rubix-py is a lightweight client for the Rubix Blockchain Node, providing complete node interaction with minimal overhead.
⚠️ This project is currently under active development. API changes and method signature updates may occur between releases. Please review the Release Notes before upgrading.
Run the following to install rubix-py
.. code-block:: shell
pip install rubix-py
The architecture of rubix-py is pretty straightforward. It consists of the following classes:
RubixClient: Responsible for connection to Rubix Blockchain NodeSigner: Signs and performs Blockchain transactions and manages user's crypto keys.Querier: Queries information such as Token Balances, Smart Contract and NFT token chains, etc.RubixClient has a set of internal methods to make API requests to the node. Both Signer and Querier consumes an instance of RubixClient which helps them to achieve their respective operations with the Blockchain node.
Let's have a look at a simple example of fetching RBT balance and transferring them:
.. code-block:: python
from rubix.client import RubixClient from rubix.signer import Signer from rubix.querier import Querier
client = RubixClient(node_url="http://localhost:20000", timeout=300)
signer = Signer( rubixClient=client, mnemonic="<Enter 24-word long BIP-39 mnemonic>" # This can be left empty )
user_did = signer.did
keypair = signer.get_keypair()
mnemonic = signer.get_mnemonic()
queryClient = Querier( rubixClient=client )
balance_info = queryClient.get_rbt_balance(user_did) balance = balance_info["rbt"]
tx_response = signer.send_rbt_tokens( receiver_did="", rbt_amount=0.001, comment="Test RBT Transfer" )
if tx_response["status"] is True: print("RBT Transfer Successful!") else: print("RBT Transfer Failed!: ", tx_response.get("message", ""))
Refer examples <https://github.com/your-org/rubix-py/tree/main/examples>_ for more usecases
FAQs
Rubix Client SDK for Python
We found that rubix-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.