Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abacatepay/abacatepay-python-sdk
AbacatePay Python SDK for you to start receiving payments in seconds
https://github.com/abacatepay/abacatepay-python-sdk
Last synced: 21 days ago
JSON representation
AbacatePay Python SDK for you to start receiving payments in seconds
- Host: GitHub
- URL: https://github.com/abacatepay/abacatepay-python-sdk
- Owner: AbacatePay
- Created: 2024-12-03T00:36:28.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-04T23:17:57.000Z (about 1 month ago)
- Last Synced: 2024-12-07T01:32:48.622Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AbacatePay
SDK Python para interagir com a API da AbacatePay (https://abacatepay.com)![PyPI](https://img.shields.io/pypi/v/abacatepay?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/abacatepay)
## Instalação### Instalação via PyPI
```bash
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:
```bash
uv sync
uv run pip install -e .
uv venv
```#### Rodando os testes
```bash
uv run pytest
```## Usage/Examples
```python
import abacatepaytoken = ""
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
```