{"id":30041832,"url":"https://github.com/ifrcgo/pystac-monty","last_synced_at":"2025-08-07T02:57:47.543Z","repository":{"id":266744155,"uuid":"898922944","full_name":"IFRCGo/pystac-monty","owner":"IFRCGo","description":"Montandon Extension for PySTAC","archived":false,"fork":false,"pushed_at":"2025-07-25T06:36:35.000Z","size":17384,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-25T12:07:11.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IFRCGo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-05T09:43:35.000Z","updated_at":"2025-07-25T06:36:16.000Z","dependencies_parsed_at":"2025-01-07T12:24:56.769Z","dependency_job_id":"2507d957-a5ee-4d56-9be2-421a2e1ea325","html_url":"https://github.com/IFRCGo/pystac-monty","commit_stats":null,"previous_names":["ifrcgo/pystac-monty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IFRCGo/pystac-monty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IFRCGo%2Fpystac-monty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IFRCGo%2Fpystac-monty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IFRCGo%2Fpystac-monty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IFRCGo%2Fpystac-monty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IFRCGo","download_url":"https://codeload.github.com/IFRCGo/pystac-monty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IFRCGo%2Fpystac-monty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269190266,"owners_count":24375583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-07T02:57:46.593Z","updated_at":"2025-08-07T02:57:47.526Z","avatar_url":"https://github.com/IFRCGo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Montandon Extension for PySTAC\n\nThis project provides a Python library for working with the SpatioTemporal Asset Catalog (STAC) extension for Montandon. It extends the capabilities of PySTAC to handle disaster and hazard-related data using the Montandon schema.\n\n## Features\n\n- Extend STAC Collections and Items with Montandon-specific properties.\n- Support for hazard detail objects.\n- Integration with GDACS data sources.\n- Utilities for pairing and correlation ID generation.\n\n## Installation\n\nTo install the library, use pip:\n\n```sh\npip install pystac_monty\n```\n\nTo install the tool `jq`, use the following:\n\nDebian/Ubuntu/Mint environment\n```sh\nsudo apt-get update\nsudo apt-get install jq\n```\n\nMacOS environment\n```sh\nbrew install jq\n```\n\nTo check if it is install correctly\n\n```sh\njq --version\n```\n\n## Usage\n\n## Extending a STAC Item\n\nThe library provides classes and functions to work with Montandon STAC objects. Here is an example of how to create a Montandon Item:\n\n```python\nimport pystac\nfrom pystac_monty.extension import MontyExtension\n\nitem = pystac.Item(...)  # Create or load a STAC Item\nmonty_ext = MontyExtension.ext(item)\nmonty_ext.episode_number = 1\nprint(monty_ext.episode_number)\n```\n\n### Working with GDACS data\n\nTo transform GDACS event data into STAC Items:\n\n```python\nfrom pystac_monty.sources.gdacs import GDACSTransformer, GDACSDataSource\n\ndata_source = GDACSDataSource(source_url=\"...\", data=\"...\", type=GDACSDataSourceType.EVENT)\ntransformer = GDACSTransformer(data=[data_source])\nitems = transformer.make_items()\n```\n\n## Development\n\nTo set up the development environment:\n\n```sh\npip install uv\nuv sync\n```\n\nTo run the tests:\n\n1. Make the test with actual calls to http and write them in the cassette files:\n\n```sh\nuv run pytest -v -s --record-mode rewrite\n```\n\n2. Run the tests with the recorded calls:\n\n```sh\nuv run pytest -v -s\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for more details.\n\n### Links\n\n- [Documentation](https://pystac.readthedocs.io)\n- [Repository](https://github.com/IFRCGo/monty-stac-extension)\n- [Issues](https://github.com/IFRCGo/monty-stac-extension/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifrcgo%2Fpystac-monty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifrcgo%2Fpystac-monty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifrcgo%2Fpystac-monty/lists"}