PYPI PACKAGE AUDIT v0.1.0 Healthy Package

belcore

Python client for the Belcore API: long-term memory and an emotion state for chat apps

PyPkgScore belcore
Methodology & Criteria ♥ Donate
735 / 1000
Quick Install
pip install belcore
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
155/200
5. CI Engineering
130/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
0
Last 30 days
0
Total (180 days)
0
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 735 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 ▾
Structured README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality130 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — belcore

PyPI Metadata v0.1.0
Show full original documentation (English README) ▾

belcore

Python client for the Belcore API: long-term memory and an emotion state for your chat app, in one call.

Get an API key at belcore.xyz/developers/signup (5,000 free calls, no card) and set BELCORE_API_KEY.

Install

pip install belcore

Usage

from belcore import Belcore

client = Belcore()  # reads BELCORE_API_KEY

r = client.chat(
    messages=history,          # full history from your database
    system="You are a helpful assistant.",
    emotion=last_emotion,      # what the previous call returned; omit on the first turn
)

r["reply"]
save_emotion(r["emotion"])     # send it back next turn
r["memory"]                    # "long-term" | "recent"

history is a list of {"role": "user" | "assistant", "content": str}.

Async:

from belcore import AsyncBelcore

async with AsyncBelcore() as client:
    r = await client.chat(messages=history)

How it works

You keep the conversation history in your database and send it with each call. Belcore picks the turns that matter from the whole history, answers, and returns the updated emotion state for you to save. Belcore does not store conversation text.

your DB ──history──▶ Belcore ──reply + emotion──▶ your DB

Options for chat()

Argument Meaning
system System prompt.
model Underlying model id, e.g. "openai/gpt-4o-mini". Omit for Belcore's default.
emotion State returned by the previous call. Omit on the first turn.
traits Character traits (obsession, edginess, stability, 0–100).
intimacy_level Relationship level (0–10).
end_user_id, subject_id Optional. Let Belcore keep the numeric emotion state for you instead of sending emotion. Export with export_memory(), delete with delete_user().

Errors from the API raise BelcoreAPIError with .status and .message.

Links

License

Apache-2.0