Skip to main content

OpenAI-API-Polling

PyPI version PyPI Downloads

Polling OpenAI API without rate limit issues.

Quickly Start

You can use pip to install this package.

pip install openai-api-polling

A simple example:

from openai_api_polling.polling import ClientPolling

api_keys = [
    "<your api key a>", 
    "<your api key> b",
    "<your api key> c",
]
client_polling = ClientPolling(api_keys=api_keys)

for _ in range(10):
    resp = client_polling.client.chat.completions.create(
        model="gpt-4",
        messages=[
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Hello! Explain the core of Game Theory."},
        ]
    )
    print(resp.choices[0].message.content)

Metadata

Release files for openai-api-polling 0.1.5

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

Source distribution (sdist)

Source distribution for openai-api-polling 0.1.5
File Size Uploaded
openai_api_polling-0.1.5.tar.gz 45.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openai-api-polling 0.1.5
File Interpreter ABI Platform
openai_api_polling-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 51.3 kB

Release files / openai_api_polling-0.1.5.tar.gz

Download URL openai_api_polling-0.1.5.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6cf668bcad604e699df2b38c9a271f17f4736f8d6aa0980f19ab0a62a2c04ff6
BLAKE2b-256 checksum
How to use checksums
ade394186facfd7ecfb86e213385bcc379d18cf56d8a264acdeeb8d70c7b508b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openai_api_polling-0.1.5-py3-none-any.whl

Download URL openai_api_polling-0.1.5-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7e6c024305895c7f11777e4ec0d9559a2a30c08ecc2da31f1893c39698ee9dc
BLAKE2b-256 checksum
How to use checksums
46acc9dd36ceed05130a521b2fdbbe655537723247334dd6888b718c4626a534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

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