envlib 0.1.1__tar.gz → 0.1.2__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.
- {envlib-0.1.1 → envlib-0.1.2}/PKG-INFO +1 -1
- {envlib-0.1.1 → envlib-0.1.2}/envlib/__init__.py +1 -1
- {envlib-0.1.1 → envlib-0.1.2}/envlib/catalogue.py +5 -4
- {envlib-0.1.1 → envlib-0.1.2}/.gitignore +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/LICENSE +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/README.md +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/metadata.py +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/__init__.py +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/aggregation_statistic.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/feature.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/frequency_interval.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/license.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/method.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/processing_level.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/standard_name.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/envlib/vocabularies/variable.json +0 -0
- {envlib-0.1.1 → envlib-0.1.2}/pyproject.toml +0 -0
|
@@ -4,6 +4,6 @@ from envlib import vocabularies
|
|
|
4
4
|
from envlib.catalogue import Catalogue, DatasetRef
|
|
5
5
|
from envlib.metadata import Metadata, ValidationError, compute_station_id
|
|
6
6
|
|
|
7
|
-
__version__ = '0.1.
|
|
7
|
+
__version__ = '0.1.2'
|
|
8
8
|
|
|
9
9
|
__all__ = ['Catalogue', 'DatasetRef', 'Metadata', 'ValidationError', 'compute_station_id', 'vocabularies']
|
|
@@ -31,9 +31,10 @@ from envlib.metadata import (
|
|
|
31
31
|
compute_station_id,
|
|
32
32
|
)
|
|
33
33
|
|
|
34
|
-
# The
|
|
35
|
-
#
|
|
36
|
-
|
|
34
|
+
# The public envlib commons catalogue (read-only, credential-less HTTPS; a
|
|
35
|
+
# custom domain fronting the hosting bucket, so the URL outlives any bucket
|
|
36
|
+
# move). The env var below overrides it (stand-ins, testing, mirrors).
|
|
37
|
+
PUBLIC_RCG_URL: str | None = 'https://b2.envlib.xyz/file/envlib/envlib-commons/catalogue'
|
|
37
38
|
PUBLIC_RCG_ENV_VAR = 'ENVLIB_PUBLIC_RCG_URL'
|
|
38
39
|
DEFAULT_CACHE_DIR = '~/.envlib/cache'
|
|
39
40
|
|
|
@@ -535,7 +536,7 @@ class Catalogue:
|
|
|
535
536
|
public = _public_rcg_url()
|
|
536
537
|
if public is None:
|
|
537
538
|
msg = (
|
|
538
|
-
'
|
|
539
|
+
'no public envlib RCG is configured — pass remotes=[...] '
|
|
539
540
|
f'or set the {PUBLIC_RCG_ENV_VAR} environment variable.'
|
|
540
541
|
)
|
|
541
542
|
raise ValueError(msg)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|