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.7.tar.gz (27.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyfva-0.0.7.tar.gz
Algorithm Hash digest
SHA256 ef25f6722e3abe3a747c53141a42d58292cb5b6652973cf49de7fe00a667b6e2
MD5 bed6932b046641be16517844c0f2ef3e
BLAKE2b-256 604951b4e6afe8dee0f9bc0fb02470b3c53e7ba8173ea1f2110b6334d0a579a7

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