PYPI PACKAGE AUDIT v0.2.0 Healthy Package

raims

Official Python SDK for the Raims public API.

PyPkgScore raims
Methodology & Criteria ♥ Donate
720 / 1000
Quick Install
pip install raims
1. Governance
150/200
2. PEP Metadata
200/200
3. Security
150/200
4. Docs & SEO
155/200
5. CI Engineering
65/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
202
Last 30 days
464
Total (180 days)
464
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 720 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community150 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 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 Chain150 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 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 & Quality65 / 200 ▾
Automated Tests✕ 0 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 — raims

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

Raims Python

Official Python SDK for the Raims public API.

Use the SDK in server applications, with synchronous and asynchronous clients, typed parameters, read-only responses, cursor pagination, and webhook signature verification.

Install

Requires Python 3.10 or later. In your application's virtual environment:

python -m pip install raims

The package and import name are both raims. It uses HTTPX for HTTP transport.

To update to the current stable version:

python -m pip install --upgrade raims

Read the release notes and test your integration after updating. Pin the SDK and its dependencies in your application's dependency configuration to reproduce installations. Future updates are not applied automatically.

GitHub releases also provide wheel and source archives. Verify the downloaded file with SHA256SUMS before installing it. Install the downloaded wheel in your application environment:

python -m pip install /path/to/downloaded-package.whl

First request

import os

from raims import RaimsClient

with RaimsClient(os.environ["RAIMS_API_KEY"]) as raims:
    page = raims.customers.list({"page_size": 20})
    for customer in page:
        process_customer(customer.id)

process_customer represents your application's processing. The base URL is https://api.raims.com for both Sandbox and Production. The key determines the company, environment, and permissions. Keep it on the server and out of version control.

Create a charge

customer_id, due_date, and order_idempotency_key are values your application has already defined and persisted for the order. The due date uses Unix seconds in UTC, and the amount uses integer cents: 15000 represents BRL 150.00.

from raims import RequestOptions

with RaimsClient(os.environ["RAIMS_API_KEY"]) as raims:
    charge = raims.charges.create(
        {
            "customer_id": customer_id,
            "amount_cents": 15000,
            "due_date": due_date,
            "title": "Order 1234",
        },
        options=RequestOptions(idempotency_key=order_idempotency_key),
    )
    response = charge.last_response
    assert response is not None
    request_id = response.request_id

The SDK does not generate idempotency keys or retry writes automatically. If you lose a response, keep the same key and parameters and follow the endpoint's rules for retrieving or retrying the operation. A 202 response means processing is pending; retrieve the resource to follow its outcome.

Asynchronous use

from raims import AsyncRaimsClient

async def load_customers(api_key: str) -> None:
    async with AsyncRaimsClient(api_key) as raims:
        page = await raims.customers.list({"page_size": 50})
        async for customer in page.auto_paging_iter():
            await process_customer_async(customer.id)

process_customer_async represents your application's asynchronous processing. Normal iteration over a page accesses only the items already received. auto_paging_iter() retrieves subsequent pages as you consume them.

Services

Property Resources
accounts Account context, number, fees, and checkout
balances Balance and forecast
customers Customer creation, retrieval, and deletion
charges Charges, payment, documents, and refunds for a charge
payment_links Payment links and email delivery requests
refunds Refunds and receipts
disputes Disputes
statements Account statements
withdrawals Withdrawals, limits, summary, and automatic settings
withdrawal_destinations Withdrawal destinations
webhooks Registration, health, pause, test, and secret rotation
webhook_event_types Available event types
simulations.charges Charge simulations with a Sandbox key
simulations.refunds Refund simulations with a Sandbox key

Services expose create, retrieve, update, delete, and list according to the operations available. The reference describes each method.

Documentation

Distributed under the MIT license.