Skip to main content

brsxcloud

BRSX-Cloud için resmi Python client. Chat edilebilir olarak paylaşılmış modellere kendi API key'inle, kod içinden erişmeni sağlar.

Kurulum

pip install brsxcloud

API Key Alma

  1. cloud.brsxlabs.com adresinde giriş yap.
  2. Sol menüden Kullanıcı Paneli'ni aç.
  3. API Anahtarların bölümünden + Yeni Key ile bir key oluştur.
  4. Key sadece o an gösterilir, hemen kopyala — bir daha görüntülenmez.

Her key için günlük istek limiti vardır (panelde görebilirsin).

Kullanım

from brsxcloud import Client

client = Client("brsxk_...")  # kendi API key'in

reply = client.chat(model_id=1, message="Merhaba, nasılsın?")
print(reply)

model_id'yi, BRSX-Cloud'daki Modeller sekmesinde ilgili modelin sayfasından ya da model sahibinin sana verdiği id'den öğrenebilirsin.

Hata Yönetimi

from brsxcloud import Client, BrsxCloudError

client = Client("brsxk_...")

try:
    reply = client.chat(model_id=1, message="Selam")
except BrsxCloudError as e:
    print(f"Hata: {e.message} (durum kodu: {e.status_code})")

Olası hatalar: geçersiz/iptal edilmiş API key, günlük kota aşımı, model bulunamadı, model chat için paylaşılmamış, model çalıştırılırken hata.

Lisans

MIT

Release files for brsxcloud 0.1.0

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

Source distribution (sdist)

Source distribution for brsxcloud 0.1.0
File Size Uploaded
brsxcloud-0.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / brsxcloud-0.1.0.tar.gz

Download URL brsxcloud-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c8793a4eb824fa7f9d0d4655da2aeefa6f60b17aabe4f1fa2fa5a21eb04577
BLAKE2b-256 checksum
How to use checksums
e2dd12f5e15d7f6579e1dad34c32e81646ba397042f60e8f14d571e2ac558423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.10

Release files / brsxcloud-0.1.0-py3-none-any.whl

Download URL brsxcloud-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d56c2ab033524c2a4ab5cc348e308987917fa7b38eefa4fa1ef91903bf055eb
BLAKE2b-256 checksum
How to use checksums
9f88e3dbb06cc989d42335307b04cf1e219d2b2f04dc7a61b5f79e9f05feb7e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.10

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

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