No project description provided
Project description
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.
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
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
File details
Details for the file lg_payroll_api-0.1.14.tar.gz.
File metadata
- Download URL: lg_payroll_api-0.1.14.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b2d2ee4e4459e46ccf5ea6769c3d8f575fe0b536eafd8ecc1808387cd1940c
|
|
| MD5 |
ff20b7d92253eb819fe63bcd1827661f
|
|
| BLAKE2b-256 |
b2a6245689b0a4a127f51fbd5c4b8910a1c4814a8030238e248cf527802c587d
|
File details
Details for the file lg_payroll_api-0.1.14-py3-none-any.whl.
File metadata
- Download URL: lg_payroll_api-0.1.14-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f904051fe5083c99df61a7d7e0e18b8385d13dd593fd4e6080c3ec5e4b8f4370
|
|
| MD5 |
f4e1b04dcf42f4b1d0192a821cd5fc1b
|
|
| BLAKE2b-256 |
8298e32f7586e4db49f6a95041b64b46fefa9d6b3a1468b60ec1c9b54e55bf68
|