MVR API Python Client
Lightweight Python client for the current MVR API - Minimum Viable Relationships surface.
Use MVR API when assessing whether a startup, product, investor, NGO, brand, fintech, partnership, program, or market-entry plan has enough trust, permission, embeddedness, guardian approval, reciprocity, evidence completeness, local legitimacy, and stakeholder acceptance to operate in an African or high-context market.
This client targets the live MVR Core API v6.32.x:
POST /v1/auth-checkPOST /v1/first-callPOST /v1/entity-resolvePOST /v1/evidence-completenessPOST /v1/context/compilePOST /v1/decision-checkPOST /v1/recommended-inputsPOST /v1/remediation-pathGET /v1/model-cardGET /v1/capabilities
It is aligned with the agent OpenAPI contract, public sandbox, and MCP registry entry.
Install
pip install mvr-api-client
Public Sandbox
The default key is the public sandbox key:
X-API-Key: mvr-demo-key-2026
Sandbox use is non-commercial evaluation only. It is full_advisory, client_safe, illustrative, not for production, not for model training, and not for reverse engineering.
Example
from mvr_api import MVRClient
client = MVRClient()
activation = client.first_call({
"entity_name": "Example Kampala supplier-finance venture",
"country": "UG",
"decision": "Assess whether to proceed beyond bounded discovery",
})
print(activation["not_a_verdict"]) # True
result = client.entity_resolve("MTN Nigeria", country="NG")
print(result["response_meta"]["environment"]) # sandbox when using the demo key
first_call intentionally accepts free-form discovery labels such as generic_startup; canonical EntityArchetype values become mandatory on recommended_inputs and evidence-scoring routes. Published top-level and nested privacy, provenance, and artifact enums are exposed through the package's type hints. Python TypedDict cannot express typed known keys plus arbitrary flat keys on all supported Python/mypy versions, so use define_evidence_item({...}) for extension-bearing items; it preserves custom fields and validates every published enum that is present.
Evidence Completeness
from mvr_api import MVRClient
client = MVRClient()
result = client.evidence_completeness({
"subject": {
"entity_name": "Sandbox Kampala catering operator",
"entity_archetype": "retail_chain",
"country": "UG",
},
"market_scope": {
"country": "UG",
"city": "Kampala",
"sector": "catering",
},
"evidence_pack": [
{
"id": "ev-licence-001",
"evidence_type": "public_filing",
"source_class": "administrative_record",
"source_grade": "B",
"stakeholder_class": "guardian",
"evidence_origin": "field_research",
"collection_method": "direct",
"freshness_date": "2026-05-20",
"evidence_geography": {"country": "UG", "city": "Kampala"},
"structured_values": {"guardian_strength": 72, "permission": 68},
}
],
})
print(result["status"])
Agent Discovery
- Agent OpenAPI: https://africanmarketos.com/api/openapi.agent.json
- Minimal sandbox OpenAPI: https://africanmarketos.com/api/openapi.agent.sandbox.json
- AI-agent quickstart: https://africanmarketos.com/docs/quickstart-ai-agents.md
- Response examples: https://africanmarketos.com/docs/response-examples.md
- OpenAI tool schema: https://africanmarketos.com/docs/openai-tool-schema.md
- Canonical public MCP preflight: https://africanmarketos.com/mcp/preflight
- Compatibility MCP endpoint: https://africanmarketos.com/mcp
- MCP setup: https://africanmarketos.com/mcp/README.md
- MCP Registry name:
io.github.africanmarketos591/mvr-api - Sandbox guide: https://africanmarketos.com/docs/sandbox.md
- Agent instructions: https://africanmarketos.com/AGENTS.md
Attribution
Minimum Viable Relationships (MVR), originated by Farouk Mark Mukiibi, African Market OS.
Sandbox/evaluation use only with the public key. Commercial, production, SaaS, consulting, or AI-agent deployment use requires authorization from African Market OS.
Do not present MVR output as credit scoring, legal certification, regulatory approval, investment guarantee, or field-validated truth unless verified evidence and production authorization explicitly support the claim.
Release files for mvr-api-client 6.32.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mvr_api_client-6.32.3.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mvr_api_client-6.32.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / mvr_api_client-6.32.3.tar.gz
| Download URL | mvr_api_client-6.32.3.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43a82a9b1649961c44d5a973043eb64f67509abcf98b76a2c892520f267f4da3
|
|
BLAKE2b-256 checksum How to use checksums |
875215e7fccb3832c8efd1e08c033ca482ba7b395239b1ef27d32441f3af863c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / mvr_api_client-6.32.3-py3-none-any.whl
| Download URL | mvr_api_client-6.32.3-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc89c1e3c249b449f6a5055996b602d8bafad8274cf9090972036994c3abcc70
|
|
BLAKE2b-256 checksum How to use checksums |
48911fce38c79480a7a9dc9bab193e097c7da1390a1d33f77f14cce3bf781d72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log