rashid
rashid checks whether a Portolan catalog follows the specification.
Give it a catalog directory, its root catalog.json, or the URL of a published catalog. rashid checks the metadata, structure, asset bytes, and hosting. It reports each problem with a stable rule ID.
The name comes from the Arabic root ر ش د. Its participles رَاشِدٌ and رَشِيدٌ mean "taking, or following, a right way or course or direction".
Install
Install rashid for the full command, including asset byte validation:
uv tool install rashid
For a light installation, install rashid-core without the geospatial libraries:
pip install rashid-core
python -m rashid_core check --no-data path/to/catalog
rashid-core provides the Python library and module entry point. Only rashid installs the rashid console command.
Core still checks checksums, sizes, file signatures, and Zarr metadata by default.
It reports PTL-DAT-000 when geospatial checks cannot run.
Install rashid-core[data] to add geospatial validation, or install rashid for the full tool.
Both distributions require Python 3.11 or later.
Upgrade from 0.4
| Before | After |
|---|---|
from rashid import validate |
from rashid_core import validate |
rashid.api and internal modules such as rashid.catalog |
rashid_core.api |
rashid as a library dependency |
rashid-core, or rashid-core[data] for the data checks |
logging.getLogger("rashid") |
logging.getLogger("rashid_core") |
Check a Catalog
rashid check path/to/catalog
Exit code 0 means the catalog breaks no MUST requirement. Exit code 1 means it breaks at least one.
By default, rashid checks:
- Portolan metadata requirements.
- STAC 1.1.0 core structure with schemas included in the package.
- Local and remote asset bytes against their metadata and format rules.
Use --no-data when you only need a metadata and structure result. Use --data-scope local to keep byte checks inside the catalog directory.
rashid check path/to/catalog --data-scope local
Check a published catalog
Give rashid check the URL of the root catalog.json, or of the directory that holds it.
rashid check https://data.example.org/my-catalog/catalog.json
rashid fetches the root catalog and follows its child, item, and JSON alternate links. It fetches AGENTS.md and README.md beside each catalog and collection. It then runs the same passes as for a directory. The URL is the publish base, so the hosting checks run by default: HTTP range support on COG, Parquet, PMTiles, and COPC assets, CORS on every host, and one HEAD for each link target that the crawl did not fetch. A child or item link that answers 404 on the host is a PTL-LIV-006 error. A root self link that points to a different location is a PTL-LIV-007 warning.
A crawl reads only the documents that links point to. rashid reports this limit once as PTL-GEN-002. The checks that depend on a full directory listing do not run: PTL-LNK-002, for an object without an inbound link, and PTL-COL-005, for scene files beside a collection. Sync the tree to disk and check the directory for the full view.
Use --live to run the hosting checks on a directory. rashid reads the publish base from the root catalog's absolute self link. When the root has no self link, pass --live-base-url.
rashid check path/to/catalog --live
rashid check path/to/catalog --live --live-base-url https://data.example.org/my-catalog/
Use --json for a machine-readable report.
Read the Report
Each finding contains a rule ID, severity, message, and file path. MUST requirements produce errors, and SHOULD requirements produce warnings.
A catalog can produce thousands of similar findings. After 50 findings, rashid groups results by rule and shows representative examples.
Use --all to list every finding. Use --summary to group any report by rule. JSON output always contains the complete findings array and a summary.by_rule object.
Choose Additional Checks
rashid provides six separate validation passes:
- Metadata checks Portolan requirements in catalog JSON.
- Structural checks STAC 1.1.0 core structure offline.
- Extension checks each object against the schemas of the STAC extensions it declares, offline.
- Schema checks each object against the packaged Portolan profile schema.
- Data reads asset bytes and verifies checksums, sizes, formats, and extents.
- Live hosting checks HTTP range support and CORS on the publisher's servers.
Metadata, structural, extension, and data checks run by default. The live hosting pass also runs by default for a catalog URL. Use --schema as a cross-check against the published profile schema. Use --live to run the hosting checks on a directory.
To validate a draft profile before its release, use --schema-map URI=PATH with --schema:
rashid check path/to/catalog --schema \
--schema-map https://schemas.portolan-sdi.org/portolan/v0.3.0/schema.json=path/to/schema.json
The URI must match the profile URI in the root catalog and must not contain =. The local JSON object overrides bundled and fetched schemas for that run. Repeat --schema-map for more URIs. Each later mapping for a URI replaces its earlier mapping. A malformed mapping, unreadable file, or invalid JSON produces a usage error. --schema-map also requires --schema. Each unused URI produces a PTL-SCH-002 warning with the selected and declared profile URIs.
The extension pass uses the versions that the profile's extension registry pins. rashid packages those schemas, so a catalog at the pinned versions needs no network. A catalog that declares an older version of a registered extension is checked against that version's schema, which rashid fetches over https. rashid reports an extension outside the registry as an info finding rather than validating it. Use --schema-allow-network to fetch and check such a schema.
If a pass cannot run, rashid reports a warning. It does not treat the skipped pass as successful.
For transfer details and every rule ID, see the rule reference.
Use rashid from Python
from rashid_core import ValidationOptions, validate
report = validate("path/to/catalog")
published = validate("https://data.example.org/my-catalog/catalog.json")
for finding in report.errors:
print(finding.message)
validate() uses the same default passes as the command-line interface. Pass settings through the frozen, keyword-only ValidationOptions dataclass. Use validate(path, options=ValidationOptions(schema=True)) to enable the profile schema pass. For a URL, live is on unless the options set live=False. Set extensions=False to skip the extension pass.
Use RulesConfig to disable rules or change their severity.
from rashid_core import RulesConfig, Severity, ValidationOptions, validate
config = RulesConfig(
disabled=frozenset({"PTL-VIZ-004"}),
severity_overrides={"PTL-TTL-002": Severity.ERROR},
)
report = validate("path/to/catalog", options=ValidationOptions(config=config))
The public rashid_core.api module also provides helpers for tools that repair catalogs. Names from this module remain available across 0.x releases. Other internal modules can change in a patch release.
Documentation
- Rule reference describes every validation pass, rule group, and degraded-pass code.
- Contributing guide explains how to propose a change to a Portolan project.
- Development guide covers setup, tests, repository checks, profiling, and logs.
- Portolan specification defines the requirements that rashid implements.
License
rashid is available under the Apache License 2.0.
Metadata
Release files for rashid-core 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rashid_core-0.5.0.tar.gz | 962.0 kB | With provenance | Details for rashid_core-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rashid_core-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for rashid_core-0.5.0-py3-none-any.whl |
Total release size: 1.3 MB
Release files / rashid_core-0.5.0.tar.gz
| Download URL | rashid_core-0.5.0.tar.gz |
|---|---|
| Size | 962.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86bc23ec460c1c4585e7eb2aa8c6c0f013aebb4ca6e4efb76ed480aa4bc06679
|
|
BLAKE2b-256 checksum How to use checksums |
42003c9b6116d245b488e78d60f36897bf7fdd012fb819fa3f750c466e55b64a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / rashid_core-0.5.0-py3-none-any.whl
| Download URL | rashid_core-0.5.0-py3-none-any.whl |
|---|---|
| Size | 308.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2031db8ce343459e969d0027a38874622d4b7ea792e03adf75c1fe11d5eca643
|
|
BLAKE2b-256 checksum How to use checksums |
a175d390f8123e7d688e3489c7d88b31d25ce78ffef76086084187b9fc0d36d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for rashid-core 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rashid_core-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.