Skip to main content

fastaf-sdk

FastAF · Docs: https://fastaf.co/docs/

Distribution name: fastaf-sdk. Import: fastaf. The unrelated fastaf PyPI distribution is not this SDK. Nothing here has been published.

Python 3.10+. Local installation (from this directory):

pip install -e .
# Install only integrations you use:
pip install -e '.[langchain,llamaindex,crewai]'
import os
from fastaf import FastAF, FastAFError

with FastAF(os.environ["FASTAF_API_KEY"]) as client:
    data = client.search("best espresso machine", results=5)
    markdown = client.request("scrape", {"url": "https://example.com", "formats": "markdown"})
    data = client.request("serp", {"query": "coffee"}, method="POST")

request(endpoint, params) covers the live /v1/* endpoints. Returns decoded JSON, text, or bytes for images. Keys stay in Authorization headers. Errors raise FastAFError with status, body, and headers (including Retry-After). Network/timeout exceptions remain httpx exceptions. Default timeout: 60 seconds; override timeout=30. There are no automatic retries, redirects or x402 payments. A 402 on keyed REST means insufficient credits, not permission to spend a wallet. Close the client or use its context manager. Do not put keys in browser code.

Agent tools

from fastaf.tools import langchain_tool, llamaindex_tool, crewai_tool

# Use inside the client's lifetime. Each accepts the same FastAF client.
search = langchain_tool(client)    # StructuredTool
search = llamaindex_tool(client)   # FunctionTool
search = crewai_tool(client)       # CrewAI tool

Tools accept query and results (1-10, default 5). They return JSON strings; credentials are not part of agent-visible schemas. Each call consumes API credits, so configure agent step limits. Integrations import lazily.

Tests and local packaging

pip install -e '.[test,langchain,llamaindex,crewai]'
pytest
python -m build

Tests use httpx.MockTransport, never real keys or billable calls. Without optional frameworks, their integration tests skip; install all extras to run the full suite. The private distribution classifier deliberately blocks uploading to PyPI.

Metadata

Release files for fastaf-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastaf-sdk 0.1.0
File Size Uploaded Provenance
fastaf_sdk-0.1.0.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fastaf-sdk 0.1.0
File Interpreter ABI Platform
fastaf_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / fastaf_sdk-0.1.0.tar.gz

Download URL fastaf_sdk-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
23575eb9c85219343b5de77fbb9c4ba7a3b3731401c2a2af4a5dd40824f19474
BLAKE2b-256 checksum
How to use checksums
ed792877a6fe5edeb987b4df7b5ccb08316c0d0f47c3a303855f32e7bd8c5542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / fastaf_sdk-0.1.0-py3-none-any.whl

Download URL fastaf_sdk-0.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
911f53c414aae737a7a1a4c8cba0a8e9901c3271980f5bc0ddc5ffad44ef4308
BLAKE2b-256 checksum
How to use checksums
db97b2cfa45ad863f5a197f39659359b92c019b92bd8712f1d8d0833a3e629cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for fastaf-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page