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.2.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.2.0
File Size Uploaded
brsxcloud-0.2.0.tar.gz 3.6 kB Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / brsxcloud-0.2.0.tar.gz

Download URL brsxcloud-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
41ba0d5e961996dc492e4a642c88b843ba6adc17de92350c1556cba3207ffa60
BLAKE2b-256 checksum
How to use checksums
354a44fdf7f76265271c958ba6beefc4e850f690b0db7496b09b63cce832f023
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.2.0-py3-none-any.whl

Download URL brsxcloud-0.2.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb9cce54ac5c6a56ada1d414ad82e717b6c459e725bd1d7593433f99a2350d6e
BLAKE2b-256 checksum
How to use checksums
c67d4e6d6b68a082491dc0948052a6d9223ceb3dd16bdd2e84b5253c9e287cf5
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

This release

0.2.0 This release

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