Skip to main content

YooKassa API SDK Python Library

Project description

YooKassa API Python Client Library

Build Status Latest Stable Version Total Downloads License

Russian | English

This product is used for managing payments under The YooKassa API For usage by those who implemented YooKassa using the API method.

Requirements

  1. Python 2.7 or Python 3.x
  2. pip

Installation

Under console using pip

  1. Install pip.
  2. In the console, run the following command:
pip install --upgrade yookassa

Under console using easy_install

  1. Install easy_install.
  2. In the console, run the following command:
easy_install --upgrade yookassa

Manually

  1. In the console, run the following command:
wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yookassa-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2
tar zxf yookassa-1.0.0.tar.gz
cd yookassa-1.0.0
python setup.py install

Commencing work

  1. Import module
import yookassa
  1. Configure a Client
from yookassa import Configuration

Configuration.configure('<Account Id>', '<Secret Key>')

or

from yookassa import Configuration

Configuration.account_id = '<Account Id>'
Configuration.secret_key = '<Secret Key>'

or via oauth

from yookassa import Configuration

Configuration.configure_auth_token('<Oauth Token>')

If you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:

from yookassa import Configuration
from yookassa.domain.common.user_agent import Version

Configuration.configure('<Account Id>', '<Secret Key>')
Configuration.configure_user_agent(
    framework=Version('Django', '2.2.3'),
    cms=Version('Wagtail', '2.6.2'),
    module=Version('Y.CMS', '0.0.1')
)
  1. Call the required API method. More details in our documentation for the YooKassa API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yookassa-2.4.0.tar.gz (38.5 kB view details)

Uploaded Source

File details

Details for the file yookassa-2.4.0.tar.gz.

File metadata

  • Download URL: yookassa-2.4.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for yookassa-2.4.0.tar.gz
Algorithm Hash digest
SHA256 3fb71a501f908cbe631f5814f643bfe64e2be25a05927368d83482a34f569dc1
MD5 160451d558733bce99660412f3dfebed
BLAKE2b-256 e1122c030b561aa80bc9f3eaf8707bc876aae12f0566bca81325bbd244e14c6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page