Skip to main content

GitHub release; latest by date GitHub Release Date Test Status Documentation Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks

Introduction

pds4indextools is a set of programs and modules for parsing PDS4 XML labels. They were created and are maintained by the Ring-Moon Systems Node of NASA's Planetary Data System (PDS).

The following tools are currently available:

  • pds4_create_xml_index: A command-line program to scrape all metadata information from a series of PDS4 XML labels, usually in a single collection, and generate a summary index file. Such summary index files may be optionally provided as part of a PDS4 delivery by a data provider, or may be created by end users to aid in their searching and processing of PDS4 data products.
  • pds4_create_collection_product: A command-line program to create a collection product from a collection of PDS4 XML labels. Collection products are a required part of PDS4 collections and are created by data providers.

Installation

pds4indextools is available via the rms-pds4indextools package on PyPI and can be installed with:

pip install rms-pds4indextools

Note that this will install pds4indextools into your current system Python, or into your currently activated virtual environment (venv), if any.

If you already have the rms-pds4indextools package installed but wish to upgrade to a more recent version, you can use:

pip install --upgrade rms-pds4indextools

You may also install the index tools using pipx, which will isolate the installation from your system Python without requiring the creation of a virtual environment. To install pipx, please see the installation instructions. Once pipx is available, you may install pds4indextools with:

pipx install rms-pds4indextools

If you already have the rms-pds4indextools package installed with pipx, you may upgrade to a more recent version with:

pipx upgrade rms-pds4indextools

Getting Started With pds4_create_xml_index

Once pds4indextools has been installed, you may access the pds4_create_xml_index program directly from the command line.

The simplest use scrapes all metadata from all XML labels in a collection and generates an index file:

pds4_create_xml_index <collection_dir> "**/*.xml"

Many options are available to customize the scraping and generation process, including limiting which XML elements are scraped, changing the format of the resulting index file, and generating a PDS4-compliant label. A summary of available options is available by typing:

pds4_create_xml_index --help

Complete documentation is available here

Getting Started With pds4_create_collection_product

Once pds4indextools has been installed, you may access the pds4_create_collection_product program directly from the command line.

The simplest use scrapes all XML labels from a collection and generates a collection product:

pds4_create_collection_product <collection_dir> --bundle bundle_name --collection collection_name

This will generate a collection product called collection_<collection_name>.csv in the given collection directory. Full instructions on usage can be found here:

pds4_create_collection_product --help

Complete documentation is available here

Contributing

Information on contributing to this package can be found in the Contributing Guide.

Links

Licensing

This code is licensed under the Apache License v2.0.

Metadata

Release files for rms-pds4indextools 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rms-pds4indextools 1.4.0
File Size Uploaded
rms_pds4indextools-1.4.0.tar.gz 84.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rms-pds4indextools 1.4.0
File Interpreter ABI Platform
rms_pds4indextools-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 116.4 kB

Release files / rms_pds4indextools-1.4.0.tar.gz

Download URL rms_pds4indextools-1.4.0.tar.gz
Size 84.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e3fa671b9faab09339567d72cfbe844b64574ac0e1c42d911dd7d1086d617212
BLAKE2b-256 checksum
How to use checksums
46fa398a28595abdc723b451d60d0a39a01bd22cb38345b4975c0218f1100ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / rms_pds4indextools-1.4.0-py3-none-any.whl

Download URL rms_pds4indextools-1.4.0-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
004036eaba82cde9fb03065ef84aa4ee2ee207c199a90221f0987bd626e952f5
BLAKE2b-256 checksum
How to use checksums
5ce808d070a1ac3937040e086dd84f8dc8bb2b25d7cf554f325f12130759b81d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page