RSS3Client 📡
A client for interacting with the RSS3 Decentralized Service Layer (DSL) API.
Features ✨
- Fetch various types of activities for an account including collectibles, exchanges, metaverse, social, and transactions.
- Supports pagination and filtering for activity retrieval.
- Retrieve RSS activity details by path.
Installation 🚀
You can install the required dependencies using pip:
pip install rss3-dsl-client
Usage 📘
Initialize the Client
from rss3_dsl_client import RSS3Client
client = RSS3Client()
Fetch Social Post Activities
Here are some examples of fetching social post activities with different parameters:
from rss3_dsl_client.schemas.common import PaginationOptions, ActivityFilter
from rss3_dsl_client.schemas.enums import Platform
# Example 1: Basic usage with pagination
social_post_activities = client.fetch_social_post_activities(
account="0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
pagination=PaginationOptions(limit=10)
)
print(social_post_activities)
# Example 2: Using filters for platform
social_post_activities = client.fetch_social_post_activities(
account="0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
filters=ActivityFilter(platform=[Platform.FARCASTER, Platform.LENS]),
pagination=PaginationOptions(limit=10)
)
print(social_post_activities)
# Example 3: Using filters with time range
social_post_activities = client.fetch_social_post_activities(
account="0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
filters=ActivityFilter(since_timestamp=1625097600, until_timestamp=1627689600),
pagination=PaginationOptions(limit=10)
)
print(social_post_activities)
Fetch RSS Activity by Path
You can also fetch RSS activity details by path using the fetch_rss_activity_by_path method:
rss_activity = client.fetch_rss_activity_by_path(path="abc")
print(rss_activity)
Other Available Methods
The RSS3Client class provides various methods to fetch different types of activities. Below are the available methods:
fetch_collectible_approval_activitiesfetch_collectible_burn_activitiesfetch_collectible_mint_activitiesfetch_collectible_trade_activitiesfetch_collectible_transfer_activitiesfetch_exchange_liquidity_activitiesfetch_exchange_staking_activitiesfetch_exchange_swap_activitiesfetch_metaverse_burn_activitiesfetch_metaverse_mint_activitiesfetch_metaverse_trade_activitiesfetch_metaverse_transfer_activitiesfetch_social_comment_activitiesfetch_social_delete_activitiesfetch_social_mint_activitiesfetch_social_profile_activitiesfetch_social_proxy_activitiesfetch_social_revise_activitiesfetch_social_reward_activitiesfetch_social_share_activitiesfetch_transaction_approval_activitiesfetch_transaction_bridge_activitiesfetch_transaction_burn_activitiesfetch_transaction_mint_activitiesfetch_transaction_transfer_activities
Contributing 🤝
Contributions are welcome! Please open an issue or submit a pull request.
License 📄
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for rss3-dsl-client 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rss3_dsl_client-0.3.0.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rss3_dsl_client-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.5 kB
Release files / rss3_dsl_client-0.3.0.tar.gz
| Download URL | rss3_dsl_client-0.3.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c70da46ef34f5b4a62b03a721394bca0bdca98810a000b89bdf1c7e3c81245fd
|
|
BLAKE2b-256 checksum How to use checksums |
3e9465a3514f2d689a3972bc02d5be2aed7d70c1eedd623bc09560fb95cdae10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/22.4.0
|
Release files / rss3_dsl_client-0.3.0-py3-none-any.whl
| Download URL | rss3_dsl_client-0.3.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30c12e17c0ee2a2c623d801e8b9d168eac37a6eeff12cd47b6037c13a31b69a8
|
|
BLAKE2b-256 checksum How to use checksums |
be6af16dc4faa40b9265af642d03689a93eb761ace33697be79974649cc15445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/22.4.0
|