Skip to main content

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


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.15.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

lg_payroll_api-0.1.15-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file lg_payroll_api-0.1.15.tar.gz.

File metadata

  • Download URL: lg_payroll_api-0.1.15.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for lg_payroll_api-0.1.15.tar.gz
Algorithm Hash digest
SHA256 1acddc492201cf0c15c3ab4cf9037cbab9a1168eed8a03e5f892113ed1a6e1cd
MD5 8bcae5440e409f99a6b2ca89deaa0a27
BLAKE2b-256 51c9955c45e68da828790a66f9d6466eebdcda9a62d9995beb55474a72cd61e7

See more details on using hashes here.

File details

Details for the file lg_payroll_api-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for lg_payroll_api-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f7e2b99f3694e732724da7935409dc43d1ebb1a7af4a19a397e3e7a9910c33
MD5 dddd22a33473c02ac904fdd6e60e7ff0
BLAKE2b-256 34f52f5aa81df82f74e0a096ddf723da2bbc9c1cc21236338142a7c007e39aad

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