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.5.0.tar.gz (9.2 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.5.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pyflowcl-2026.5.0.tar.gz.

File metadata

  • Download URL: pyflowcl-2026.5.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyflowcl-2026.5.0.tar.gz
Algorithm Hash digest
SHA256 b4d48c6aaf90aab6b308e752248a072b85af79fda40497e5c929b9c8e0705bc3
MD5 047bf3e8764ee066294debd170c9bcf6
BLAKE2b-256 3ffb2400e8849cebd0cbdcf38081277b837f673f6b9181ce6823204de809dff9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowcl-2026.5.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.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyflowcl-2026.5.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.12

File hashes

Hashes for pyflowcl-2026.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29528c72d0d9d1e655e05415bdc9c85e0d2e5f5f685ffa63704a1d52ed4c9ea7
MD5 591ca108fe96735a25c5971a98b82c8a
BLAKE2b-256 aa1095b905e5cd8c4c5a6b2211921930d4e0f8a74db3726ef7381cf67daf00a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowcl-2026.5.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