A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

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 2 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 2 years ago

Radiant MLHub Python Client - v0.5.2

  • Fix bugs in readthedocs. (145)
  • Fix use of tilde in setup.py document (151)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by guidorice over 2 years ago

Radiant MLHub Python Client - v0.5.1

Changed

  • Improve http requests retry strategy. (115)
  • Optimizing performance of Dataset.download() (115)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by guidorice almost 3 years ago

Radiant MLHub Python Client - v0.5.0

Added

  • Add Dataset.stac_catalog_size, and estimated_dataset_size properties. (#104)
  • Add descriptive __str__ methods to model classes. (#104)

Removed

  • Remove Python 3.7 support. (#106)
  • Remove Dataset.total_archive_size property, 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 tox from 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 3 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 3 years ago

Radiant MLHub Python Client - v0.4.0

Added

  • client.list_models and client.get_model_by_id to discover ML Models by ID or by listing. (#71)
  • MLModel.list and MLModel.fetch methods 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 tox config and add Python 3.10 (#73)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by guidorice about 3 years ago

Radiant MLHub Python Client - v0.3.1

Fixed

  • Use HEAD request instead of GET when initiating download (#68)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by duckontheweb over 3 years ago

Radiant MLHub Python Client - v0.3.0

Added

  • tags and text arguments to Dataset.list and client.list_datasets methods to allow
    filtering by datasets tags or free text search, respectively (#60)
  • client.get_dataset_by_id and client.get_dataset_by_doi methods to look up datasets by ID or
    DOI, respectively (#58)
  • Dataset.fetch_by_id and Dataset.fetch_by_doi methods analagous to new client methods described
    above (#58)
  • py.typed file included in package (#62)

Changed

  • client.get_dataset first attempts to get dataset using get_dataset_by_id then falls back to
    using get_dataset_by_doi if unsuccessful
    (#58)
  • Dataset.fetch uses client.get_dataset to 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 3 years ago

Radiant MLHub Python Client - v0.2.2

Fixed

  • Documentation example in Authentication docs ((#53))

Developer

  • Moving to One Flow
    branching strategy instead of Git Flow for simplicity
    (#49)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by duckontheweb almost 4 years ago

Radiant MLHub Python Client - v0.2.1

Fixed

  • api_key argument from Dataset.fetch used by Dataset instance for downstream requests
    (#48)
  • Dataset.download errors when api_key argument is passed (#48)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by duckontheweb almost 4 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

  • Allow user-defined profiles location (#27)
  • License file is now included in the distribution (#37)

Added

  • Properties to get archive sizes without downloading (Collection.archive_size and
    Dataset.total_archive_size) (#44)

  • New attributes on Dataset class (doi, citation, and registry_url) (#40)

  • Collection.registry_url property to get the URL for the Collection's registry page (#39)

  • Available as conda package via conda-forge (#34)

    $ conda install -c conda-forge radiant-mlhub
    

Developer

Sustainable Development - Data Catalogs and Interfaces - Python
Published by duckontheweb almost 4 years ago

Radiant MLHub Python Client - v0.1.3

Fixed

  • New attributes in the /dataset response will no longer break the Dataset class
    (#42)

Sustainable Development - Data Catalogs and Interfaces - Python
Published by kbgg almost 4 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 4 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 4 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.Session class inheriting from requests.Session that injects the API key and some headers into all requests
    • radiant_mlhub.get_session convenience 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.client module

    • list_datasets: Returns list of all available datasets
    • get_dataset: Gets a dataset object by ID
    • list_collections: Returns a list of all available collections
    • get_collection: Gets a collection object by ID
    • list_collection_items: Generator yielding limited # of items for a given collection
    • get_collection_item: Gets an item by collection ID and item ID
    • download_archive: Downloads and archive by ID to local file system
  • Classes in radiant_mlhub.models for working with API entities as Python objects

    • Dataset class encapsulates responses from /dataset endpoints and has method for listing associated collections
    • Collection class inherits from pystac.Collection and 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 main or dev branches.

  • 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 pytest using requests_mock to mock API responses. Linting run using flake8 and type checking run through mypy. Test suite can be run locally against all supported Python versions (3.6-3.9) using tox. Test suite also run as part of GitHub Actions CI for all PRs against main and dev

  • Packaging

    • PRs from release-* branches to main build and deploy the package to TestPyPi

      EDIT: 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 4 years ago

Radiant MLHub Python Client - v0.0.2

Sustainable Development - Data Catalogs and Interfaces - Python
Published by kbgg over 4 years ago

Radiant MLHub Python Client - v0.0.1

Sustainable Development - Data Catalogs and Interfaces - Python
Published by kbgg over 4 years ago