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)

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.0.tar.gz (4.7 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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: abacatepay-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 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.0.tar.gz
Algorithm Hash digest
SHA256 71f7f585d03de4ff2939a05c4c490a7cf7d9f9baf73a35a4ae15599622f33e19
MD5 5405a85a2464239c88741a49f9d423f1
BLAKE2b-256 71f131a316821159c97105b5bd7324d4b7c3b7e541150527fbeb259f46f38f7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: abacatepay-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 481025d8614e2987cb8c8a3439ee3fcb1261820c6e452f1e74a6c046365eec26
MD5 c01330022a5818be7a736495186dd32c
BLAKE2b-256 638468a2f22ebd6283bdb77faebc93aba362cf51b2553dc21057cb5fe189aa13

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