Skip to main content

CSTM-2 Python SDK

Official client for the CareerStudioMax CSTM-2 API — 8 independent, career-native model families.

Install

pip install careerstudiomax-cstm2

Quickstart

from cstm2 import CSTM2Client

client = CSTM2Client(api_key="cstm_lm_your_key_here")

result = client.careerlm.chat(
    messages=[{"role": "user", "content": "Write a cover letter opener for a Senior PM role"}]
)
print(result["choices"][0]["message"]["content"])

Streaming

def on_chunk(event):
    print(event.get("text", ""), end="", flush=True)

client.careerlm.chat_stream(on_chunk, messages=[{"role": "user", "content": "Draft a resignation letter"}])

Each model family needs its own key

A cstm_lm_* key only works on careerlm endpoints; a cstm_em_* key only works on careerembed, and so on. Generate one key per family you use at careerstudiomax.com/developer.

Family Client attribute Key prefix
CareerLM client.careerlm cstm_lm_
CareerEmbed client.careerembed cstm_em_
CareerScore client.careerscore cstm_sc_
CareerAgent client.careeragent cstm_ag_
CareerVoice client.careervoice cstm_vc_
CareerVision client.careervision cstm_vi_
CareerVideo client.careervideo cstm_vd_
CareerWebAPI client.careerwebapi cstm_wb_

Errors

from cstm2 import CSTM2Client, CSTM2Error

try:
    client.careerembed.embed("some text")
except CSTM2Error as e:
    print(e.code, e.status, str(e))

Context manager

with CSTM2Client(api_key="...") as client:
    ...

Full endpoint reference: careerstudiomax.com/developer

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

careerstudiomax_cstm2-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

careerstudiomax_cstm2-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file careerstudiomax_cstm2-1.0.0.tar.gz.

File metadata

  • Download URL: careerstudiomax_cstm2-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for careerstudiomax_cstm2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f38ee79a84ceeec7ea03f66f313d044702e9c77d34511ce28db0ca977cda37c
MD5 49b854ea6aca73e56b1aa9e47f1fc385
BLAKE2b-256 4d80b58dbd51f950f0dd9ad2519d2169e2946f7e4558428d185d560e5b8da940

See more details on using hashes here.

File details

Details for the file careerstudiomax_cstm2-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for careerstudiomax_cstm2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92973ae6aa0c90eff52fcbbe849dd27e3105c41d4a0474a073be6d7b034cc862
MD5 f6c79061c96df8d234bc1460d952b934
BLAKE2b-256 e1352b1c856b399931441e57007dbfd3fb48877515edf1b91d3c7be63037befe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page