Client library for stpmex.com
Project description
STP python3.6+ client library
Cliente para el servicio REST de STP
Requerimientos
Python v3.6 o superior.
Documentación de API
Instalación
pip install stpmex
Correr pruebas
make venv
source venv/bin/activate
make test
Uso básico
from stpmex import Client
client = Client(
empresa='TU_EMPRESA',
priv_key='PKEY_CONTENIDO',
priv_key_passphrase='supersecret',
)
cuenta = client.cuentas.alta(
nombre='Eduardo',
apellidoPaterno='Salvador',
apellidoMaterno='Hernández',
rfcCurp='SAHE800416HDFABC01',
cuenta='646180110400000007',
)
orden = client.ordenes.registra(
monto=1.2,
cuentaOrdenante=cuenta.cuenta,
nombreBeneficiario='Ricardo Sanchez',
cuentaBeneficiario='072691004495711499',
institucionContraparte='40072',
conceptoPago='Prueba',
)
cuenta.baja()
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
stpmex-3.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
stpmex-3.1.1-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file stpmex-3.1.1.tar.gz.
File metadata
- Download URL: stpmex-3.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68674af412cb802efef4ac964f5e8c96fbd085bfc0d7520f3dccb54a1280eefe
|
|
| MD5 |
c7fad8e8c86ee00f7f0dd243d397a0e9
|
|
| BLAKE2b-256 |
88363c5fbe0f1f3c1d6260d6a5c94c03415ee47b971d8183e09c77872138cb15
|
File details
Details for the file stpmex-3.1.1-py3-none-any.whl.
File metadata
- Download URL: stpmex-3.1.1-py3-none-any.whl
- Upload date:
- Size: 11.2 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/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a467ccbe775fbe35b562588665d366b21a87fea4d76df42b33948d90ed16e167
|
|
| MD5 |
67daa55ad57e8e054e7af0ddb158c940
|
|
| BLAKE2b-256 |
0f57e144e556e81de0bcbcce1da2e833a59b8094f2144a3742dc279e94c28d4f
|