Skip to main content

Python SDK to interact with abacatepay's api

Project description

AbacatePay

SDK Python para interagir com a API da AbacatePay (https://abacatepay.com)

PyPI PyPI - Downloads

Instalação

Instalação via PyPI

pip install abacatepay

Instalação via desenvolvimento

Para o desenvolvimento, você deve clonar o repositório e instalar o pacote com o instalador de pacotes uv (https://docs.astral.sh/uv/). Este instalador é recomendado para projetos Python e já possui a criação de ambientes virtuais e outras dependências necessárias para o desenvolvimento:

uv sync
uv run pip install -e .
uv venv

Rodando os testes

uv run pytest

Usage/Examples

import abacatepay

token = "<your enviroment api token>"
client = AbacatePay(token)

billing = client.create_billing(products=[Product(externalId="123", name="Teste", quantity=1, price=101, description="Teste")], returnURL="https://abacatepay.com", completionUrl="https://abacatepay.com")
print(billing.data.url)
# > https://abacatepay.com/pay/aaaaaaa

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

abacatepay-1.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abacatepay-1.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file abacatepay-1.0.1.tar.gz.

File metadata

  • Download URL: abacatepay-1.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for abacatepay-1.0.1.tar.gz
Algorithm Hash digest
SHA256 038a275f0636727c9662a4b81926e605aa036513a8ee59806d17a2d75876b476
MD5 61e4af6a1470e6b062a72396c45a387c
BLAKE2b-256 6cfed29e5837d4d1ca95000c0ddfe551cd314ea5e2d0d157212ccd35edece63e

See more details on using hashes here.

File details

Details for the file abacatepay-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: abacatepay-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for abacatepay-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef18373e1922849d21150a22b87b0c860d08eb1975b7bd328fef759a0e1c1c78
MD5 0e8ee76a71f00e19f01330c346f58a1a
BLAKE2b-256 76a743c729ef494f9528b9a35519883693f809d041a53a46f2265bb4722389f6

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