datagrok-api 0.0.1__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,90 +1,90 @@
1
- # Git
2
- *.orig
3
-
4
- # IDE files
5
- .idea
6
- *.iml
7
-
8
- # Java files
9
- /connectors/grok_connect/target
10
- /connectors/serialization/target
11
- /packages/Tika/src/target
12
- dependency-reduced-pom.xml
13
- *.class
14
-
15
- # NPM modules
16
- node_modules/
17
- upload.keys.json
18
- test-report.html
19
- test-record.mp4
20
- test-report.csv
21
- test-console-output.log
22
-
23
- # Build results
24
- dist/
25
- zip
26
-
27
- # js-api
28
- /js-api/**/*.js.map
29
- /js-api/src/*.js
30
- /js-api/grok.js
31
- /js-api/dg.js
32
- /js-api/ui.js
33
-
34
- # JSDoc
35
- /js-api/docs
36
- .DS_Store
37
-
38
- # Dart
39
- pubspec.lock
40
- .dart_tool
41
- .packages
42
- /docker/vm.docker-compose.yaml
43
- /packages/GridExtDemo/src/package.d.ts
44
- /packages/GridExtDemo/src/package.d.ts.map
45
- /packages/GridExtDemo/src/package.js
46
- /libraries/gridext/src/PinnedColumn.d.ts
47
- /libraries/gridext/src/PinnedColumn.d.ts.map
48
- /libraries/gridext/src/PinnedColumn.js
49
-
50
- # vim
51
- [._]*.s[a-v][a-z]
52
- !*.svg # comment out if you don't need vector files
53
- [._]*.sw[a-p]
54
- [._]s[a-rt-v][a-z]
55
- [._]ss[a-gi-z]
56
- [._]sw[a-p]
57
- *.vim
58
- .netrwhist
59
- *~
60
- [._]*.un~
61
-
62
- # ack
63
- .ackrc
64
-
65
- # Docusaurus
66
- docusaurus/access.log
67
- docusaurus/error.log
68
- docusaurus/.env
69
- docusaurus/js-api
70
- docusaurus/temp_*
71
- docusaurus/output.csv
72
-
73
- .terraform
74
-
75
- # local history
76
- .lh
77
-
78
- _lint-check-report.md
79
-
80
-
81
- help/deploy/releases/plugins/*.md
82
- help/deploy/releases/plugins/plugins.json
83
- !help/deploy/releases/plugins/_category_.yml
84
- !help/deploy/releases/plugins/_plugins.md
85
- !help/deploy/releases/plugins/plugins.mdx
86
- !help/deploy/releases/plugins/TableFromJson.js
87
-
88
- tools/.cache/
89
-
90
- .history
1
+ # Git
2
+ *.orig
3
+
4
+ # IDE files
5
+ .idea
6
+ *.iml
7
+
8
+ # Java files
9
+ /connectors/grok_connect/target
10
+ /connectors/serialization/target
11
+ /packages/Tika/src/target
12
+ dependency-reduced-pom.xml
13
+ *.class
14
+
15
+ # NPM modules
16
+ node_modules/
17
+ upload.keys.json
18
+ test-report.html
19
+ test-record.mp4
20
+ test-report.csv
21
+ test-console-output.log
22
+
23
+ # Build results
24
+ dist/
25
+ zip
26
+
27
+ # js-api
28
+ /js-api/**/*.js.map
29
+ /js-api/src/*.js
30
+ /js-api/grok.js
31
+ /js-api/dg.js
32
+ /js-api/ui.js
33
+
34
+ # JSDoc
35
+ /js-api/docs
36
+ .DS_Store
37
+
38
+ # Dart
39
+ pubspec.lock
40
+ .dart_tool
41
+ .packages
42
+ /docker/vm.docker-compose.yaml
43
+ /packages/GridExtDemo/src/package.d.ts
44
+ /packages/GridExtDemo/src/package.d.ts.map
45
+ /packages/GridExtDemo/src/package.js
46
+ /libraries/gridext/src/PinnedColumn.d.ts
47
+ /libraries/gridext/src/PinnedColumn.d.ts.map
48
+ /libraries/gridext/src/PinnedColumn.js
49
+
50
+ # vim
51
+ [._]*.s[a-v][a-z]
52
+ !*.svg # comment out if you don't need vector files
53
+ [._]*.sw[a-p]
54
+ [._]s[a-rt-v][a-z]
55
+ [._]ss[a-gi-z]
56
+ [._]sw[a-p]
57
+ *.vim
58
+ .netrwhist
59
+ *~
60
+ [._]*.un~
61
+
62
+ # ack
63
+ .ackrc
64
+
65
+ # Docusaurus
66
+ docusaurus/access.log
67
+ docusaurus/error.log
68
+ docusaurus/.env
69
+ docusaurus/js-api
70
+ docusaurus/temp_*
71
+ docusaurus/output.csv
72
+
73
+ .terraform
74
+
75
+ # local history
76
+ .lh
77
+
78
+ _lint-check-report.md
79
+
80
+
81
+ help/deploy/releases/plugins/*.md
82
+ help/deploy/releases/plugins/plugins.json
83
+ !help/deploy/releases/plugins/_category_.yml
84
+ !help/deploy/releases/plugins/_plugins.md
85
+ !help/deploy/releases/plugins/plugins.mdx
86
+ !help/deploy/releases/plugins/TableFromJson.js
87
+
88
+ tools/.cache/
89
+
90
+ .history
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: datagrok-api
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Client library for integration with datagrok API
5
5
  Project-URL: Homepage, https://github.com/datagrok-ai/public
6
6
  Project-URL: Issues, https://github.com/datagrok-ai/public/issues
@@ -15,6 +15,8 @@ Description-Content-Type: text/markdown
15
15
 
16
16
  This library can be used for integration with datagrok. It is a python wrapper for public API, that has OpenAPI specification available [here](http://public.datagrok.ai/api/public/api.yaml).
17
17
 
18
+ Refer to [Help](http://datagrok.ai/help) for more information.
19
+
18
20
  ## Installation
19
21
 
20
22
  To install package, use [pip](https://pypi.org/project/pip/).
@@ -42,12 +44,9 @@ See [License.md](https://github.com/datagrok-ai/public/blob/master/LICENSE.md).
42
44
  The package uses Pandas for representation of tables and dataframes.
43
45
 
44
46
  ```python
45
- from datagrok_api import DatagrokClient
46
47
  import pandas as pd
47
48
  from sklearn.datasets import load_iris
48
49
 
49
- api = DatagrokClient('your token', 'datagrok url')
50
-
51
50
  # Calls a Datagrok function
52
51
  # Dataframes, columns and primitive data types are supported
53
52
  api.call_function('Abs', {
@@ -59,7 +58,7 @@ res = api.download_file('system.demofiles', 'demog.csv')
59
58
  print(res.head())
60
59
 
61
60
  # Uploads iris dataset as a table
62
- iris_id = api.upload_table('iris', pd.DataFrame(load_iris()['data']))
61
+ iris_id = api.upload_table('iris', pd.DataFrame(load_iris()['data']))['ID']
63
62
 
64
63
  # Iris also can be uploaded as a file
65
64
  # api.upload_file('system.demofiles', 'iris.csv', 'iris.csv')
@@ -69,7 +68,7 @@ res = api.download_table(iris_id)
69
68
  print(res.head())
70
69
 
71
70
  # Creates dashboard from iris table with layout uploaded from file "iris.layout"
72
- dashboard_id = api.create_dashboard('python-test', iris_id, layout_filename='iris.layout')
71
+ dashboard_id = api.create_dashboard('python-test', iris_id, layout_filename='iris.layout')['ID']
73
72
 
74
73
  # Shares dashboard with admin
75
74
  api.share_dashboard(dashboard_id, 'Test')
@@ -1,64 +1,63 @@
1
- # Datagrok python client library
2
-
3
- This library can be used for integration with datagrok. It is a python wrapper for public API, that has OpenAPI specification available [here](http://public.datagrok.ai/api/public/api.yaml).
4
-
5
- ## Installation
6
-
7
- To install package, use [pip](https://pypi.org/project/pip/).
8
-
9
- ```shell
10
- pip install datagrok-api
11
- ```
12
-
13
- ## Usage
14
-
15
- To use API client, import DatagrokClient to your project:
16
-
17
- ```python
18
- from datagrok_api import DatagrokClient
19
-
20
- api = DatagrokClient('your token', 'datagrok url')
21
- ```
22
-
23
- ## License
24
-
25
- See [License.md](https://github.com/datagrok-ai/public/blob/master/LICENSE.md).
26
-
27
- ## Examples
28
-
29
- The package uses Pandas for representation of tables and dataframes.
30
-
31
- ```python
32
- from datagrok_api import DatagrokClient
33
- import pandas as pd
34
- from sklearn.datasets import load_iris
35
-
36
- api = DatagrokClient('your token', 'datagrok url')
37
-
38
- # Calls a Datagrok function
39
- # Dataframes, columns and primitive data types are supported
40
- api.call_function('Abs', {
41
- 'x': -3
42
- })
43
-
44
- # Downloads file from a given connection
45
- res = api.download_file('system.demofiles', 'demog.csv')
46
- print(res.head())
47
-
48
- # Uploads iris dataset as a table
49
- iris_id = api.upload_table('iris', pd.DataFrame(load_iris()['data']))
50
-
51
- # Iris also can be uploaded as a file
52
- # api.upload_file('system.demofiles', 'iris.csv', 'iris.csv')
53
-
54
- # Fetches freshly uploaded Iris table
55
- res = api.download_table(iris_id)
56
- print(res.head())
57
-
58
- # Creates dashboard from iris table with layout uploaded from file "iris.layout"
59
- dashboard_id = api.create_dashboard('python-test', iris_id, layout_filename='iris.layout')
60
-
61
- # Shares dashboard with admin
62
- api.share_dashboard(dashboard_id, 'Test')
63
-
64
- ```
1
+ # Datagrok python client library
2
+
3
+ This library can be used for integration with datagrok. It is a python wrapper for public API, that has OpenAPI specification available [here](http://public.datagrok.ai/api/public/api.yaml).
4
+
5
+ Refer to [Help](http://datagrok.ai/help) for more information.
6
+
7
+ ## Installation
8
+
9
+ To install package, use [pip](https://pypi.org/project/pip/).
10
+
11
+ ```shell
12
+ pip install datagrok-api
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ To use API client, import DatagrokClient to your project:
18
+
19
+ ```python
20
+ from datagrok_api import DatagrokClient
21
+
22
+ api = DatagrokClient('your token', 'datagrok url')
23
+ ```
24
+
25
+ ## License
26
+
27
+ See [License.md](https://github.com/datagrok-ai/public/blob/master/LICENSE.md).
28
+
29
+ ## Examples
30
+
31
+ The package uses Pandas for representation of tables and dataframes.
32
+
33
+ ```python
34
+ import pandas as pd
35
+ from sklearn.datasets import load_iris
36
+
37
+ # Calls a Datagrok function
38
+ # Dataframes, columns and primitive data types are supported
39
+ api.call_function('Abs', {
40
+ 'x': -3
41
+ })
42
+
43
+ # Downloads file from a given connection
44
+ res = api.download_file('system.demofiles', 'demog.csv')
45
+ print(res.head())
46
+
47
+ # Uploads iris dataset as a table
48
+ iris_id = api.upload_table('iris', pd.DataFrame(load_iris()['data']))['ID']
49
+
50
+ # Iris also can be uploaded as a file
51
+ # api.upload_file('system.demofiles', 'iris.csv', 'iris.csv')
52
+
53
+ # Fetches freshly uploaded Iris table
54
+ res = api.download_table(iris_id)
55
+ print(res.head())
56
+
57
+ # Creates dashboard from iris table with layout uploaded from file "iris.layout"
58
+ dashboard_id = api.create_dashboard('python-test', iris_id, layout_filename='iris.layout')['ID']
59
+
60
+ # Shares dashboard with admin
61
+ api.share_dashboard(dashboard_id, 'Test')
62
+
63
+ ```
@@ -1,3 +1,3 @@
1
- from datagrok_api.datagrok_client import DatagrokClient
2
-
3
- '''Datagrok Public API Python wrapper'''
1
+ from datagrok_api.datagrok_client import DatagrokClient
2
+
3
+ '''Datagrok Public API Python wrapper'''