Skip to main content

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-sdk

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

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")

# 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
  • Automatic rate limit handling and retries
  • Type hints and data models for better development experience

Models

The SDK provides two main data models:

  • Tweet: Represents a Twitter post with all its metadata
  • User: Contains detailed user information including profile data, stats, and verification status

Error Handling

The SDK includes built-in error handling for:

  • Rate limiting with automatic retries
  • Connection timeouts
  • API response validation

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apidance-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apidance-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file apidance-0.1.1.tar.gz.

File metadata

  • Download URL: apidance-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 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

Hashes for apidance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76807065b7cdff1124a412c648685bdce1501c60a9b4d5f43fd1957fd6427304
MD5 364fc3fd990b5050343fc79e6ec1d8ba
BLAKE2b-256 b42fd9f74f446f5f6661d5e67893ed6fdb40cd009adee9ca6d9c47344d7a49f4

See more details on using hashes here.

File details

Details for the file apidance-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: apidance-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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

Hashes for apidance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa0afddb5907c66e33aa4327738a6f1971a07588130ea092206c41db3bb03bca
MD5 d7d5cd74624619275d3b76b7a4d9aaf8
BLAKE2b-256 b4d2dfa284b21fa4f12bf8513ba6f06e19cefb90b008e8fe98de34e1888d0e0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page