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/luisza/pyfva.git
Documentación
Por supuesto la documentoación está aquí
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/”
RECEPTOR_HOST = ‘http://bccr.fva.cr/’
Ambos son direcciones del esquema, deben ser iguales al esquema del servicio WSDL.
STUB_SCHEME = ‘http’
STUB_HOST = “localhost:8001”
Dirección y protocolo donde se ubica el servicio FVA.
DEFAULT_BUSSINESS = 1
DEFAULT_ENTITY = 1
Números de identificación en el servicio FVA. (en el simulador no son usados).
RECEPTOR_CLIENT = ‘pyfva.receptor.client’
Cliente para recibir las respuestas del FVA.
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 Distributions
File details
Details for the file pyfva-0.0.35.tar.gz
.
File metadata
- Download URL: pyfva-0.0.35.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d53786c15ede43b3acd491c3fe560a349c343939b7be5ed0773e42d90707d0 |
|
MD5 | ef44162889bea4a6c6c74b5bf3769a06 |
|
BLAKE2b-256 | 22c5d189e1d79b8b549c004133985c8678f8d8cf6c8fe82e6192d6f608139fa6 |
Provenance
File details
Details for the file pyfva-0.0.35-py3.6.egg
.
File metadata
- Download URL: pyfva-0.0.35-py3.6.egg
- Upload date:
- Size: 83.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f62b4e82aaf9c803ff0e926042745db019d06f8827d995c85328bd0a52815a9 |
|
MD5 | ff3a428bd70a313030936b17775deedc |
|
BLAKE2b-256 | b18680e79c61c54da9097bf73755b6e0cba949c6a0d9b78e5d002e002cff9ec4 |
Provenance
File details
Details for the file pyfva-0.0.35-py3-none-any.whl
.
File metadata
- Download URL: pyfva-0.0.35-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98aa025467f52af8a8b03ed2e5afe161edda92f92cbb9f6193d3f0001895cd1 |
|
MD5 | 1aca9642efcd06b7500e010d66a7cf5e |
|
BLAKE2b-256 | c00d61954a36c7a2bcb8fa5e031c3f316f8bbfd13bd119806886475414727c1f |