tonik 0.1.9__tar.gz → 0.1.11__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.
- {tonik-0.1.9 → tonik-0.1.11}/PKG-INFO +7 -10
- {tonik-0.1.9 → tonik-0.1.11}/README.md +3 -7
- tonik-0.1.11/docs/grafana_dashboard_screenshot.png +0 -0
- tonik-0.1.11/docs/grafana_integration.md +35 -0
- tonik-0.1.11/docs/grafana_login_screenshot.png +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/docs/index.md +5 -8
- tonik-0.1.11/docs/tonik_example.ipynb +350 -0
- tonik-0.1.11/grafana_example/Dockerfile_api +6 -0
- tonik-0.1.11/grafana_example/Dockerfile_grafana +17 -0
- tonik-0.1.11/grafana_example/dashboards/demo_dashboard.json +534 -0
- tonik-0.1.11/grafana_example/docker-compose.yml +30 -0
- tonik-0.1.11/grafana_example/grafana.ini +1170 -0
- tonik-0.1.11/grafana_example/provisioning/dashboards/default.yaml +24 -0
- tonik-0.1.11/grafana_example/provisioning/datasources/default.yaml +6 -0
- {tonik-0.1.9 → tonik-0.1.11}/mkdocs.yml +1 -0
- {tonik-0.1.9 → tonik-0.1.11}/pyproject.toml +4 -2
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/__init__.py +1 -1
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/api.py +25 -4
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/storage.py +29 -1
- tonik-0.1.11/src/tonik/utils.py +189 -0
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/xarray2netcdf.py +1 -1
- {tonik-0.1.9 → tonik-0.1.11}/tests/conftest.py +4 -1
- {tonik-0.1.9 → tonik-0.1.11}/tests/test_api.py +18 -0
- tonik-0.1.9/tests/test_group.py → tonik-0.1.11/tests/test_storage.py +17 -2
- tonik-0.1.11/tests/test_utils.py +11 -0
- tonik-0.1.9/docs/tonik_example.ipynb +0 -347
- tonik-0.1.9/src/tonik/utils.py +0 -91
- {tonik-0.1.9 → tonik-0.1.11}/.devcontainer/devcontainer.json +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/.gitignore +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/HOW_TO_RELEASE.md +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/LICENSE +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/package_data/index.html +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/src/tonik/xarray2zarr.py +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/tests/backend_speed_test.py +0 -0
- {tonik-0.1.9 → tonik-0.1.11}/tests/test_save.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: tonik
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
4
4
|
Summary: Store time series data as HDF5 files and access them through an API.
|
|
5
5
|
Project-URL: Homepage, https://tsc-tools.github.io/tonik
|
|
6
6
|
Project-URL: Issues, https://github.com/tsc-tools/tonik/issues
|
|
@@ -10,8 +10,9 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.7
|
|
13
|
+
Requires-Dist: dask<=2024.10.0
|
|
13
14
|
Requires-Dist: datashader>=0.14
|
|
14
|
-
Requires-Dist: fastapi>=0.
|
|
15
|
+
Requires-Dist: fastapi>=0.112
|
|
15
16
|
Requires-Dist: h5netcdf>=1.1
|
|
16
17
|
Requires-Dist: h5py>=3.8
|
|
17
18
|
Requires-Dist: matplotlib
|
|
@@ -30,8 +31,8 @@ Description-Content-Type: text/markdown
|
|
|
30
31
|
|
|
31
32
|
# Tonik
|
|
32
33
|
|
|
33
|
-
Tonik provides you with a solution to store and retrieve scientific data as well as serving it through an API.
|
|
34
|
-
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand.
|
|
34
|
+
Tonik provides you with a solution to store and retrieve scientific time-series data as well as serving it through an API.
|
|
35
|
+
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand. The API was optimised to visualise time-series and data labels with [Grafana](https://grafana.com/oss/grafana/).
|
|
35
36
|
|
|
36
37
|
## Requirements
|
|
37
38
|
* h5py
|
|
@@ -54,10 +55,6 @@ pip install -U tonik
|
|
|
54
55
|
|
|
55
56
|
Learn more about tonik in its official [documentation](https://tsc-tools.github.io/tonik)
|
|
56
57
|
|
|
57
|
-
## Contributing
|
|
58
|
-
|
|
59
|
-
You can find information about contributing to tonik at our [Contributing page]
|
|
60
|
-
|
|
61
58
|
## Get in touch
|
|
62
59
|
|
|
63
|
-
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik).
|
|
60
|
+
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik/issues).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Tonik
|
|
2
2
|
|
|
3
|
-
Tonik provides you with a solution to store and retrieve scientific data as well as serving it through an API.
|
|
4
|
-
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand.
|
|
3
|
+
Tonik provides you with a solution to store and retrieve scientific time-series data as well as serving it through an API.
|
|
4
|
+
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand. The API was optimised to visualise time-series and data labels with [Grafana](https://grafana.com/oss/grafana/).
|
|
5
5
|
|
|
6
6
|
## Requirements
|
|
7
7
|
* h5py
|
|
@@ -24,10 +24,6 @@ pip install -U tonik
|
|
|
24
24
|
|
|
25
25
|
Learn more about tonik in its official [documentation](https://tsc-tools.github.io/tonik)
|
|
26
26
|
|
|
27
|
-
## Contributing
|
|
28
|
-
|
|
29
|
-
You can find information about contributing to tonik at our [Contributing page]
|
|
30
|
-
|
|
31
27
|
## Get in touch
|
|
32
28
|
|
|
33
|
-
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik).
|
|
29
|
+
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik/issues).
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Grafana integration
|
|
2
|
+
|
|
3
|
+
Tonik's API was written to work well with [Grafana](https://grafana.com/oss/grafana/) for visualising data and data labels.
|
|
4
|
+
|
|
5
|
+
The [repo](https://github.com/tsc-tools/tonik) contains a Grafana
|
|
6
|
+
[example](https://github.com/tsc-tools/tonik/tree/main/grafana_example) that demonstrates
|
|
7
|
+
an example setup using [docker-compose](https://docs.docker.com/compose/).
|
|
8
|
+
|
|
9
|
+
To run the example you first have to install [docker](https://docs.docker.com/get-started/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/). Then get a local copy of the repository by running:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
git clone --depth=1 https://github.com/tsc-tools/tonik.git
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
and finally start the example by running the following commands:
|
|
16
|
+
```
|
|
17
|
+
cd tonik/grafana_example
|
|
18
|
+
docker-compose up --build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This will build and start the necessary docker containers and then start Grafana on port `11223` of your host machine. Should this port not be available you can change the port in the `docker-compose.yml` file under the `ports` section.
|
|
22
|
+
|
|
23
|
+
Navigating to [http://localhost:11223](http://localhost:11223) will show the following login screen:
|
|
24
|
+
|
|
25
|
+

|
|
26
|
+
|
|
27
|
+
Entering the shown details will then load the following demo dashboard:
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
To shut down the grafana instance first stop docker-compose using Ctrl-c and then clean up by running
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
docker-compose down
|
|
35
|
+
```
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Tonik
|
|
2
2
|
|
|
3
|
-
Tonik provides you with a solution to store and retrieve scientific data as well as serving it through an API.
|
|
4
|
-
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand.
|
|
3
|
+
Tonik provides you with a solution to store and retrieve scientific time-series data as well as serving it through an API.
|
|
4
|
+
For visualisations, the API can serve large requests very quickly by downsampling the data to the requested resolution on demand. The API was optimised to visualise time-series and data labels with [Grafana](https://grafana.com/oss/grafana/).
|
|
5
5
|
|
|
6
6
|
## Requirements
|
|
7
7
|
* h5py
|
|
@@ -13,6 +13,7 @@ For visualisations, the API can serve large requests very quickly by downsamplin
|
|
|
13
13
|
* python-json-logger
|
|
14
14
|
* uvicorn
|
|
15
15
|
* fastapi
|
|
16
|
+
* matplotlib (only needed to reproduce the examples in the user guide)
|
|
16
17
|
|
|
17
18
|
## Installation
|
|
18
19
|
```
|
|
@@ -22,12 +23,8 @@ pip install -U tonik
|
|
|
22
23
|
## Documentation
|
|
23
24
|
|
|
24
25
|
Learn more about tonik in its official [documentation](https://tsc-tools.github.io/tonik.github.io/)
|
|
25
|
-
Try out
|
|
26
|
-
|
|
27
|
-
## Contributing
|
|
28
|
-
|
|
29
|
-
You can find information about contributing to tonik at our [Contributing page]
|
|
26
|
+
Try out a [Jupyter notebook](https://github.com/tsc-tools/tonik/blob/main/docs/tonik_example.ipynb)
|
|
30
27
|
|
|
31
28
|
## Get in touch
|
|
32
29
|
|
|
33
|
-
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik).
|
|
30
|
+
Report bugs, suggest features, view the source code, and ask questions [on GitHub](https://github.com/tsc-tools/tonik/issues).
|