Skip to main content

Cliente Python para el Service Layer de SAP Business One usando requests.

Project description

SAPB1S

SAPB1SL

Cliente Python ligero para conectarse al Service Layer de SAP Business One utilizando requests. Esta librería facilita la autenticación, el manejo de sesiones, la reconexión automática y la ejecución de peticiones HTTP de forma robusta, sencilla y limpia.

Características

  • Autenticación al Service Layer de SAP B1
  • Reconexión automática cuando la sesión expira
  • Métodos simplificados: get(), post(), patch(), delete()
  • Código limpio y mantenible, ideal para entornos productivos
  • Útil para integraciones backend, automatizaciones o servicios web

Instalación

Puedes instalar esta librería directamente desde PyPI (una vez publicada):

pip install SAPB1SL

Ejemplo de uso

from SAPB1SL import SAPB1SL

client = SAPB1SL(
    base_url="https://mi-servidor-sap:50000/b1s/v1",
    company_db="SBODemoCL",
    username="manager",
    password="1234"
)

response = client.get("BusinessPartners?$top=5")

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print("Error:", response.status_code)

Licencia

Este proyecto está licenciado bajo los términos de la licencia MIT. Ver archivo LICENSE para más detalles.


Maintainers

@Bryanluispg (Bryan L. Pineda G.)


Autor

Bryan Luis Pineda Linkedin: https://www.linkedin.com/in/blpg/


Contribuciones

Este proyecto es de código abierto, pero cualquier cambio debe ser aprobado previamente por el autor. Si deseas colaborar, abre un issue primero o contáctame directamente por LinkedIn.

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

sapb1sl-2.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sapb1sl-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sapb1sl-2.0.0.tar.gz.

File metadata

  • Download URL: sapb1sl-2.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for sapb1sl-2.0.0.tar.gz
Algorithm Hash digest
SHA256 97bf6c7d92388c36307529da14166aa389cc77f366810b535469c34b6dc47770
MD5 cb591dddc1710e17f97888d93a30e08b
BLAKE2b-256 69d88d78eaea641998396aae6dd888e03782ed4bf285662f377cc95875c8c87c

See more details on using hashes here.

File details

Details for the file sapb1sl-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sapb1sl-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for sapb1sl-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07b57e6dc03dfd7688258f819f3742a8c88687944937137661d1ca8145597578
MD5 8c3267494965457fa0fe033b27f3e7bc
BLAKE2b-256 2549bbc9c7b276426a5e9538e38510a3c4a487a2cb287bbf2d31afff66c4a2ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page