API para webservices do TOTVS ERP RM
Project description
# totverprm
API para acesso aos Webservices do TOTVS ERP RM.
## Instalação
pip install totverprm
### Exemplo para criação de um aluno:
```python
from datetime import datetime
from totvserprm.educational import Student
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
stundet = Student(server, username, password)
stundet.create(
codcoligada=1,
codtipocurso=1,
data_nascimento=datetime(1992, 2, 3, 4, 5),
estado_natal='MG',
naturalidade='Belo Horizonte',
nome='Fulano de tal',
ra=35
)
```
### Exemplo para criação de um cliente:
```python
from datetime import datetime
from totvserprm.financial import Client
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
client = Client(server, username, password)
client.create(
ativo=True,
codexterno=1,
codcoligada=0,
codcoligada_contexto=1,
cpf_cnpj='11781328110',
tipo_rua=1,
tipo_bairro=1,
bairro='Belvedere',
rua='Rua Professor Pedro Aleixo',
numero=695,
estado='MG',
cidade='Belo Horizonte',
codigo_municipio=06200,
pais=1,
data_nascimento=datetime(1990,5,14),
nome='Cliente Teste Vetrol',
classificacao=1,
categoria='F',
cep='30320-300'
)
```
### Exemplo para criação de um boleto:
```python
from datetime import datetime
from totvserprm.financial import Billet
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
boleto = Billet(server, username, password)
boleto.create(
codcoligada=1,
codcoligada_contexto=1,
codcoligada_cfo=0,
data_vencimento=datetime(2017,10,30),
valor=100,
codcliente='0000470',
codfilial=1,
classificacao=1,
tipo_documento='999',
conta=1,
historico='teste',
centro_custo='01.019'
)
```
API para acesso aos Webservices do TOTVS ERP RM.
## Instalação
pip install totverprm
### Exemplo para criação de um aluno:
```python
from datetime import datetime
from totvserprm.educational import Student
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
stundet = Student(server, username, password)
stundet.create(
codcoligada=1,
codtipocurso=1,
data_nascimento=datetime(1992, 2, 3, 4, 5),
estado_natal='MG',
naturalidade='Belo Horizonte',
nome='Fulano de tal',
ra=35
)
```
### Exemplo para criação de um cliente:
```python
from datetime import datetime
from totvserprm.financial import Client
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
client = Client(server, username, password)
client.create(
ativo=True,
codexterno=1,
codcoligada=0,
codcoligada_contexto=1,
cpf_cnpj='11781328110',
tipo_rua=1,
tipo_bairro=1,
bairro='Belvedere',
rua='Rua Professor Pedro Aleixo',
numero=695,
estado='MG',
cidade='Belo Horizonte',
codigo_municipio=06200,
pais=1,
data_nascimento=datetime(1990,5,14),
nome='Cliente Teste Vetrol',
classificacao=1,
categoria='F',
cep='30320-300'
)
```
### Exemplo para criação de um boleto:
```python
from datetime import datetime
from totvserprm.financial import Billet
server = '192.168.1.100:8051'
username = 'admin'
password = 'admin'
boleto = Billet(server, username, password)
boleto.create(
codcoligada=1,
codcoligada_contexto=1,
codcoligada_cfo=0,
data_vencimento=datetime(2017,10,30),
valor=100,
codcliente='0000470',
codfilial=1,
classificacao=1,
tipo_documento='999',
conta=1,
historico='teste',
centro_custo='01.019'
)
```
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for totvserprm-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868fd1eb2a29b4c7bdc3c215e500681f2ed6c6ea3bf39f5ba832f1b0747275c4 |
|
MD5 | 8a58ac42dac34ca7ecbc4248f2cb8580 |
|
BLAKE2b-256 | e39c3d11541fc524097429734dbb37bbcde2a3900ba37267c6975a4b7aa675a4 |