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
lg_payroll_api-0.1.9.tar.gz
(15.8 kB
view details)
Built Distribution
File details
Details for the file lg_payroll_api-0.1.9.tar.gz
.
File metadata
- Download URL: lg_payroll_api-0.1.9.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e9801673e008090a36a5962bd3f256bf7c173e9dde872ab3969cdf7345caee |
|
MD5 | a77d7c92190797378556fe8ad14307b9 |
|
BLAKE2b-256 | fee7301dda78cc2b2110034b7d0a6f58fde86521d4256ebd3ff3b5286e953527 |
File details
Details for the file lg_payroll_api-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: lg_payroll_api-0.1.9-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71ebee403cd39bbffae87f15800f7119c8142004c4c22a86fbcfd1606488f12 |
|
MD5 | 8028988fc8b9e9a98e2fee9a3a02cb37 |
|
BLAKE2b-256 | 163bc9c669f77fe25d9e87225d46a0ccd3c56b7a3aa192a9ba4e8a17d8170286 |