Foxcite Python SDK
The official Python client library for the Foxcite API. Foxcite is an Answer Engine Optimization (AEO) and ai search visibility tool that helps modern agencies and brands track their presence across major LLMs (ChatGPT, Claude, Gemini, Grok, and Perplexity).
Features
- Fully Typed: Exposes fully typed Pydantic v2 schemas for all requests and responses.
- Sync & Async Support: Native support for both synchronous (
requests) and asynchronous (httpx) execution. - High Concurrency Ready: Built-in connection pooling and socket management designed for high-throughput AI agent loops.
Installation
pip install foxcite-sdk
Quick Start
You can generate an API Key from your Foxcite Dashboard.
Synchronous Client
from foxcite import Foxcite
# The client uses a context manager to gracefully handle connection pools
with Foxcite(api_key="seomd_live_...") as client:
# List brand workspaces
brands = client.brands.list()
print("Brands:", [b.name for b in brands])
# Execute a quick AEO audit
audit = client.audits.quick_audit(
name="My Brand",
domain="mybrand.com",
niche="SaaS Analytics",
query="best saas analytics tools"
)
print("Quick Audit Scan ID:", audit.scan_id)
Asynchronous Client
import asyncio
from foxcite import AsyncFoxcite
async def main():
async with AsyncFoxcite(api_key="seomd_live_...") as client:
brands = await client.brands.list()
print("Brands:", [b.name for b in brands])
if __name__ == "__main__":
asyncio.run(main())
Developer Notes: Connection Pooling
Under the hood, the Python SDK manages persistent TCP connections.
- The synchronous
Foxciteclient utilizes arequests.Session(). - The asynchronous
AsyncFoxciteclient utilizes anhttpx.AsyncClient().
Always use the client within a with or async with context manager to ensure sockets are properly released, preventing file descriptor leaks during high-concurrency background tasks.
Contributing
- Clone the repository.
- Create a virtual environment:
python3 -m venv .venv && source .venv/bin/activate - Install dependencies:
pip install -e . - Run tests:
pytest tests/
Resources
Metadata
Release files for foxcite-sdk 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| foxcite_sdk-1.0.3.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foxcite_sdk-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / foxcite_sdk-1.0.3.tar.gz
| Download URL | foxcite_sdk-1.0.3.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80766067c0f3d7c0d2b9bfde5a29c29f511d5acc9a27af5871bee7f5a4a14649
|
|
BLAKE2b-256 checksum How to use checksums |
63fae89f88b5bd5ef977cd271bfc98490bd17a649bc39aff2a5bf2d05a26fbd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / foxcite_sdk-1.0.3-py3-none-any.whl
| Download URL | foxcite_sdk-1.0.3-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ad2bf37a38896b9fb0d249769b41ee1b8add6affe797e8f9d761965ce9eb30e
|
|
BLAKE2b-256 checksum How to use checksums |
66bda7d87dd1f1e773b5a997ee3e2725a85df97c9f27ccc80dc92a8b12f97f3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|