stac-collection-search


Namestac-collection-search JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummarySTAC Collection Search helper utility
upload_time2023-10-24 13:31:18
maintainer
docs_urlNone
authorIvica Matic
requires_python
license
keywords python azure stac fastapi eo earth observation spatial search collection
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# STAC Collection Search
Quick utility which enables you to search for STAC collections with a given bbox and datetime extent.

## How to use

``` python
  import requests
  import datetime
  import shapely
  from stac_collection_search import search_collections

  url ="https://planetarycomputer.microsoft.com/api/stac/v1/collections"
  headers = {
    "Content-Type": "application/geo+json",
  }
  response = requests.get(url, headers=headers)
  collection_list_json_dict = response.json()
  temporal_extent_start = datetime.datetime(2019, 1, 1)
  temporal_extent_end = datetime.datetime(2021, 1, 1)
  spatial_extent = shapely.geometry.box(50, 0, 51, 1)
  collection_list = search_collections(collection_list_json_dict, spatial_extent=spatial_extent,
                                      temporal_extent_start=temporal_extent_start,
                                      temporal_extent_end=temporal_extent_end)
  print(collection_list, len(collection_list)) """ -> ['3dep-seamless', 'sentinel-1-rtc', '...'], 66 """

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "stac-collection-search",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,azure,stac,fastapi,eo,earth observation,spatial,search,collection",
    "author": "Ivica Matic",
    "author_email": "<ivica.matic@spatialdays.com>",
    "download_url": "https://files.pythonhosted.org/packages/e8/78/8e05063bc098124c891cbd2f5a4ac9a7e5a182af05257d7a1dce0facbac1/stac_collection_search-0.1.1.tar.gz",
    "platform": null,
    "description": "\n# STAC Collection Search\nQuick utility which enables you to search for STAC collections with a given bbox and datetime extent.\n\n## How to use\n\n``` python\n  import requests\n  import datetime\n  import shapely\n  from stac_collection_search import search_collections\n\n  url =\"https://planetarycomputer.microsoft.com/api/stac/v1/collections\"\n  headers = {\n    \"Content-Type\": \"application/geo+json\",\n  }\n  response = requests.get(url, headers=headers)\n  collection_list_json_dict = response.json()\n  temporal_extent_start = datetime.datetime(2019, 1, 1)\n  temporal_extent_end = datetime.datetime(2021, 1, 1)\n  spatial_extent = shapely.geometry.box(50, 0, 51, 1)\n  collection_list = search_collections(collection_list_json_dict, spatial_extent=spatial_extent,\n                                      temporal_extent_start=temporal_extent_start,\n                                      temporal_extent_end=temporal_extent_end)\n  print(collection_list, len(collection_list)) \"\"\" -> ['3dep-seamless', 'sentinel-1-rtc', '...'], 66 \"\"\"\n\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "STAC Collection Search helper utility",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        "azure",
        "stac",
        "fastapi",
        "eo",
        "earth observation",
        "spatial",
        "search",
        "collection"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad234b0bf07dc5552f455b1f299c1a9694a806439d72e1abeeedf9413f07299e",
                "md5": "ae3db4f50c44b89bca714bc14c9c83dd",
                "sha256": "8dc15da0af2fe44b9e14c12e3f2f6152b1f2011fb97f4a5260137473633ba93b"
            },
            "downloads": -1,
            "filename": "stac_collection_search-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ae3db4f50c44b89bca714bc14c9c83dd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4392,
            "upload_time": "2023-10-24T13:31:17",
            "upload_time_iso_8601": "2023-10-24T13:31:17.874267Z",
            "url": "https://files.pythonhosted.org/packages/ad/23/4b0bf07dc5552f455b1f299c1a9694a806439d72e1abeeedf9413f07299e/stac_collection_search-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8788e05063bc098124c891cbd2f5a4ac9a7e5a182af05257d7a1dce0facbac1",
                "md5": "5cdac6e6990948ebd2ce0150156236be",
                "sha256": "960651f5bc6d8f429bb5ade3ad9e596a45bd24484f0ccec688ef1236afd44b46"
            },
            "downloads": -1,
            "filename": "stac_collection_search-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5cdac6e6990948ebd2ce0150156236be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3992,
            "upload_time": "2023-10-24T13:31:18",
            "upload_time_iso_8601": "2023-10-24T13:31:18.842023Z",
            "url": "https://files.pythonhosted.org/packages/e8/78/8e05063bc098124c891cbd2f5a4ac9a7e5a182af05257d7a1dce0facbac1/stac_collection_search-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-24 13:31:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "stac-collection-search"
}
        
Elapsed time: 0.52466s