Skip to main content

A python package and CLI tool for generating STAC catalog from spatial data files

Project description

stac-generator

Install Package

pip install pystac_generator

Note: stac-generator name is already used by someone else.

Run as CLI

stac_generator --help

Run as python package

from stac_generator.generator_factor import StacGeneratorFactory

Run the current example

Note that you will need to either clone the repository or download the example directory in the repository

To run the example as CLI

stac_generator csv example/csv/source_config.csv --id point_data --to_local generated

To run the example as python module: see the notebook

Install pdm and all packages

make install

Adding a new dependency

pdm add <package>

Adding a new dependency under a dependency group:

pdm add -dG <group> <package>

Remove a dependency

pdm remove <package>

Serve docs locally

make docs

Fixing CI

Run the linter. This runs all methods in pre-commit - i.e. checking for exports, format the code, etc, followed by mypy. This has a one to one correspondence with validate-ci

make lint

Run tests. This runs all tests using pytest. This has a one to one correspondence with test-ci

make test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystac_generator-0.1.11.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

pystac_generator-0.1.11-py3-none-any.whl (22.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page