Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GoCream Labs × sber

PyPI - Status PyPI - Version PyPI - Downloads PyPI - Python Version

Tests - Running Coverage

Hatch project Gitmoji Built with Material for MkDocs linting - Ruff License - Mozilla Public License Version 2.0

Documentation: gocream-labs.github.io/pysberbank

Python-клиент для унаследованного API СберБанка, который ЮKassa сохраняет для компаний, перешедших из Сбера. Это не клиент для современного API ЮKassa.

Описание протокола - инструкция ЮKassa.

Архивные материалы СберБанка - документация API и тестовые карты.

Installation

Требуется Python 3.10 или новее.

pip install gocream-pysberbank

Для предварительных версий используйте pip install --pre gocream-pysberbank.

from gocream_pysberbank import SberbankClient
from gocream_pysberbank.constants import DESCRIPTION_BY_ACTION_CODE

Для совместимости с прежним API сохранены имена Sberbank и SberbankPaymentApi.

Quick Start

from gocream_pysberbank import SberbankClient

client = SberbankClient(
    username="merchant-api",
    password="password-from-secret-storage",
    url="https://gateway.example/payment/{api_type}/{method}",
)

Замените URL адресом шлюза из настроек вашего подключения. Если url не передан, используется исторический адрес https://3dsec.sberbank.ru/payment/{api_type}/{method}. Вместо пары username/password можно передать token.

Клиент предоставляет методы register, reverse, refund, order_status и order_status_extended. Параметры **kwargs передаются в Requests; это не произвольные параметры платёжного API. По умолчанию timeout равен (3, 27) секундам на соединение и чтение.

При переходе со старого пакета замените импорты pysberbank на gocream_pysberbank, включая пути моков и имя логгера.

Documentation

Metadata

Release files for gocream-pysberbank 1.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gocream-pysberbank 1.0.0rc1
File Size Uploaded Provenance
gocream_pysberbank-1.0.0rc1.tar.gz 48.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gocream-pysberbank 1.0.0rc1
File Interpreter ABI Platform
gocream_pysberbank-1.0.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 65.7 kB

Release files / gocream_pysberbank-1.0.0rc1.tar.gz

Download URL gocream_pysberbank-1.0.0rc1.tar.gz
Size 48.3 kB
Tags Source
SHA-256 checksum
How to use checksums
705cf451d19f19ed667fca41432990fe94a8ead8fa894c97e15d5acc8ea3c1b5
BLAKE2b-256 checksum
How to use checksums
a44731471b7c858f7e7943fe2badc5c21dd5a42c768168755fc02116f13b7245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 12, 2026.

Transparency log

Release files / gocream_pysberbank-1.0.0rc1-py3-none-any.whl

Download URL gocream_pysberbank-1.0.0rc1-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ee1d9f847de0a2785a5a444975962e05a13c87c34d937cd966baa71ae0c41bd
BLAKE2b-256 checksum
How to use checksums
64faef97b95c4bacb9940e5fb92c400afb03cfecb377376ef8ebdff4687cb726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 12, 2026.

Transparency log

Security for gocream-pysberbank 1.0.0rc1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gocream_pysberbank-1.0.0rc1.tar.gz

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 Oct 12, 2026.

Transparency log

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.

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