Skip to main content

No project description provided

Project description

Pancham Data Pipelines

Github Actions Quality Gate Status

Pancham simplifies the process of reading and processing data with Pandas.

What is it for

A common scenario in data migration projects is to need to take exports from one system, apply some transformation rules and write the data somewhere else. This could be files, a database or an API. All of this can be done with Pandas but we would need to write a lot of code, Pancham is here to make that process easier.

flowchart LR;
    s[Source Files]-->t[Transformation];
    t-->o[Output Files];

Key features

  • Load files
  • Rename fields
  • Validate data types and not-null columns
  • Apply python functions to transform values
  • Return data as a Pandas DataFrame
  • Write data to a database

Supported Source Files

  • Excel
  • SQL
  • YAML
  • CSV
  • JSON

Supported Output

  • SQL
  • CSV

Additional sources and output formats will be added with time.

Usage

The most common approach is to use a mapping file.

name: example
file_type: yaml
file_path: source/customer.yml
key: customer
output:
  - table: customers
    output_type: database
fields:
  - name: id
    source_name: customer_id
    field_type: str
    nullable: false
  - name: status
    source_name: account_status
    field_type: str
    nullable: false

This simple mapping file expects to be able to load a source file called customer.yml with the following content:

customer:
    - customer_id: 123
      account_status: active
    - customer_id: 456
      account_status: on_hold

The pipeline wll read the input file and populate a database that you can then query.

The final part is the pancham configuration.

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

pancham-0.21.1.tar.gz (60.6 kB view details)

Uploaded Source

Built Distribution

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

pancham-0.21.1-py3-none-any.whl (99.5 kB view details)

Uploaded Python 3

File details

Details for the file pancham-0.21.1.tar.gz.

File metadata

  • Download URL: pancham-0.21.1.tar.gz
  • Upload date:
  • Size: 60.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pancham-0.21.1.tar.gz
Algorithm Hash digest
SHA256 e4da2acfb0921ba457e737a5a42b4ffac8ec79565203e25d9b5b22bf04a46637
MD5 fe42b4083f04252c1157aa80de188754
BLAKE2b-256 b7e55e72a45f57f7c784243fc2ec85c33ee42e2baa0fa34c803e7d3daa3b2dfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pancham-0.21.1.tar.gz:

Publisher: tag.yml on Loqui-Tech/pancham

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pancham-0.21.1-py3-none-any.whl.

File metadata

  • Download URL: pancham-0.21.1-py3-none-any.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pancham-0.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df977a5d6acd0954414455f89de171aaeb899eaf936d1d9180b728381bbe997c
MD5 25e746e8cff6807e02cf98b13d3a7e8c
BLAKE2b-256 b872777add1b78a41e4b8b16410a61c63db72f06512b312d08295345cc049129

See more details on using hashes here.

Provenance

The following attestation bundles were made for pancham-0.21.1-py3-none-any.whl:

Publisher: tag.yml on Loqui-Tech/pancham

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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