Cliente para comunicacion con API de flow.cl
Project description
Bienvenido a pyflowcl
pyflowcl es una biblioteca de Python que proporciona una interfaz para interactuar con la API de Flow en Chile. Con pyflowcl, puedes realizar diversas operaciones, como crear pagos, obtener información de pagos, realizar reembolsos y más.
Instalación
Para instalar pyflowcl, asegúrate de tener Python instalados. Luego, puedes instalar la biblioteca utilizando tu administrador favorito.
Uso Básico
Aquí hay un ejemplo básico de cómo usar pyflowcl para crear un pago:
from pyflowcl import Payment
from pyflowcl.Clients import ApiClient
api = ApiClient(
api_url="https://www.flow.cl/api",
api_key="tu_api_key",
api_secret="tu_api_secret",
)
pago = {
"subject": "Asunto Email",
"commerceOrder": "1234",
"amount": 5000,
"email": "mariofix@pm.me",
"urlConfirmation": "https://mariofix.com",
"urlReturn": "https://mariofix.com",
}
llamada = Payment.create(api, pago)
print(f"{llamada = }")
> llamada = { "flowOrder": 123456, "url": "https://www.flow.cl/app/pay.php", "token": "tok_123456" }
# Obtiene la URL de pago
print(f"URL de pago: {pago.url}?token={pago.token}")
> URL de pago: https://www.flow.cl/app/pay.php?token=tok_123456
Documentación
Para obtener más información sobre cómo usar pyflowcl y todas las funcionalidades disponibles, consulta la documentación completa en https://mariofix.github.io/pyflowcl.
Contribuir
¡Tú contribución es bienvenida! Si encuentras errores, tienes sugerencias o deseas agregar nuevas características, por favor, crea un problema o envía una solicitud de extracción en el repositorio de GitHub: Repositorio de pyflowcl.
Licencia
Pyflowcl se distribuye bajo la Licencia MIT. Consulta el archivo LICENSE para obtener más información.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyflowcl-2026.3.0.tar.gz.
File metadata
- Download URL: pyflowcl-2026.3.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9fa204e1dd3cc931ae5f7c36435ecb30b066a8d9a72e3553280c92802ac9886
|
|
| MD5 |
fd1d7a6525117f3aa3d2ef6429e24168
|
|
| BLAKE2b-256 |
ce135ca88f8519f27c1d16b51bd6af34a6d72e9a84596dabd6ba6b8385bde568
|
Provenance
The following attestation bundles were made for pyflowcl-2026.3.0.tar.gz:
Publisher:
new_release.yml on mariofix/pyflowcl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyflowcl-2026.3.0.tar.gz -
Subject digest:
e9fa204e1dd3cc931ae5f7c36435ecb30b066a8d9a72e3553280c92802ac9886 - Sigstore transparency entry: 994294438
- Sigstore integration time:
-
Permalink:
mariofix/pyflowcl@1cc64e0933775afb94e6e1cb1e18d341be397d71 -
Branch / Tag:
refs/tags/v2026.3.1 - Owner: https://github.com/mariofix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
new_release.yml@1cc64e0933775afb94e6e1cb1e18d341be397d71 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyflowcl-2026.3.0-py3-none-any.whl.
File metadata
- Download URL: pyflowcl-2026.3.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46735ba0b8517f21c3c780d43657f4ae7f0b734ad05c79a62549ac1359b360d6
|
|
| MD5 |
b40bb4c1bc9ce0ad0a5c126534669556
|
|
| BLAKE2b-256 |
11a130b5e28497103eca8ffbffbb93b90af477316ff750ca26579457a9a952e7
|
Provenance
The following attestation bundles were made for pyflowcl-2026.3.0-py3-none-any.whl:
Publisher:
new_release.yml on mariofix/pyflowcl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyflowcl-2026.3.0-py3-none-any.whl -
Subject digest:
46735ba0b8517f21c3c780d43657f4ae7f0b734ad05c79a62549ac1359b360d6 - Sigstore transparency entry: 994294523
- Sigstore integration time:
-
Permalink:
mariofix/pyflowcl@1cc64e0933775afb94e6e1cb1e18d341be397d71 -
Branch / Tag:
refs/tags/v2026.3.1 - Owner: https://github.com/mariofix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
new_release.yml@1cc64e0933775afb94e6e1cb1e18d341be397d71 -
Trigger Event:
release
-
Statement type: