Skip to main content

The Hierarchical Product Post Office, developed for the Simons Observatory.

Project description

HIPPO

The HIerarchical Product Post Office

Docker Image Version

Hippo is a piece of software aimed at making FAIR (Findable, Attributable, Interoperable, and Reuseable) data access easier. Through the use of the very flexible MongoDB for true metadata storage and MinIO as a data storage backend, hippo provides metadata-driven access to reusable products.

Installing

As well as running the server in a docker container, the python package can be installed as pyhippo:

uv pip install pyhippo

This gives you access to the henry command suite.

Use-Cases

Hippo is under development for the Advanced Simons Observatory, an NSF-funded telescope project that aims to study, among other things, the Cosmic Microwave Background. Throughout the project, many pieces of data will be produced: things like images, arrays, small databases, etc. Storing and sharing these within the collaboration, and to the public, is a huge challenge; it's easy enough to put them all in a big folder somewhere, but without associated metadata you will never be able to find what you're looking for.

Enter hippo! Hippo allows you to upload data products and access them both manually and programatically through a metadata-driven interaction.

Examples

There are a number of example cases in the example directory. To lauch the development server, you should run

henry dev run

This creates an empty instance with mock authentication (see: no authentication). You can use the upload scripts in examples/{name} that upload data from the NASA LAMBDA instance.

Products can then be viewed through the web interface (served at /web from the server root), or through the use of the henry command-line tool.

Containerized Version

There is a containerized version of the application available in the repository. You can build the container with docker build .. By default, the server runs on port 44776 (HIPPO on a T9 keyboard).

To actually run HIPPO, you will need a running instance of MongoDB and an instance of an S3-compaitible storage server. HIPPO was built to be ran with MinIO. MinIO will actually provide file storage for your server, with MongoDB handling the metadata.

There are a number of important configuration variables:

  • MINIO_URL: hostname of the MINIO server as seen by the server.
  • MINIO_ACCESS: the MINIO access token (username).
  • MINIO_SECRET: the MINIO access secret (password).
  • MINIO_PRESIGN_URL: hostname of the MINIO server as seen by external clients.
  • MONGO_URI: the full URI for the mongo instance including password.
  • TITLE: the title of the HIPPO instance.
  • DESCRIPTION: the description of the HIPPO instance.
  • ADD_CORS: boolean, whether to allow unlimited CORS access. True by default (dev)
  • DEBUG: boolean, whether to run in debug mode. True by default (dev)
  • WEB: boolean, whether to serve the web UI.
  • WEB_ROOT: where the web frontend is served from (defaults to /web)
  • AUTH_SYSTEM: should be soauth in production. There are then the following soauth variables (see the soauth docs):
    • SOAUTH_SERVICE_URL: the URL from which soauth is served from.
    • SOAUTH_APP_ID: app ID
    • SOAUTH_PUBLIC_KEY: public key for decrypting tokens
    • SOAUTH_BASE_URL: base URL
    • SOAUTH_CLIENT_SECRET: the client secret

Secrets can be loaded from /run/secrets automatically, so long as they have the same file name as their environment variable.

For soauth integration, your callback URL needs to be $URL/web/callback.

Deployment Guide

To deploy, you need to set up a MongoDB server and a Minio server. This will involve:

  • Creating a MongoDB password, saved as a secret.
  • Creating a MongoDB URI with this password, saved as a secret.
  • Creating a Minio access token, saved as a secret.
  • Creating a WEB_JWT_SECRET, saved as a secret.
  • Creating the GitHub client ID and secret, saved as a secret.

Then, you can deploy your MongoDB and Minio servers. Do not forget to set up storage for their backends to ensure persistence across restarts.

Note that we provide a docker compose file in the main repository as an example. This should show you how the containers interact.

With the two backends set up, you can deploy the container. You can build it yourself, or use the hosted version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhippo-0.2.5.tar.gz (273.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhippo-0.2.5-py3-none-any.whl (292.4 kB view details)

Uploaded Python 3

File details

Details for the file pyhippo-0.2.5.tar.gz.

File metadata

  • Download URL: pyhippo-0.2.5.tar.gz
  • Upload date:
  • Size: 273.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyhippo-0.2.5.tar.gz
Algorithm Hash digest
SHA256 16b3bcdafafee39f7fdacc03a0e1d1989e0dbcd1ec4e640af31ea3af1e1ebf70
MD5 cc4e27cc52c05b4e05b3d9a4280cc475
BLAKE2b-256 4c84e33ed3bd96df8d3f139a16e2511cd65fda853b1b60bd504b6540c68b0f81

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhippo-0.2.5.tar.gz:

Publisher: pypi.yml on simonsobs/hippo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyhippo-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: pyhippo-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 292.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyhippo-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c8765f91812cb6e7178c3d2b0bbd4042d45d227a400c5f19c8feb388a99a0880
MD5 31ec1a8d5f515fb5f08a127fb5efa5b7
BLAKE2b-256 f49200dd59bff9c9c20342ff2074131bdeee2ec81937884380a65c2eb71d63e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhippo-0.2.5-py3-none-any.whl:

Publisher: pypi.yml on simonsobs/hippo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page