-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
129 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Documentation | ||
|
||
## Deployment | ||
|
||
![deployment](https://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/NewTec-GmbH/pySupersetCli/main/doc/uml/deployment.puml) | ||
|
||
## Architecture | ||
|
||
![architecture](https://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/NewTec-GmbH/pySupersetCli/main/doc/uml/architecture.puml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Upload | ||
|
||
Upload a JSON file to a Superset instance. | ||
|
||
The user mus supply the following parameters: | ||
|
||
- database: DB to upload the data to. | ||
- table: Existing table in the database to save the data to. | ||
- file: JSON-formatted file containing the data. | ||
|
||
```cmd | ||
pySupersetCli -u <user> -p <password> -s <server_url> --basic_auth --no_ssl upload --database "TEST" --table "dummy" --file "input.json" | ||
``` | ||
|
||
## JSON File format | ||
|
||
The JSON file must contain a JSON Object, in which the keys are interpreted as the columns of the table. Nested objects are not accepted and the command will fail in case a nested object is supplied. Each time the command is called, a new row will be appended to the database/table specified. | ||
|
||
If the table already exists, it is not possible to change the column names/order (no changes in the schema allowed). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@startuml ArchitectureDiagram | ||
|
||
package "pySupersetCli" as pySupersetCli { | ||
component "Main Entry Point" as main | ||
component "superset"as server | ||
component "Commands" <<command>> as cmd | ||
} | ||
|
||
package "Python" as python { | ||
component "Argparse" as argparse | ||
component "Requests" as requests | ||
} | ||
|
||
main *--> server : <<uses>> | ||
main o--> cmd : 0..* | ||
main *--> argparse : <<uses>> | ||
|
||
server *--> requests : <<uses>> | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml DeploymentDiagram | ||
|
||
node "Apache Superset"<<virtual-machine>> as superset | ||
|
||
database "DB Server" { | ||
component "Database" as supersetDb | ||
|
||
note bottom of supersetDb | ||
The database is project specific, means | ||
one database per project. | ||
end note | ||
} | ||
|
||
interface "REST API" as supersetRestApi | ||
|
||
superset --- supersetRestApi | ||
superset -- supersetDb | ||
|
||
node "Continuous Integration Server"<<virtual-machine>> { | ||
|
||
package "scripts" { | ||
component "pySupersetCli" as pySupersetCli | ||
} | ||
} | ||
|
||
supersetRestApi )-- pySupersetCli: <<writes>> | ||
|
||
note top of superset | ||
Report frontend for project metrics. | ||
end note | ||
|
||
|
||
@enduml |