Skip to main content

GridwayAI Python SDK

Official Python SDK for accessing GridwayAI's generative AI services — focused on technical document automation and compliance in the specific technical jargon of nuclear licensing.

🚀 Features

  • Generate vector embeddings from plain text
  • Designed to match the familiar feel of the OpenAI Python SDK
  • Lightweight and simple to integrate

📦 Installation

pip install gridwayai

Usage

from gridwayai import GridwayAI

# Initialize the client
client = GridwayAI(api_key="your-api-key")

# Embed a single string or a list of strings
texts = ["What is nuclear fission?", "Reactor designs vary by fuel type."]
embeddings = client.embeddings(input=texts)

print(embeddings[0])  # First embedding vector

Testing

pip install pytest
pytest

Reference

Create a new client.

GridwayAI(api_key: str, base_url: Optional[str] = None)

api_key: Your GridwayAI API key

base_url: Optional override for API URL (defaults to https://api.gridwayai.com)

Get vector embeddings for a list of input strings. embeddings(input: List[str]) -> List[List[float]]

🤝 License

MIT License. See LICENSE file for details.

📫 Contact GridwayAI www.gridwayai.com Contact: support@gridwayai.com

Release files for gridwayai 0.1.11

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

Source distribution (sdist)

Source distribution for gridwayai 0.1.11
File Size Uploaded
gridwayai-0.1.11.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 7.6 kB

Release files / gridwayai-0.1.11.tar.gz

Download URL gridwayai-0.1.11.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
402b79ce72047929c0a09b58c4632ad3a51f31b949c27acfb9c6991b24da9ebf
BLAKE2b-256 checksum
How to use checksums
72792c0375a01f45f1e066b9bb8b5dc30baf7a74252ee199edb68e6efa21cdd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / gridwayai-0.1.11-py3-none-any.whl

Download URL gridwayai-0.1.11-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e61cd3a94ec6cc5b0c5602379d1adb8212c48de39109a03f4fb8a7145d2091c2
BLAKE2b-256 checksum
How to use checksums
86401c3a319f8e6518d501b0e031998a588a1f708085a02fb66311925101d815
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.1

2 release files

0.1.0

2 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