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.0.tar.gz (6.0 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.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apidance-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Darwin/24.1.0

File hashes

Hashes for apidance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cff1eaf59ab5e5cc32596875830cb116ac3049896ee5fe59164e347767e7f3ed
MD5 6317f2f63b0e7f5bc95f19dc9aceafc7
BLAKE2b-256 cfdedd59f0155ba4ed54bace637b0452e849c271e46348dd03952103d77c673f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apidance-0.1.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.12.4 Darwin/24.1.0

File hashes

Hashes for apidance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9ea7cf82f6dccd5004a21ab35f29cd91272263afd38d533a97d0150b180a76d
MD5 04816b134417013647cb0b35b2af0d00
BLAKE2b-256 c7415fda9e47916f0967bbbb8617662a910a3da5dc1b01aa06590ba5459897a8

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