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.3.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.3.0
File Size Uploaded
brsxcloud-0.3.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.4 kB

Release files / brsxcloud-0.3.0.tar.gz

Download URL brsxcloud-0.3.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
31deb2545a6c5c4fc60e08c7032eceba9c3482d0019c4b9f177f26a842ecd4bf
BLAKE2b-256 checksum
How to use checksums
481abc2c6985f1d33ae0f59d11659032f877d0257131a73d51226f864aea81bf
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.3.0-py3-none-any.whl

Download URL brsxcloud-0.3.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d8fec5aeb7c0f06a14898051b71f3d62d643a6b11cb5fca110d025c4180df9a
BLAKE2b-256 checksum
How to use checksums
af78cb55d39d7e0c64ad432731758f62d0862976509b95ede63fc460a10efd7a
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

This release

0.3.0 This release

2 release files

0.2.0

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