No project description provided
Project description
dlt-personio-source
Parent tables
'employees',
'absences',
'absence_types',
'attendances'
some of these tables have sub-tables
to join the parent table to the sub table, use the join parent.dlt_id = child.parent_dlt_id
Usage
install library
pipx install dlt-personio-source
if the library cannot be found, ensure you have the required python version as per the pyproject.toml
file.
Run the source as below to load a sample data set.
Add credentials and remove the dummy_data
flag to enable loading your data.
from dlt_personio_source import load_personio_tables
creds = {
"type": "service_account",
"project_id": "zinc-mantra-353207",
"private_key_id": "example",
"private_key": "",
"client_email": "example@zinc-mantra-353207.iam.gserviceaccount.com",
"client_id": "100909481823688180493"}
serial load:
tables = ['employees', 'absences', 'absence_types', 'attendances']
load_personio_tables(client_id='',
client_secret='',
target_credentials=creds,
tables = tables,
schema_name='personio_raw',
dummy_data = True)
for parallel load, create airflow tasks for each table such as:
tables = ['employees', 'absences', 'absence_types', 'attendances']
for table in tables:
load_personio_tables(client_id='',
client_secret='',
target_credentials=creds,
tables = [table],
schema_name='personio_raw',
dummy_data = True)
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
dlt-personio-source-0.0.43.tar.gz
(38.6 kB
view hashes)
Built Distribution
Close
Hashes for dlt-personio-source-0.0.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 238e540197af0589e13e9f212c6e6aeac0ab9158d912cae6e4d6db00c6916cd1 |
|
MD5 | 3ebe2e751efac76f425bd941f8640f2d |
|
BLAKE2b-256 | 8b04118722be84403cd55d4ef9e377503e7bf1bf23c3da8f5ee83937f76b8c01 |
Close
Hashes for dlt_personio_source-0.0.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c79c0048e6a85670d4e9a570769a088d725bf44ba44877731aa3f86be9f67ec4 |
|
MD5 | 450df8d9dc066efbc0b2464b6f8a4ec7 |
|
BLAKE2b-256 | 28e17b30d50c4c60c4d85978c1ac22d88209cf98206028984be11a2821f5e5cd |