Skip to main content

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.

PyPI - Status Tests&Coverage Downloads Codacy Badge Codacy Badge pre-commit.ci status PyPI PyPI - Python Version PyPI - Implementation PyPI - License Code style: black

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


Download files

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

Source Distribution

pyflowcl-2026.3.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

pyflowcl-2026.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

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

Hashes for pyflowcl-2026.3.0.tar.gz
Algorithm Hash digest
SHA256 e9fa204e1dd3cc931ae5f7c36435ecb30b066a8d9a72e3553280c92802ac9886
MD5 fd1d7a6525117f3aa3d2ef6429e24168
BLAKE2b-256 ce135ca88f8519f27c1d16b51bd6af34a6d72e9a84596dabd6ba6b8385bde568

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowcl-2026.3.0.tar.gz:

Publisher: new_release.yml on mariofix/pyflowcl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyflowcl-2026.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46735ba0b8517f21c3c780d43657f4ae7f0b734ad05c79a62549ac1359b360d6
MD5 b40bb4c1bc9ce0ad0a5c126534669556
BLAKE2b-256 11a130b5e28497103eca8ffbffbb93b90af477316ff750ca26579457a9a952e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowcl-2026.3.0-py3-none-any.whl:

Publisher: new_release.yml on mariofix/pyflowcl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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