https://apidance.pro/ community python sdk
Project description
Apidance SDK
A Python SDK for interacting with the Apidance API (https://apidance.pro/).
Installation
pip install apidance
Configuration
Create a .env file in your project root with your API credentials:
APIDANCE_API_KEY=your_api_key_here
Or provide the API key directly when initializing the client:
client = TwitterClient(api_key="your_api_key_here")
Usage
Check out the examples
from apidance import TwitterClient
# Initialize the client
client = TwitterClient()
# Search tweets
tweets = client.search_timeline(
query="python",
)
# Get user information
user = client.get_user_by_screen_name("example")
users = client.get_following(user_id=user["id"])
# Get tweets from a list
list_tweets = client.get_list_latest_tweets(
list_id="your_list_id",
)
Features
- Search Twitter timeline with various filters (Latest, Top, People, Photos, Videos)
- Get detailed user information by screen name
- Fetch tweets from Twitter lists
- Search Following
Models
The SDK provides two main data models:
Tweet: Represents a Twitter post with all its metadataUser: Contains detailed user information including profile data, stats, and verification status
License
MIT License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apidance-0.2.0.tar.gz.
File metadata
- Download URL: apidance-0.2.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a87cc3417cc5f3f0b424cc1e95d1f4718a67a0be8cd71acb385a6d6af28ea72c
|
|
| MD5 |
065f076490d5fe8723de0812878363d8
|
|
| BLAKE2b-256 |
ff2c8f4f4f3e9422e8ad9e42c04bcfbdedd9fb1ca1fcbca24c677724ab55565e
|
File details
Details for the file apidance-0.2.0-py3-none-any.whl.
File metadata
- Download URL: apidance-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a92b942f1316016d9e4c42dfa02be45e7aa02a961c6744b66a7c34c5c1ce7e99
|
|
| MD5 |
ae5c8801f0c15217a42d6f29de4b1601
|
|
| BLAKE2b-256 |
09f95e60f9cfddd58906d44e53dc29b6f9b31a9f6d80d5d7ae857a18521c921e
|