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

Run as CLI

stac_generator --help

Run as python package

from stac_generator.generator_factor import StacGeneratorFactory

Run the current example as a Python module

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

To run the example as python module: see the notebook

Run the current example as a CLI

When the source file is on local host:

See the config file. Note how the location points to a file on local host.

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

When the source file is hosted and accessible via http(s) (AWS S3, Nectr Object Storage):

See the config file. Note how the location points to a remote file.

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

When the config file is hosted and accessible via http(s) (AWS S3, Nectr Object Storage):

So far, the config files are stored locally. It is possible to have the config file hosted somewhere.

stac_generator csv https://object-store.rc.nectar.org.au/v1/AUTH_9f063fd4ed28439487e49cddfb56d02d/Test_Data_Container/csv/remote_config.csv --to_local example/csv/generated --id point_data

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.12.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

pystac_generator-0.1.12-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file pystac_generator-0.1.12.tar.gz.

File metadata

  • Download URL: pystac_generator-0.1.12.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.7

File hashes

Hashes for pystac_generator-0.1.12.tar.gz
Algorithm Hash digest
SHA256 a61b5be39ec0f2c4f143437e51e9026820fc906c2840079c71dde705f243f53d
MD5 c29ed7951770e3e7445302d9e7c761b6
BLAKE2b-256 68c5f4e943234f53218bb4ed32e1fbe0d2131f1cba7ee69b7d6961235abaf323

See more details on using hashes here.

File details

Details for the file pystac_generator-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for pystac_generator-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9d75e7fcdd67c9d3fb30b6d4eda91fc74f75b6c52f1d67becd84b0493bac4ae1
MD5 7c6f43cd7dddbec2bb7a4db5cf43841d
BLAKE2b-256 d2fcb7d3d42c16564adbe025984d804f7829e3f3588f910dc1fcb0c8420f4313

See more details on using hashes here.

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