lg-payroll-api
This library able you to make requests to LG soap api in python
Instalation
pip install lg-payroll-api
Configuration
First one, you need to define a LgAuthentication object with your credentials:
from lg_payroll_api import LgPayrollApi, LgAuthentication
import os
# This example uses environment variables.
# We recommend the use of environment variables to improve security to your credentials
auth: LgAuthentication = LgAuthentication(
base_url=os.environ["LG_API_BASE_PATH"],
user=os.environ["LG_API_USER"],
password=os.environ["LG_API_PASSWORD"],
guild_tenant=os.environ["LG_API_GUID_TENANT"],
environment_context=os.environ["LG_API_ENVIRONMENT"],
)
After define the authentication, you can instantiate the LgPayrollApi object by passing the authentication defined before:
from lg_payroll_api import LgPayrollApi, LgAuthentication
import os
auth: LgAuthentication = LgAuthentication(
base_url=os.environ["LG_API_BASE_PATH"],
user=os.environ["LG_API_USER"],
password=os.environ["LG_API_PASSWORD"],
guild_tenant=os.environ["LG_API_GUID_TENANT"],
environment_context=os.environ["LG_API_ENVIRONMENT"],
)
lg_payroll_api: LgPayrollApi = LgPayrollApi(auth=auth)
Finally you can access a api endpoints methods abstracted in this library, for example:
from lg_payroll_api import LgPayrollApi, LgAuthentication
import os
auth: LgAuthentication = LgAuthentication(
base_url=os.environ["LG_API_BASE_PATH"],
user=os.environ["LG_API_USER"],
password=os.environ["LG_API_PASSWORD"],
guild_tenant=os.environ["LG_API_GUID_TENANT"],
environment_context=os.environ["LG_API_ENVIRONMENT"],
)
lg_payroll_api: LgPayrollApi = LgPayrollApi(auth=auth)
employees_contracts = (
lg_payroll_api
.employment_contract_service
.list_on_demand()
)
This library is under development and not all methods are available.
Metadata
Release files for lg-payroll-api 0.1.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lg_payroll_api-0.1.22.tar.gz | 30.1 kB | Without provenance | Details for lg_payroll_api-0.1.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lg_payroll_api-0.1.22-py3-none-any.whl | Python 3 | none | any | Details for lg_payroll_api-0.1.22-py3-none-any.whl |
Total release size: 74.2 kB
Release files / lg_payroll_api-0.1.22.tar.gz
| Download URL | lg_payroll_api-0.1.22.tar.gz |
|---|---|
| Size | 30.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18841743b55e284c41d55ff4e1252c1413a289d0925d9b029c1bda1a987a398c
|
|
BLAKE2b-256 checksum How to use checksums |
d19bca7cfdb4e0d06bd14b80eb6933efe17ec05a41b98f63425361453b134fbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / lg_payroll_api-0.1.22-py3-none-any.whl
| Download URL | lg_payroll_api-0.1.22-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a332d71ad5352c3c8b1d9471a900f83c905b5d74e91fede35398f73dec6a6991
|
|
BLAKE2b-256 checksum How to use checksums |
ee22230b329c39e6fe37fae6f9e2e9ebeb7eb8346a158881e036ab1e68775278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for lg-payroll-api 0.1.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.