Skip to main content

Secoda Development Kit for building Secoda integrations

Project description

Secoda Development Kit

Introduction

The Secoda SDK is a powerful tool for developers to create custom integrations with the Secoda platform. It provides a framework for connecting and ingesting data from various sources into Secoda, allowing for a rich and interconnected data ecosystem.

SecodaIntegration Class

The SecodaIntegration class is an abstract base class that should be extended by any new integration. It manages authentication, network strategy, and the ingestion of resources and lineage.

When you create a custom integration by subclassing SecodaIntegration, you are required to provide a concrete implementation of the extract method. This method should contain the logic necessary to connect to your data source, retrieve data, and process it as needed.

Key Methods

  • declare_resource(resource: Resource): Declare a resource such as a table, dashboard, or column to be ingested.
  • declare_lineage(lineage: DeclaredLineage): Declare a lineage, representing a relationship between two resources.

Network Methods

  • http_get(), http_post(), http_put(), http_patch(), http_delete(): Perform HTTP requests of various methods. These methods accept parameters for URL, query parameters, headers, and body data, along with flags for redirect following and SSL verification.

Resource Model

Overview The Resource model represents a resource within the Secoda platform, such as a table, column, or dashboard.

Lineage Models

LineageID

LineageID represents resource(s) in your workspace, which can be either:

  • A resource rom the current custom integration (InternalResource)
  • A table or a column in your workspace (ExternalTable, ExternalColumn)
  • Or a set of tables referenced in a SQL query (TablesFromSQLQuery)

DeclaredLineage

Overview

The DeclaredLineage model captures the relationship between two resources in your workspace, which can be either from the current integration or external entities.

Attributes

  • from_identifier: The starting point of the lineage, represented by a LineageID.
  • to_identifier: The endpoint of the lineage, also represented by a LineageID.

Allowed lineages types

Currently, we support the following lineage types:

  • InternalResource ↔ InternalResource
  • InternalResource ↔ ExternalTable
  • InternalResource ↔ ExternalColumn
  • ExternalTable ↔ ExternalTable
  • TablesFromSQLQuery -> InternalResource

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

secodadk-0.0.6.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

secodadk-0.0.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file secodadk-0.0.6.tar.gz.

File metadata

  • Download URL: secodadk-0.0.6.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.2.0

File hashes

Hashes for secodadk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 26bbb8ada046784b177adf60713b5287dbaf7307e06919a51dbd4da15ea7cdef
MD5 8531e91ff9fdb713591b3284915ace1d
BLAKE2b-256 3feac24bf945e9ab6988864fb121426a4df013c2e9e9fb8f41fa386781815abb

See more details on using hashes here.

File details

Details for the file secodadk-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: secodadk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.2.0

File hashes

Hashes for secodadk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 700fa72edb29add28119c388b9d6b1bda154e59abd8281bbd6bbdf5ac25a35b5
MD5 1756f3948a50374c11518ad8f4a8d77a
BLAKE2b-256 b4c3272ff2a13833925e1b209bf2a1d5ccb9726709efec7b6de015a5ba30c486

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