Skip to main content

rubi

rubi is a python SDK for the Rubicon Protocol and has a variety of functionality for interacting with the protocol. Documentation related to rubi and its functionality can be found here.

Design Goals

The underlying goal of the design of rubi is to provide developers with a seamless integration experience when interacting with the Rubicon. The SDK is built with the goal of enabling efficient and reliable communication with Rubicon's smart contracts, empowering developers to effortlessly access and utilize Rubicon's features in their Python applications.

Examples

Examples of using the rubi sdk can be found here.

Directory Structure

├── docs
│   ├── examples
│   │   ├── example.py
│   ├── ...
├── network_config
│   ├── abis
│   │   ├── ERC20.json
│   │   ├── market.json
│   │   ├── ...
│   ├── optimism
│   │   ├── network.yaml
│   ├── ...
│   ├── README.md
├── rubi
│   ├── contracts
│   ├── data
│   ├── network
│   ├── rubicon_types
│   ├── client.py
│   ├── __init__.py
├── tests
│   ├── ...
├── poetry.lock
├── pyproject.toml
└──...

The codebase follows the structure detailed above with:

  • docs: all the sources for documentation along with some examples.
  • network_config: configuration and abis for the different networks. For more details see the README.md.
  • rubi: the python sources root. The main entrypoint for most users will be the client.py.
  • tests: test coverage of the repository.

Decisions and Considerations

- Writing to the chain

Throughout the codebase we offer the user the option to pass in a nonce argument or derive it from chain state if none is provided (via the get_transaction_count function). Aspirationally, we want to support a python based nonce manager that can be used to manage nonces for the user. Until then, this optional parameter is meant to enable the user to manage nonces themselves. When a user does not provide a nonce, we derive it from chain state accordingly. In this case, we also wait for the transaction to be confirmed before continuing. If the transaction fails, an exception is raised and the program is exited. The user can override this behavior by managing nonces themselves.

SDK Disclaimer

This codebase is in Alpha and could contain bugs or change significantly between versions. Contributing through Issues or Pull Requests is welcome!

Protocol Disclaimer

Please refer to this for information on the risks associated to the Rubicon Protocol.

Metadata

Release files for rubi 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rubi 3.0.0
File Size Uploaded Provenance Actions
rubi-3.0.0.tar.gz 47.2 kB Without provenance Details for rubi-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rubi 3.0.0
File Interpreter ABI Platform Actions
rubi-3.0.0-py3-none-any.whl Python 3 none any Details for rubi-3.0.0-py3-none-any.whl

Total release size: 105.5 kB

Release files / rubi-3.0.0.tar.gz

Download URL rubi-3.0.0.tar.gz
Size 47.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2b4785452b7640234ffdee7f766a0a2a1e3727a06a5c178ac11bb1436390cd4
BLAKE2b-256 checksum
How to use checksums
f9216e0bcaad8175493a7ce57e48916099f685089f5e640fc50413c778c7b8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / rubi-3.0.0-py3-none-any.whl

Download URL rubi-3.0.0-py3-none-any.whl
Size 58.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02d07239b35d8bf683eaa602a5473dabb6fc1bc3623e5b553c66276b988b3573
BLAKE2b-256 checksum
How to use checksums
68b931d321a9c562ba4b6d800aaf2047b3c3752cf8bf7aa91a13522b7012df8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for rubi 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page