Skip to main content

A package with custom kedro datasets for VLGI

Project description

vlgi-datasets

Overview

Repositiory with custom kedro datasets

How to use

In code:

from kedro.io import DataCatalog
from vlgi_datasets import PostgresTableUpsertDataSet

io = DataCatalog(
    {
        "asset": PostgresTableUpsertDataSet(
            table_name="assets",
            credentials={"con": "myconnectionstring"},
            save_args={"if_exists": "append", "constraint": "assets_pkey"},
            overwrite_columns=False, 
        ),
    }
)

In catalog.yml:

asset:
  type: vlgi_datasets.PostgresTableUpsertDataSet
  table_name: assets
  credentials:
    con: myconnectionstring
  save_args:
    if_exists: append
    constraint: assets_pkey
    overwrite_columns: False

Observation

  • The overwrite_columns parameter is optional and defaults to 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

vlgi_datasets-0.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

vlgi_datasets-0.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file vlgi_datasets-0.3.0.tar.gz.

File metadata

  • Download URL: vlgi_datasets-0.3.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for vlgi_datasets-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d5a00ebd56a3db62b289ee7087c90f8979ca015cf65099a53d7715ba78d20aeb
MD5 fd79781f3b6013b8e4e6413a59cb8178
BLAKE2b-256 12b27a8a3cac4eb66537aabd8a6feda0f9618d1a8cda4ad34f56ff71b2526c47

See more details on using hashes here.

File details

Details for the file vlgi_datasets-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: vlgi_datasets-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for vlgi_datasets-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9db5b5c53ba0e965177d6b0784d8993a10986a90bdadcb4da28936348a895f2a
MD5 8dc8588c1b826236dd964ea8cbff72cb
BLAKE2b-256 a65dc934c6ad9507f62471f33eda0bbdafe12b5f8ff4ce7d01da2360dee82950

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