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

Metadata

Release files for careerstudiomax-cstm2 1.0.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 careerstudiomax-cstm2 1.0.0
File Size Uploaded Provenance
careerstudiomax_cstm2-1.0.0.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for careerstudiomax-cstm2 1.0.0
File Interpreter ABI Platform
careerstudiomax_cstm2-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / careerstudiomax_cstm2-1.0.0.tar.gz

Download URL careerstudiomax_cstm2-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f38ee79a84ceeec7ea03f66f313d044702e9c77d34511ce28db0ca977cda37c
BLAKE2b-256 checksum
How to use checksums
4d80b58dbd51f950f0dd9ad2519d2169e2946f7e4558428d185d560e5b8da940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / careerstudiomax_cstm2-1.0.0-py3-none-any.whl

Download URL careerstudiomax_cstm2-1.0.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92973ae6aa0c90eff52fcbbe849dd27e3105c41d4a0474a073be6d7b034cc862
BLAKE2b-256 checksum
How to use checksums
e1352b1c856b399931441e57007dbfd3fb48877515edf1b91d3c7be63037befe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for careerstudiomax-cstm2 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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