{"id":21614806,"url":"https://github.com/eea/clms-stac","last_synced_at":"2025-04-11T06:53:26.127Z","repository":{"id":211254848,"uuid":"721216891","full_name":"eea/clms-stac","owner":"eea","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-23T17:13:24.000Z","size":394,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-11T17:23:54.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eea.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-20T15:41:21.000Z","updated_at":"2024-07-31T10:28:07.248Z","dependencies_parsed_at":"2023-12-11T09:25:33.921Z","dependency_job_id":"0bc432e5-1dbe-4483-b52b-c29e19da9ba0","html_url":"https://github.com/eea/clms-stac","commit_stats":null,"previous_names":["eea/clms-stac"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fclms-stac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fclms-stac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fclms-stac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fclms-stac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eea","download_url":"https://codeload.github.com/eea/clms-stac/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358555,"owners_count":21090402,"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","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":"2024-11-24T22:09:24.323Z","updated_at":"2025-04-11T06:53:26.104Z","avatar_url":"https://github.com/eea.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Structure\n\nThis project contains 4 parts including `/stacs`, `/schema`, `/tests`.\n\nIn the /stacs directory there are stac item and stac collection samples of a list of [Copernicus Land Monitoring Service products](https://git.sinergise.com/sh-vas/sh-vas/-/issues/1603) (CLMS products) and a stac catalog sample.\n\nThe /schema directory contains [JSON scehma](https://json-schema.org/) for validating STAC items and collections of CLMS products. Each CLMS product is paired with a shema which defines the schema of the item and the collection.\n\nThe /tests directory contains tests to validate STAC items, collections, and catalogs against the core STAC specification, the extensions, and the corresponding product schemas.\n\n\u003cpre\u003e\nclms-stac/\n│\n├── .gitignore                    # Gitignore file to specify ignored files and directories\n├── .github/workflows             # GitHub CI actions\n├── .pre-commit-config.yaml        # Basic pre-commit config file\n├── pyproject.toml                # TOML configuration file often used for tool settings and project metadata\n├── README.md                     # Project README with an overview, setup, and usage instructions\n├── requirements.txt              # File listing project dependencies\n├── requirements-dev.txt          # File listing project dependencies for development\n├── schema/                       # Directory for product schemas\n├── tests/                        # Directory for tests\n└── stacs/                        # Directory for STAC samples\n\u003c/pre\u003e\n\n# Setting Up a Virtual Environment and Running Pre-commit Hooks\n\n## Step 1: Create and Activate a Virtual Environment\n\nTo isolate your project's dependencies, create and activate a virtual environment using Python's built-in `venv`:\n\n```bash\n# Create a virtual environment named \"env\"\npython3 -m venv env\n\n# Activate the virtual environment\n#For Linux/MacOs\nsource env/bin/activate\n\n# For Windows\n.\\env\\Scripts\\activate\n\n```\n\n## Step 2: Install requirements\n\nNext, install requirements and requirements-dev.\n\n```bash\n# Ensure you are inside the activated virtual environment\n# Install requirements using pip\npip install -r requirements-dev.txt -r requirements.txt\n```\n\n## Step 3: Install the Hooks\n\nInstall the pre-commit hooks defined in your configuration:\n\n```bash\npre-commit install\n```\n\n## Step 4: Run the Hooks\n\nThe pre-commit hooks will now run automatically when you attempt to commit changes. To run the hooks manually, use the following command:\n\n```bash\npre-commit run --all-files\n```\n\nThis will execute the configured hooks on all files in the repository.\n\nNow, whenever you attempt to commit changes, the hooks will be triggered, ensuring consistent formatting and code quality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Fclms-stac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feea%2Fclms-stac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Fclms-stac/lists"}