Metadata-Version: 2.4
Name: orbis-sdk
Version: 0.1.0
Summary: Python SDK for the Orbis API Marketplace — call any API, pay per use with USDC, native LangChain/CrewAI/AutoGen support.
Project-URL: Homepage, https://orbisapi.com
Project-URL: Documentation, https://orbisapi.com/docs
Project-URL: Repository, https://github.com/orbisapi/orbis-sdk
Project-URL: Bug Tracker, https://github.com/orbisapi/orbis-sdk/issues
License: MIT
Keywords: agents,api,autogen,crewai,langchain,marketplace,usdc,x402
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: requests>=2.31.0
Provides-Extra: all
Requires-Dist: crewai>=0.80.0; extra == 'all'
Requires-Dist: langchain-core>=0.2.0; extra == 'all'
Provides-Extra: autogen
Requires-Dist: pyautogen>=0.2.0; extra == 'autogen'
Provides-Extra: crewai
Requires-Dist: crewai>=0.80.0; extra == 'crewai'
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.2.0; extra == 'langchain'
Description-Content-Type: text/markdown

# orbis-sdk

The official Python SDK for [Orbis API Marketplace](https://orbisapi.com) — the default execution and payment layer for agent workflows.

Call any of 700+ production APIs from your AI agent with a single line. Native support for LangChain, CrewAI, and AutoGen.

## Install

```bash
pip install orbis-sdk
```

With framework integrations:

```bash
pip install orbis-sdk[langchain]   # LangChain support
pip install orbis-sdk[crewai]      # CrewAI support
pip install orbis-sdk[all]         # Everything
```

## Quick Start

Get your API key at [orbisapi.com](https://orbisapi.com).

```python
from orbis import OrbisClient

client = OrbisClient(api_key="sk_...")

# Search for APIs
apis = client.search("tweet generator")
for api in apis:
    print(api.name, api.description)

# Call an API
result = client.call(
    "tweet-thread-generator-api",
    {"topic": "Why AI agents are replacing SaaS"}
)

if result.success:
    print(result.data)
```

## LangChain

```python
from orbis import OrbisClient
from langchain_openai import ChatOpenAI
from langchain.agents import create_react_agent, AgentExecutor

client = OrbisClient(api_key="sk_...")

# Wrap Orbis APIs as LangChain tools
tools = client.as_langchain_tools([
    "tweet-thread-generator-api",
    "credit-score-estimator",
    "weather-api",
])

llm = ChatOpenAI(model="gpt-4o")
agent = create_react_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)

result = executor.invoke({"input": "Write a thread about AI agents"})
```

Or search and use dynamically:

```python
from orbis.integrations.langchain import orbis_toolkit

tools = orbis_toolkit(client, query="social media content", limit=5)
```

## CrewAI

```python
from orbis import OrbisClient
from crewai import Agent, Task, Crew

client = OrbisClient(api_key="sk_...")
tools = client.as_crewai_tools(["tweet-thread-generator-api"])

writer = Agent(
    role="Content Writer",
    goal="Write viral Twitter threads about AI",
    backstory="Expert in social media content strategy",
    tools=tools,
    verbose=True,
)

task = Task(
    description="Write a 10-tweet thread about why AI agents are replacing traditional SaaS",
    expected_output="A numbered Twitter thread ready to post",
    agent=writer,
)

crew = Crew(agents=[writer], tasks=[task])
result = crew.kickoff()
print(result)
```

## AutoGen

```python
from orbis import OrbisClient
from orbis.integrations.autogen import register_orbis_tools
import autogen

client = OrbisClient(api_key="sk_...")

llm_config = {
    "config_list": [{"model": "gpt-4o", "api_key": "YOUR_OPENAI_KEY"}],
    "functions": client.as_autogen_functions(["tweet-thread-generator-api"]),
}

assistant = autogen.AssistantAgent("assistant", llm_config=llm_config)
user_proxy = autogen.UserProxyAgent("user", human_input_mode="NEVER")

register_orbis_tools(client, assistant, user_proxy, ["tweet-thread-generator-api"])

user_proxy.initiate_chat(
    assistant,
    message="Write a thread about the agent economy"
)
```

## Available APIs

Browse all 700+ APIs at [orbisapi.com/marketplace](https://orbisapi.com/marketplace).

Categories include:
- AI & Machine Learning
- Finance & Crypto
- Social Media
- Data & Analytics
- Communication
- Developer Tools

## Pricing

Pay per call. No subscriptions required. Prices set by API providers — Orbis takes 10%, providers keep 90%.

Some APIs accept USDC payments via x402 on Base for fully autonomous agent payment flows.

## Links

- [Marketplace](https://orbisapi.com/marketplace)
- [Docs](https://orbisapi.com/docs)
- [Discord](https://discord.gg/orbisapi)
- [Twitter](https://twitter.com/orbisapi)
