Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

The Official Python library for the ShuttleAI API

pypi Downloads Downloads/Month Python Versions

The ShuttleAI Python library provides easy access to the ShuttleAI REST API for Python 3.9+ applications. It includes type definitions for all request parameters and response fields, offering both synchronous and asynchronous clients powered by httpx and aiohttp, respectively.

We prioritize performance optimizations across the library. Beyond using orjson for near-instant JSON processing, we implement various techniques to reduce overhead and enhance speed, ensuring efficient and swift API interactions. These optimizations include minimizing built-in library usage, leveraging reusable aiohttp client sessions, and incorporating several small adjustments to streamline operations.

Installation

pip install shuttleai

From Source

This client uses poetry as a dependency and virtual environment manager.

You can install poetry with

pip install poetry

poetry will set up a virtual environment and install dependencies with the following command:

poetry install

Run examples

You can run the examples in the examples/ directory using poetry run or by entering the virtual environment using poetry shell.

Using poetry run

cd examples
poetry run python chat_no_streaming.py

Using poetry shell

poetry shell
cd examples

>> python chat_no_streaming.py

API Key Setup

To use the ShuttleAI API, you need to have an API key. You can get a FREE API key by signing up at shuttleai.app and heading to the key management page.

After you have an API key, you can set it as an environment variable:

Windows

setx SHUTTLEAI_API_KEY "<your_api_key>"

macOS/Linux

export SHUTTLEAI_API_KEY=<your_api_key>

Contribution

We welcome and appreciate contributions to the ShuttleAI API Python SDK. Please see the contribution guide for more information. Benefits may apply! 😄

Scripts

Formatting/Checks

  • poetry run ruff check shuttleai - Check for code formatting issues
  • poetry run black shuttleai --diff --color - Check for code formatting issues
  • poetry run black shuttleai - Format code
  • poetry run mypy shuttleai - Check for type errors

Tools

  • poetry run clean - Clean up the project directory
  • poetry run key - Display your default API key (if set by environment variable)
  • poetry run contributors - Display contributors

Interactive Chatbot

  • poetry run shuttleai - Run the interactive chatbot

Metadata

Release files for shuttleai 0

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

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for shuttleai 0
File Size Uploaded
shuttleai-0.tar.gz 16.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for shuttleai 0
File Interpreter ABI Platform
shuttleai-0.0.0-py3-none-any.whl Python 3 none any Details
shuttleai-0-py3-none-any.whl Python 3 none any Details

Total release size: 81.0 kB

Release files / shuttleai-0.tar.gz

Download URL shuttleai-0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb86cbc8695f0801346a91ef0b2f328d22d7826e90529dc3b4ae9e8ac5adb8c7
BLAKE2b-256 checksum
How to use checksums
9244461ccb4d4fb7717932e7f0d50a411bb564c63390e3368eb0dae0af494983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/11

Release files / shuttleai-0.0.0-py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL shuttleai-0.0.0-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db85c8b999166bab74e09009f33f84014666c91bc3459adbdbef18280b93f46b
BLAKE2b-256 checksum
How to use checksums
5858d11af78ee5cf3a89d2b90288ce9f00e3d56c74cfc40efc6f23ff7b33e51c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / shuttleai-0-py3-none-any.whl

Download URL shuttleai-0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6302728f1df7d4b6f5a4c86377b1982732485c1a6cff5e6956eb66810f5dc9c5
BLAKE2b-256 checksum
How to use checksums
4949830582b3c83a0d2ed7a6a5894c94d84f084cf4f821264502fceaecb76436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/11

Release history Release notifications | RSS feed

4.9.3

2 release files

4.9.1

2 release files

4.9.0

2 release files

4.8.1

2 release files

4.8.0

2 release files

4.7.3

2 release files

4.7.2

2 release files

4.7.1

2 release files

4.7.0

2 release files

4.6.2

2 release files

4.6.1

2 release files

4.6.0

2 release files

4.5.7

2 release files

4.5.6

2 release files

4.4.4

2 release files

4.2.3

2 release files

4.2.2

2 release files

4.2.1

2 release files

4.2.0

2 release files

4.1.9

2 release files

4.1.8

2 release files

4.1.7

2 release files

4.1.6

2 release files

4.1.5

2 release files

4.1.4

2 release files

4.1.3

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.9

2 release files

4.0.8

2 release files

4.0.7

2 release files

4.0.5

2 release files

4.0.4

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.9.6

1 release file

3.9.4

1 release file

3.9.0

1 release file

3.8.9

1 release file

3.8.8

1 release file

3.8.6

1 release file

3.8.5

1 release file

3.8.4

1 release file

3.8.3

1 release file

3.8.2

1 release file

3.8.1

1 release file

3.8

1 release file

3.7

1 release file

3.6

1 release file

3.5

1 release file

3.4

1 release file

3.3

1 release file

3.2

1 release file

3.1

1 release file

3

1 release file

2

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.8

2 release files

0.7

2 release files

0.6

1 release file

0.5

1 release file

0.4

1 release file

This release

0 This release

3 release files

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