Skip to main content

Cliente para conectar instituciones con BCCR FVA.

Project description

pyfva

Cliente para conectar instituciones con BCCR FVA.

Abstrae la comunicación entre los servicios SOAP del BCCR y python creando clientes de fácil uso, por ejemplo si se desea autenticar a una persona se realizaría como

from pyfva.clientes.autenticador import ClienteAutenticador

authclient = ClienteAutenticador(1,1) # negocio, entidad

if authclient.validar_servicio():
    data = authclient.solicitar_autenticacion('08-0888-0888')
else:
    # warnings.warn("Auth BCCR No disponible", RuntimeWarning)
    data = authclient.DEFAULT_ERROR

Instalación

Instale mediante pypi

pip install pyfva

o usando el repositorio

pip install git+https://github.com/solvo/crdist.git

Parámetros de ambiente

Los siguientes parámetros pueden ser modificados usando variables de entorno o variables en django settings.

Los valores por defecto son:

  • FVA_HOST = “http://bccr.fva.cr/

  • STUB_SCHEME = ‘http’

  • STUB_HOST = “localhost:8001”

  • RECEPTOR_HOST = ‘http://bccr.fva.cr/

  • DEFAULT_BUSSINESS = 1

  • DEFAULT_ENTITY = 1

  • RECEPTOR_CLIENT = ‘pyfva.receptor.client’

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

pyfva-0.0.6.tar.gz (27.5 kB view details)

Uploaded Source

File details

Details for the file pyfva-0.0.6.tar.gz.

File metadata

  • Download URL: pyfva-0.0.6.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyfva-0.0.6.tar.gz
Algorithm Hash digest
SHA256 91eee1dd440f7776c16d2f40f75d30f44ffb392ff71db787a17c8bd0a20965a0
MD5 b5ae7e9e742792469d5b44dddb5dd35d
BLAKE2b-256 88207507e8f42e4513b1bc17ee41f908c68f3a3eb2e5dd1e0e961df9f0466852

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page