A no-dependency Python package for STAC, using Rust under the hood.
Project description
stacrs
A no-dependency Python package for STAC, using Rust under the hood.
Usage
Install via pip:
python -m pip install stacrs
Then:
import stacrs
# Search a STAC API
items = stacrs.search(
"https://landsatlook.usgs.gov/stac-server",
collections="landsat-c2l2-sr",
intersects={"type": "Point", "coordinates": [-105.119, 40.173]},
sortby="-properties.datetime",
max_items=100,
)
# Write items to a stac-geoparquet file
stacrs.write("items.parquet", items)
# Read items from a stac-geoparquet file as an item collection
item_collection = stacrs.read("items.parquet")
# Use `search_to` for better performance if you know you'll be writing the items
# to a file
stacrs.search_to(
"items.parquet",
"https://landsatlook.usgs.gov/stac-server",
collections="landsat-c2l2-sr",
intersects={"type": "Point", "coordinates": [-105.119, 40.173]},
sortby="-properties.datetime",
max_items=100,
)
See the API documentation for details.
Comparisons
This package (intentionally) has limited functionality, as it is not intended to be a replacement for existing Python STAC packages.
pystac is a mature Python library with a significantly richer API for working with STAC objects.
For querying STAC APIs, pystac-client is more feature-rich than our simplistic stacrs.search
.
That being said, it is hoped that stacrs will be a nice complement to the existing Python STAC ecosystem by providing a no-dependency package with unique capabilities, such as searching directly into a stac-geoparquet file.
Other info
This package is part of the stac-rs monorepo, see its README for contributing and license information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for stacrs-0.2.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5a9e3b083f6a9a016796991b67fd61e22f6be71bbde25183b1dbb977447984 |
|
MD5 | 6f46e66647c99a8d047591051702af34 |
|
BLAKE2b-256 | 4e6ff8806cabd03e59b40ef80b75d91aec516c37f830a5f94dce36fe83e4de27 |
Hashes for stacrs-0.2.0-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23a007f387c9ae3d9f35f3bfd65b8f743b807a38fbe8aeb748850a772697ae35 |
|
MD5 | d69117d0cd83fa81ba5c9688005a406c |
|
BLAKE2b-256 | 37a4c4e0cf40af3aa159d7f4e9cc0d06392fce08b3cfaeaedbb2eb677ed2ffae |
Hashes for stacrs-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c3f6cdebbce37dd5e445cb71da9038d7b7758169b1be24aeb851380ae4a3c5 |
|
MD5 | 09931c1452b6965c980fb8d51d468725 |
|
BLAKE2b-256 | 55d2b2d9254df7a456161f51419f1e351c3b8391e65f691867ee0b0979d00268 |
Hashes for stacrs-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4f7195b9f35f61d4fd85474a276d674cbff83ed59e14cda1c785d2c600ee50 |
|
MD5 | 45cb1c9dbf1def1fd61fec9681f6c3f6 |
|
BLAKE2b-256 | d2515f44b81639f2526f16f1b0a76ef2e78ca191f0fe6ffaec21e22120e1fb9c |
Hashes for stacrs-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90be05f0d8242ea6c258ac9dd4ff39e93191afaedc6ae398472577474be08cc6 |
|
MD5 | c3766fc83d08cfc99b7812a0ce493db0 |
|
BLAKE2b-256 | b5df350e052526819604862875328dcec71388de5c11bdaba85bfd56deca4351 |
Hashes for stacrs-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b40a720f4e17be5962d52d712ee8d275dc1bdbce6a30108fcef012e3e13790 |
|
MD5 | 4312f7792dfa6d991c5ea41cbc670374 |
|
BLAKE2b-256 | 20d4207b6cdeede157e9ce6b1a90f1520c54dc468a813ee82e7bb5677b24e508 |
Hashes for stacrs-0.2.0-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 151de8460b7f771a9dc072f9499652ef9a659385083993ea7ae662a83d86e129 |
|
MD5 | a599b646e2db212a5b61820b6a8ec3f3 |
|
BLAKE2b-256 | d59cd86880fab65d20b43bc69ff86e7009c7f7387b90c5ee939be4038a533a1c |
Hashes for stacrs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07734fef21745bbdf5495eda1b26d63d14d956a1ebbeb75c6565936498ef4350 |
|
MD5 | f8e74b5d8fa90283a93966d4702b0d13 |
|
BLAKE2b-256 | 8fd3e224504c589ba22e1bd618b45080d57924013fc4ef8fd7fc3983ba59d2ee |
Hashes for stacrs-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9753535e0c5508ffe2aa1d11eb5438e3b84311a84fdee2ed876ac8a63dac80e |
|
MD5 | a586e4a9317f9d72ba3bbe5a9754f57c |
|
BLAKE2b-256 | 06c1e382ff4041cdc99d666c95f8418a4217a7b4dd6a18f5179b61c68b5891cc |
Hashes for stacrs-0.2.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7ca2ee2db7caee5b3b0790a761a74d605370a6475d0c2c0de06bd1b6d228aa |
|
MD5 | 936564f637c6ad9a7340db9d6990f7e4 |
|
BLAKE2b-256 | dd293256f84ccb530c681138a1baaa492de1578c731f42e12d25d0debd7b3f7f |
Hashes for stacrs-0.2.0-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4608467c3077972651bfbb8e33d136c64e58b7ffced049f279ae1a021742e7 |
|
MD5 | 23e0448d87cef9bdb8d919458c74ec55 |
|
BLAKE2b-256 | b4ad55c8f795ea6c9d9093965a8c67bf44228da311b48b86dff82643fee636aa |
Hashes for stacrs-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ba4ec12ec94cffa9821098ad4271f01be950bbb7a37911d9e13ea3c72de22e |
|
MD5 | a4515d458f936cda537d46a535980218 |
|
BLAKE2b-256 | 6b008d7b9482c927ad5fbb461aa8b8f446ffe5eb79458f6000e027452d347a8c |
Hashes for stacrs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35466da0a8eb3136d59032ed54600ab2ca4068698f61e72cefb62912b3613441 |
|
MD5 | a6e91a76bf4c21ca65fe0db6c035dd21 |
|
BLAKE2b-256 | 3ce50de8aedaf966e9b0863c4d04a6c18260f2fed58bfcd759c1f9cdaee558a1 |
Hashes for stacrs-0.2.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268c5f795e9dbf9cdc086c2cbb36ce76e3bd1bb80cb1da4d9d74e71fec6532d8 |
|
MD5 | 7f4dc87f24bf59b4f22521482b672652 |
|
BLAKE2b-256 | d37092c60983bc505dc65b77a4408c489bb7c23e0e42cba1037183c51752469a |
Hashes for stacrs-0.2.0-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ef8b176851b4ced24c5b463d3fc6ade8c7f74c111cb6b2c49b0c7edddb260e |
|
MD5 | a4aa9e9156bdf6b3fbfdf086e27d1fbe |
|
BLAKE2b-256 | 701fd70b54044a7ba84ef8ad97bdb9cd0571a533252ec3f9c2859f2fc77b5453 |
Hashes for stacrs-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8184ee2aef07df97c7ceb38168e6fdad0b623ac0ecdad4d6860b11b220bf42ba |
|
MD5 | 84420480a03e908e6fcd6c8998542ea8 |
|
BLAKE2b-256 | f5584d1593c1ae321bab2a6de44ffedcd78778aa601cc002839cefd2ec22758a |
Hashes for stacrs-0.2.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2014b474428278ab2b8c23669888d1eb5c14dec5a9f8c03a90ffaa9f15085090 |
|
MD5 | 21e80e15eba09ad3ea80bf5db04bfd33 |
|
BLAKE2b-256 | c0c64f71e006ca1719e00944910057677260e062ea12cd83e2e86e77fe4cd2ba |
Hashes for stacrs-0.2.0-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e0a6158f5e7145e832741a36cc1c620db6b5e5d1606e2a5041c0e383cff075 |
|
MD5 | e9f870683add86952f0b33175f6ed439 |
|
BLAKE2b-256 | dd2c158023e78a0cd8d6b526bfbd3ebcb65eb6ea80d1296296d255eac05d40a9 |