NSAPH Data Platform
Contents
Introduction
What is Data Platform
Data Domains
Data Processing Pipelines
Python Packages
Data Platform Internals
Adding more data
Terms and Acronyms
Indices
NSAPH Data Platform
The tables Module
View page source
The tables Module
Module to create list of tables from the Domain Data Model
class
Table
(
schema
:
str
,
name
:
str
,
domain
:
Domain
,
domain_dict
)
[source]
add_master_columns
(
)
[source]
add_column_from_master
(
c
:
str
)
[source]
add_column_from_sql
(
identifier
:
Identifier
)
[source]
get_source_columns
(
identifier
:
Identifier
)
→
Set
[
str
]
[source]
get_aggregation
(
schema
:
str
,
name
:
str
,
create_block
:
dict
)
[source]
is_downstream
(
predecessor
:
str
)
[source]
add_predecessors_for_column
(
c
:
str
,
lst
:
List
)
[source]
get_predecessors
(
)
→
List
[source]
get_predecessors_for_column
(
column
:
str
)
→
List
[source]
get_column_links
(
column
:
Column
)
→
List
[source]
calculate_column_lineage
(
column
:
Column
,
graph
:
Graph
)
[source]
column_lineage_to_dot
(
column_name
:
str
,
out
)
[source]
describe_column_type
(
column
:
Column
)
[source]
static
link_to_table
(
name
:
str
)
[source]
static
link_to_column
(
name
:
str
,
basedir
:
str
)
[source]
describe_html
(
basedir
)
→
str
[source]
html
(
of
:
str
,
svg
=
None
)
[source]
class
Aggregation
(
schema
:
str
,
name
:
str
,
parent
:
str
,
columns
:
List
,
domain_dict
)
[source]
class
Union
(
schema
:
str
,
tables
:
List
[
str
]
,
domain_dict
)
[source]
class
Join
(
schema
:
str
,
s
:
str
,
domain_dict
)
[source]
class
Relation
(
reltype
:
str
,
x
:
Table
,
y
:
Table
,
data
=
None
)
[source]
label
(
)
[source]
as_edge_attr
(
)
→
Dict
[source]
class
ColumnLink
(
r
:
Relation
,
x
:
Column
,
y
:
Column
)
[source]
to_dot
(
)
[source]