Recent Releases of Radiant MLHub Python Client
Radiant MLHub Python Client - v0.5.5
Added
- Add missing dependency urllib3 to setup.py. (181)
- Add a unit test to confirm asset save paths are getting formatted correctly with expected file extensions. (186)
Changed
- Performance improvements to Dataset.download() (182)
- Enable INFO level logging by default in Dataset.download() (182)
Fixed
- Fix regression bug from PR #182. (186)
Developer
- Add flake8-logging-format package (182)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by PowerChell over 3 years ago
Radiant MLHub Python Client - v0.5.3
Added
-
Add an optional asset_output_dir parameter so that the assets can be downloaded into a separate directory from the STAC Catalog if the user specifies and selects a separate asset output directory. (149)
-
Add datetime filter test to account for datasets that have start_datetime and end_datetime properties. (165)
Changed
- Update ADR and CONTRIBUTING docs (164)
Fixed
- Fix datetime comparisons in dataset downloader. (162)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by PowerChell over 3 years ago
Radiant MLHub Python Client - v0.5.2
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by guidorice over 3 years ago
Radiant MLHub Python Client - v0.5.1
Changed
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by guidorice almost 4 years ago
Radiant MLHub Python Client - v0.5.0
Added
- Add
Dataset.stac_catalog_size, andestimated_dataset_sizeproperties. (#104) - Add descriptive
__str__methods to model classes. (#104)
Removed
- Remove Python 3.7 support. (#106)
- Remove
Dataset.total_archive_sizeproperty, because of Dataset.download changes. (#104)
Changed
- Rewrite
Dataset.download()plus more robust downloading and filtering options. (#104)
Fixed
- Remove outdated jupyter notebooks from the
examples/folder. (#104)
Developer
- Remove
toxfrom development environment. (#104) - Add Python 3.10 on Windows to CI test matrix. (#104)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by guidorice almost 4 years ago
Radiant MLHub Python Client - v0.4.1
Fixed
- Fix installation error by missing dependency: typing_extensions. (#79)
Developer
- Check for missing dependencies in CI job. (#79)
- Allow ReadTheDocs builds to succeed if warnings are emitted (#80)
- Update trove classifiers to include Python 3.10 and bump dev status to "Beta" (#81)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by guidorice about 4 years ago
Radiant MLHub Python Client - v0.4.0
Added
client.list_modelsandclient.get_model_by_idto discover ML Models by ID or by listing. (#71)MLModel.listandMLModel.fetchmethods analagous to new client methods described
above. (#71)
Developer
- Refactor of client and model python modules. (#71)
- Configure Dependabot for automatic version upgrades of dev dependencies (#74)
- Lock dev dependencies. (#75)
- Remove Python 3.6 from
toxconfig and add Python 3.10 (#73)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by guidorice about 4 years ago
Radiant MLHub Python Client - v0.3.1
Fixed
- Use
HEADrequest instead ofGETwhen initiating download (#68)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb over 4 years ago
Radiant MLHub Python Client - v0.3.0
Added
tagsandtextarguments toDataset.listandclient.list_datasetsmethods to allow
filtering by datasets tags or free text search, respectively (#60)client.get_dataset_by_idandclient.get_dataset_by_doimethods to look up datasets by ID or
DOI, respectively (#58)Dataset.fetch_by_idandDataset.fetch_by_doimethods analagous to new client methods described
above (#58)py.typedfile included in package (#62)
Changed
client.get_datasetfirst attempts to get dataset usingget_dataset_by_idthen falls back to
usingget_dataset_by_doiif unsuccessful
(#58)Dataset.fetchusesclient.get_datasetto first attempt getting dataset by ID, then falling
back to fetching by DOI if unsuccessful
(#58)- Upgraded PySTAC dependency to
~=1.1..0(#63)
Removed
- Support for Python 3.6 (#61)
Fixed
- Numerous type annotation issues (#62)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb over 4 years ago
Radiant MLHub Python Client - v0.2.2
Fixed
- Documentation example in Authentication docs ((#53))
Developer
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb over 4 years ago
Radiant MLHub Python Client - v0.2.1
Fixed
api_keyargument fromDataset.fetchused byDatasetinstance for downstream requests
(#48)Dataset.downloaderrors whenapi_keyargument is passed (#48)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb almost 5 years ago
Radiant MLHub Python Client - v0.2.0
Changed
-
Pins PySTAC to v0.5.4 (#43)
Later versions automatically resolve links, which was leading to unnecessary network requests and
issues with matching in VCR.py
Fixed
Added
-
Properties to get archive sizes without downloading (
Collection.archive_sizeand
Dataset.total_archive_size) (#44) -
New attributes on
Datasetclass (doi,citation, andregistry_url) (#40) -
Collection.registry_urlproperty to get the URL for the Collection's registry page (#39) -
Available as
condapackage viaconda-forge(#34)$ conda install -c conda-forge radiant-mlhub
Developer
- Switch to using pytest-recording (VCR.py under the
hood) for mocking API responses (#43)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb almost 5 years ago
Radiant MLHub Python Client - v0.1.3
Fixed
- New attributes in the
/datasetresponse will no longer break theDatasetclass
(#42)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by kbgg almost 5 years ago
Radiant MLHub Python Client - v0.1.2
Fixes import bug and simplifies project dependencies
Fixed
- Implicit dependency on
typing_extensions(#29)
Developer
- Manually caches properties instead of using
functools.cached_property/backports.cached_property
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb about 5 years ago
Radiant MLHub Python Client - v0.1.1
Added
- Ability to resume archive downloads (#24)
- Automatically retry requests that fail due to connection issues (#24)
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb about 5 years ago
Radiant MLHub Python Client - v0.1.0
This release represents the first working alpha release of the Radiant MLHub Python Client.
Added
-
Authentication handling
radiant_mlhub.session.Sessionclass inheriting fromrequests.Sessionthat injects the API key and some headers into all requestsradiant_mlhub.get_sessionconvenience method for getting a new session instance and resolving the API key from either the environment, a profile, or a direct argument
-
Low-level client functions in the
radiant_mlhub.clientmodulelist_datasets: Returns list of all available datasetsget_dataset: Gets a dataset object by IDlist_collections: Returns a list of all available collectionsget_collection: Gets a collection object by IDlist_collection_items: Generator yielding limited # of items for a given collectionget_collection_item: Gets an item by collection ID and item IDdownload_archive: Downloads and archive by ID to local file system
-
Classes in
radiant_mlhub.modelsfor working with API entities as Python objectsDatasetclass encapsulates responses from/datasetendpoints and has method for listing associated collectionsCollectionclass inherits frompystac.Collectionand provides some convenience methods for listing and fetching collections from API as well as downloading associated archive
-
Documentation now available through ReadTheDocs
The docs are built automatically on changes to either
mainordevbranches. -
Jupyter Notebook examples available on Binder
Badge at top of main README contains link to index page for these examples
Development
-
Full test + linting suite
Unit tests run through
pytestusingrequests_mockto mock API responses. Linting run usingflake8and type checking run throughmypy. Test suite can be run locally against all supported Python versions (3.6-3.9) usingtox. Test suite also run as part of GitHub Actions CI for all PRs againstmainanddev -
Packaging
-
PRs from
release-*branches tomainbuild and deploy the package to TestPyPiEDIT: There is a step prior to publishing to TestPyPi that checks if the package with this version already exists. If it does, then the action will not attempt to publish to avoid making it seem like the CI has failed.
-
Tagged releases trigger build and deployment to PyPi
-
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by duckontheweb about 5 years ago
Radiant MLHub Python Client - v0.0.2
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by kbgg over 5 years ago
Radiant MLHub Python Client - v0.0.1
Sustainable Development - Data Catalogs and Interfaces
- Python
Published by kbgg over 5 years ago