The following code snippet does not work. It is run against an internal test file and requires credentials to execute.
import json
from h5coro import h5coro, s3driver
url = "sliderule/data/test/ATL24_20220826125316_10021606_006_01_001_01.h5"
credentials = {"profile":"default"}
h5obj = h5coro.H5Coro(url, s3driver.S3Driver, errorChecking=True, verbose=False, credentials=credentials, multiProcess=True)
datasets = ['metadata/sliderule', 'metadata/profile', 'metadata/stats']
promise = h5obj.readDatasets(datasets, block=True, enableAttributes=False)
print(promise["metadata/sliderule"])
print(promise["metadata/profile"])
print(promise["metadata/stats"])
#
# The following lines do not work because the metadata
# variables are not being correctly read as strings
#
#print({
# "sliderule": json.loads(promise["metadata/sliderule"]),
# "profile": json.loads(promise["metadata/profile"]),
# "stats": json.loads(promise["metadata/stats"])
#})