A Python SDK for RSS3 Data Sub Layer (DSL)
Project description
RSS3 DSL SDK 📡
A client for interacting with the RSS3 Data Sub 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-sdk
Usage 📘
Initialize the Client
from rss3_dsl_sdk import RSS3Client
client = RSS3Client()
Fetch Social Post Activities
Here are some examples of fetching social post activities with different parameters:
from rss3_dsl_sdk.schemas.common import PaginationOptions, ActivityFilter
from rss3_dsl_sdk.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_activities
fetch_collectible_burn_activities
fetch_collectible_mint_activities
fetch_collectible_trade_activities
fetch_collectible_transfer_activities
fetch_exchange_liquidity_activities
fetch_exchange_staking_activities
fetch_exchange_swap_activities
fetch_metaverse_burn_activities
fetch_metaverse_mint_activities
fetch_metaverse_trade_activities
fetch_metaverse_transfer_activities
fetch_social_comment_activities
fetch_social_delete_activities
fetch_social_mint_activities
fetch_social_profile_activities
fetch_social_proxy_activities
fetch_social_revise_activities
fetch_social_reward_activities
fetch_social_share_activities
fetch_transaction_approval_activities
fetch_transaction_bridge_activities
fetch_transaction_burn_activities
fetch_transaction_mint_activities
fetch_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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rss3_dsl_sdk-0.4.0.tar.gz
.
File metadata
- Download URL: rss3_dsl_sdk-0.4.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8716ead998c8ac357cb45f88d158249b1ef5530d842edcf2d81cf97a80250a2f |
|
MD5 | dfe82a18b3de1cf1ab5b4a17934daa21 |
|
BLAKE2b-256 | b0addd7c5efafdda766866b0bc87128f2e53de20e409da738ffae3578c5a2642 |
File details
Details for the file rss3_dsl_sdk-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: rss3_dsl_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b27065339673266c6ea0731b6e488063b547d24a0b835e0add0bb10c44ff3a |
|
MD5 | bfcff5d0239be8bb1dd741ba5f6b1625 |
|
BLAKE2b-256 | 41a85a188d4e9e4bde2fd19e7fdf3f26d06399aad6edfe8c27b10fb9f7394b7c |