Rated Python SDK
Python bindings for the Rated API
| CI/CD | |
| Package | |
| Meta |
👋 Introduction
The Rated SDK (Software Development Kit) for Python, which allows Python developers to write software that makes use of the Rated dataset. You can find the latest, most up to date, documentation at our docs site.
The Rated SDK is maintained and published by Rated Labs.
We’ve curated many examples which will help you kickstart your integration but to get a full list of all available endpoints, you are recommended to check out our API Reference and Swagger.
🛟 Getting Help / Links
We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.
Please use these community resources for getting help:
- Ask a question on our feedback board
- If it turns out that you may have found a bug, please open an issue
🚀 Getting started
Requirements
- Python>=3.8
- A valid Rated API key (Get your key)
Installation
Install using pip:
pip install rated-python
Usage
Example: how to get a validator effectiveness rating by pubkey
from rated import Rated
from rated.ethereum import MAINNET
RATED_KEY = "ey..."
r = Rated(RATED_KEY)
eth = r.ethereum(network=MAINNET)
for eff in eth.validator.effectiveness("0x123456789...", from_day=873, size=1):
print(f"Day: {eff.day}, Eff: {eff.validator_effectiveness}")
>>> Day: 873, Eff: 98.82005899705014
Running tests
First install tox
pip install tox
Once tox has been installed you can run all tests:
tox
🤝 Contributing
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests.
Please read through this CONTRIBUTING document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
Metadata
Release files for rated-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rated-python-0.0.2.tar.gz | 17.4 kB | Without provenance | Details for rated-python-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rated_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for rated_python-0.0.2-py3-none-any.whl |
Total release size: 38.5 kB
Release files / rated-python-0.0.2.tar.gz
| Download URL | rated-python-0.0.2.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adf4235adabdb6572fe3b642fd03709073322e958765c7316ab1c0540a5f9ca7
|
|
BLAKE2b-256 checksum How to use checksums |
e55a065c490433f58e5de8e0ce3efa585b3531b4ded009e5672cf2754c635384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / rated_python-0.0.2-py3-none-any.whl
| Download URL | rated_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
165d56d0e6413d6cb568977cfa1feb1897a6c7c0c93b142cce0f02390fae6213
|
|
BLAKE2b-256 checksum How to use checksums |
8d773ce2077263faf7afa1779dc88f005eab4a2f308a5d103967c24ca923a2fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for rated-python 0.0.2
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.