Skip to main content

The Fruxon SDK is a lightweight Python client for integrating with the Fruxon platform.

Project description

fruxon

PyPI version

The Fruxon SDK is a lightweight Python client for integrating with the Fruxon platform.

Installation

pip install fruxon

Features

Python Client — Execute agents via API

from fruxon import FruxonClient

client = FruxonClient(api_key="frx_...", tenant="acme-corp")

result = client.execute("support-agent", parameters={"question": "How do I reset my password?"})
print(result.response)
print(f"{result.trace.duration}ms | ${result.trace.total_cost:.4f}")

# Multi-turn conversation
result2 = client.execute("support-agent", parameters={"question": "Tell me more"}, session_id=result.session_id)

fruxon run — Execute agents from the CLI

# Basic execution
fruxon run my-agent -t acme-corp -k frx_...

# With parameters
fruxon run my-agent -t acme-corp -p question="Hello" -p lang=en

# Full JSON output (for scripting)
fruxon run my-agent -t acme-corp --json

# Use environment variable for API key
export FRUXON_API_KEY=frx_...
fruxon run my-agent -t acme-corp

fruxon export — Consolidate multi-file agents

Export a multi-file Python agent project into a single file for importing into Fruxon.

Works with any Python framework: LangChain, LangGraph, CrewAI, Google ADK, AutoGen, and more.

# Auto-detect agent and copy to clipboard
fruxon export --copy

# Auto-detect and print to stdout
fruxon export

# Write to file
fruxon export -o export.py

# Explicit entry point (if auto-detect picks the wrong file)
fruxon export graph.py --copy

How it works:

  1. Scans your project for agent framework imports (LangGraph, CrewAI, etc.)
  2. Auto-detects the entry point — if multiple agents exist, prompts you to choose
  3. Traces all local imports using Python's AST (skips third-party packages)
  4. Outputs a single consolidated file with all local code and source markers

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

fruxon-0.5.2.tar.gz (86.9 kB view details)

Uploaded Source

Built Distribution

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

fruxon-0.5.2-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file fruxon-0.5.2.tar.gz.

File metadata

  • Download URL: fruxon-0.5.2.tar.gz
  • Upload date:
  • Size: 86.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fruxon-0.5.2.tar.gz
Algorithm Hash digest
SHA256 2b07abdb37688e8d198e7f96533c4fc6aab9f63d87e0140c46cdb6b20c13fe8b
MD5 210337a4dfa4bcc11d998f0c7662de9f
BLAKE2b-256 0e8211a9c3b8d36494c2c8f732266ebaf5832fae6be7c8308a858a0cdb19ae8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fruxon-0.5.2.tar.gz:

Publisher: release.yml on fruxon-ai/fruxon-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fruxon-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: fruxon-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fruxon-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c242e10f5c810596b0589a14fd7502ab405a2fc00f97dab1519676e9eb9069d
MD5 d145f9df4b193f84fd5615949395e1e2
BLAKE2b-256 448af3a3b29826ded0984ba58d5fe43b5761ee2e0e419c03c119e7183c23a30e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fruxon-0.5.2-py3-none-any.whl:

Publisher: release.yml on fruxon-ai/fruxon-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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