Skip to main content
https://github.com/prometheusresearch/rios.core/workflows/Test/badge.svg https://readthedocs.org/projects/rioscore/badge/?version=stable https://img.shields.io/pypi/v/rios.core.svg https://img.shields.io/pypi/l/rios.core.svg

RIOS.CORE Overview

RIOS.CORE is a Python package that provides basic validation and formatting functionality for data structures that adhere to the RIOS specifications (formally known as PRISMH).

Example Usage

This package exposes a handful of simple functions for validating and formatting the standard RIOS data structures:

>>> from rios.core import validate_instrument, get_instrument_json

>>> instrument = {"foo": "bar", "id": "urn:my-instrument", "title": "An Instrument Title", "record": [{"id": "field1","type": "text"}], "version": "1.0"}
>>> validate_instrument(instrument)
Traceback (most recent call last):
    ...
colander.Invalid: {'': u'Unrecognized keys in mapping: "{\'foo\': \'bar\'}"'}

>>> del instrument['foo']
>>> validate_instrument(instrument)

>>> print get_instrument_json(instrument)
{
  "id": "urn:my-instrument",
  "version": "1.0",
  "title": "An Instrument Title",
  "record": [
    {
      "id": "field1",
      "type": "text"
    }
  ]
}

For more information on the available functionality, please read the API documentation.

Contributing

Contributions and/or fixes to this package are more than welcome. Please submit them by forking this repository and creating a Pull Request that includes your changes. We ask that you please include unit tests and any appropriate documentation updates along with your code changes.

This project will adhere to the Semantic Versioning methodology as much as possible, so when building dependent projects, please use appropriate version restrictions.

A development environment can be set up to work on this package by doing the following:

$ python -m venv rios
$ cd rios
$ . bin/activate
$ git clone git@github.com:prometheusresearch/rios.core.git
$ cd rios.core
$ pip install -e .
$ pip install -r requirements.txt
$ pytest

Metadata

Release files for rios.core 0.10.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 rios.core 0.10.0
File Size Uploaded
rios_core-0.10.0.tar.gz 72.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rios.core 0.10.0
File Interpreter ABI Platform
rios.core-0.10.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 107.1 kB

Release files / rios_core-0.10.0.tar.gz

Download URL rios_core-0.10.0.tar.gz
Size 72.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6e88d28b0a230159523ca653a81a56f99f2c25db68e88640c2b153d6adfaa81e
BLAKE2b-256 checksum
How to use checksums
876dd67dd25d8ae435637bfcdf4517458e2020200cf02db52fdf7eb421075c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / rios.core-0.10.0-py2.py3-none-any.whl

Download URL rios.core-0.10.0-py2.py3-none-any.whl
Size 34.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f024692b0ce89f1a9ee2166e56e418bd2c35fdfe0922396512639ada295446a0
BLAKE2b-256 checksum
How to use checksums
7eefbbdb22035aa9171f6b54259da32898d1f50cb992110027225ada23e612c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.0

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

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