Skip to content

Commit

Permalink
[IMP] new deps
Browse files Browse the repository at this point in the history
new dep from suds2
  • Loading branch information
ovnicraft committed Jan 5, 2018
1 parent 925bdfe commit f609e20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions runa/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def busqueda_por_nui(nui, mode='prod', authorized_nui=AUTHORIZED_NUI):
return read_by_nui(nui, mode=mode, authorized_nui=authorized_nui)


def busqueda_ruc(ruc, AUTHORIZED_NUI=AUTHORIZED_NUI):
response, client = login(WS_SRI)
def busqueda_ruc(ruc, AUTHORIZED_NUI=AUTHORIZED_NUI, bulk=False):
response, cliente = login(WS_SRI)
if not response:
return False
security = create_tokens(response)
client.set_options(wsse=security)
consulta_response = client.service.obtenerDatos(numeroRuc=ruc)
cliente.set_options(wsse=security)
consulta_response = cliente.service.obtenerDatos(numeroRuc=ruc)
if not consulta_response:
return False
contribuyente = PreparedContribuyente()
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

requirements = [
'Click>=6.0',
'suds-ovnicraft==0.7.1'
'suds2==0.7.1'
]

setup_requirements = [
Expand All @@ -26,7 +26,7 @@

setup(
name='runa',
version='0.2.1',
version='0.2.2',
description="Librería para uso de WS del Bus Gubernamental de Ecuador",
long_description=readme + '\n\n' + history,
author="Cristian Salamea",
Expand Down

0 comments on commit f609e20

Please sign in to comment.