Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
09da19db
Commit
09da19db
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Plain Diff
Merge branch 'release-latest' into release-1.4.2
parents
fe87919c
46d4eab4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/python/README.md
+27
-26
27 additions, 26 deletions
lib/python/README.md
lib/python/pyproject.toml
+1
-1
1 addition, 1 deletion
lib/python/pyproject.toml
lib/python/setup.py
+1
-1
1 addition, 1 deletion
lib/python/setup.py
with
29 additions
and
28 deletions
lib/python/README.md
+
27
−
26
View file @
09da19db
...
...
@@ -32,32 +32,33 @@ print(f"Analysis result: {analysis}")
# create table
table
=
client
.
create_table
(
database_id
=
1
,
name
=
"
Sensor Data
"
,
constraints
=
CreateTableConstraints
(
checks
=
[
'
precipitation >= 0
'
],
uniques
=
[[
'
precipitation
'
]]),
columns
=
[
CreateTableColumn
(
name
=
"
date
"
,
type
=
ColumnType
.
DATE
,
dfid
=
3
,
# YYYY-MM-dd
primary_key
=
True
,
null_allowed
=
False
),
CreateTableColumn
(
name
=
"
precipitation
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
),
CreateTableColumn
(
name
=
"
lat
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
),
CreateTableColumn
(
name
=
"
lng
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
)])
name
=
"
Sensor Data
"
,
constraints
=
CreateTableConstraints
(
checks
=
[
'
precipitation >= 0
'
],
uniques
=
[[
'
precipitation
'
]]),
columns
=
[
CreateTableColumn
(
name
=
"
date
"
,
type
=
ColumnType
.
DATE
,
dfid
=
3
,
# YYYY-MM-dd
primary_key
=
True
,
null_allowed
=
False
),
CreateTableColumn
(
name
=
"
precipitation
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
),
CreateTableColumn
(
name
=
"
lat
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
),
CreateTableColumn
(
name
=
"
lng
"
,
type
=
ColumnType
.
DECIMAL
,
size
=
10
,
d
=
4
,
primary_key
=
False
,
null_allowed
=
True
)])
print
(
f
"
Create table result
{
table
}
"
)
# -> (id=1, internal_name=sensor_data, ...)
...
...
This diff is collapsed.
Click to expand it.
lib/python/pyproject.toml
+
1
−
1
View file @
09da19db
[project]
name
=
"dbrepo"
version
=
"
1.4.2rc5
"
version
=
"
__APPVERSION__
"
description
=
"DBRepo Python Library"
keywords
=
[
"DBRepo"
,
...
...
This diff is collapsed.
Click to expand it.
lib/python/setup.py
+
1
−
1
View file @
09da19db
...
...
@@ -2,7 +2,7 @@
from
distutils.core
import
setup
setup
(
name
=
"
dbrepo
"
,
version
=
"
1.4.2rc5
"
,
version
=
"
__APPVERSION__
"
,
description
=
"
A library for communicating with DBRepo
"
,
url
=
"
https://www.ifs.tuwien.ac.at/infrastructures/dbrepo//
"
,
author
=
"
Martin Weise
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment