envlib 0.1.0__py3-none-any.whl
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.
- envlib/__init__.py +9 -0
- envlib/catalogue.py +970 -0
- envlib/metadata.py +572 -0
- envlib/vocabularies/__init__.py +336 -0
- envlib/vocabularies/aggregation_statistic.json +20 -0
- envlib/vocabularies/feature.json +19 -0
- envlib/vocabularies/frequency_interval.json +21 -0
- envlib/vocabularies/license.json +63 -0
- envlib/vocabularies/method.json +37 -0
- envlib/vocabularies/processing_level.json +21 -0
- envlib/vocabularies/standard_name.json +5683 -0
- envlib/vocabularies/variable.json +4391 -0
- envlib-0.1.0.dist-info/METADATA +75 -0
- envlib-0.1.0.dist-info/RECORD +16 -0
- envlib-0.1.0.dist-info/WHEEL +4 -0
- envlib-0.1.0.dist-info/licenses/LICENSE +16 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: envlib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The environmental library
|
|
5
|
+
Project-URL: Documentation, https://mullenkamp.github.io/envlib/
|
|
6
|
+
Project-URL: Source, https://github.com/envlib
|
|
7
|
+
Author-email: mullenkamp <mullenkamp1@gmail.com>
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Requires-Dist: booklet>=0.12.5
|
|
12
|
+
Requires-Dist: cfdb>=0.9.0
|
|
13
|
+
Requires-Dist: ebooklet>=0.9.1
|
|
14
|
+
Requires-Dist: pyproj
|
|
15
|
+
Requires-Dist: shapely>=2.0
|
|
16
|
+
Requires-Dist: urllib3
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# envlib
|
|
20
|
+
|
|
21
|
+
<p align="center">
|
|
22
|
+
<em>The environmental library</em>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
[](https://github.com/envlib/actions)
|
|
26
|
+
[](https://codecov.io/gh/mullenkamp/envlib)
|
|
27
|
+
[](https://badge.fury.io/py/envlib)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
**Source Code**: <a href="https://github.com/envlib" target="_blank">https://github.com/envlib</a>
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
## Overview
|
|
35
|
+
envlib is a distributed database and catalogue for environmental data. It uses controlled vocabulary and standarized metadata to make it easy for users to query and access data. It uses cfdb as the backend. The metadata structure is based on tethysts.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
### Setup environment
|
|
41
|
+
|
|
42
|
+
We use [UV](https://docs.astral.sh/uv/) to manage the development environment and production build.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
uv sync
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Run unit tests
|
|
49
|
+
|
|
50
|
+
You can run all the tests with:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
uv run pytest
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Format the code
|
|
57
|
+
|
|
58
|
+
Execute the following commands to apply linting and check typing:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
uv run ruff check .
|
|
62
|
+
uv run black --check --diff .
|
|
63
|
+
uv run mypy --install-types --non-interactive envlib
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
To auto-format:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
uv run black .
|
|
70
|
+
uv run ruff check --fix .
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
This project is licensed under the terms of the Apache Software License 2.0.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
envlib/__init__.py,sha256=BF7UKZCu25YNC9xBjYsIQFByZfZkJP5AY0pvYXcYdww,364
|
|
2
|
+
envlib/catalogue.py,sha256=TmuY5Nbul35ZUM7AY6_E_pdu-2v01gThuSLF7fh6TQ0,40207
|
|
3
|
+
envlib/metadata.py,sha256=Uyjh8ljgyf91djVHmESeGgCxLejPZs4ZTRDRhbradY4,22665
|
|
4
|
+
envlib/vocabularies/__init__.py,sha256=d1FzzHYL9uqS48kaEnZP-wciw3m7qNTpKCaT1RSjuN8,12369
|
|
5
|
+
envlib/vocabularies/aggregation_statistic.json,sha256=UP5959ap1U0VQuY5Egy8-DQSuerLCKLrPU_J630oJ1g,1271
|
|
6
|
+
envlib/vocabularies/feature.json,sha256=KG9OYBS4fUx-xL0HI_i2vMko1khz7ofvEFtHzWSAXSw,1708
|
|
7
|
+
envlib/vocabularies/frequency_interval.json,sha256=c6EMbCNI6uma2dEl6HwLyaB2HPmgKPAoXl0B8lhwFGc,1313
|
|
8
|
+
envlib/vocabularies/license.json,sha256=x3vE-vU6qlkDguuY_6RECm1mmvHdtNNRM2WQslIBACc,2064
|
|
9
|
+
envlib/vocabularies/method.json,sha256=-0u9pJyxNCjv4ScIGsZlc_dFVgctWECMwubWGptg080,1841
|
|
10
|
+
envlib/vocabularies/processing_level.json,sha256=46wDRbmJ9uumlh2U9sfOlG0T5eGmZkFMzTsqzpIbMdA,646
|
|
11
|
+
envlib/vocabularies/standard_name.json,sha256=NVvVPSOLBpzouuqnvqzkYaVr5LD6trwO8PG-zOJenDc,432309
|
|
12
|
+
envlib/vocabularies/variable.json,sha256=fNWd1x2aganT-iKnDgBDnBq9hJLL4FRD35sRdglSVWM,94889
|
|
13
|
+
envlib-0.1.0.dist-info/METADATA,sha256=YgOKXH3JaH2uwYLkcSo5TYZ46FPpZSJfiBvRcggCw6o,1917
|
|
14
|
+
envlib-0.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
15
|
+
envlib-0.1.0.dist-info/licenses/LICENSE,sha256=W1NlCW8gxQR2ldMeyLkdSa-lb5yL0NEkemeJekAfggw,586
|
|
16
|
+
envlib-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Apache Software License 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Mike Kittridge
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
16
|
+
|