Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DCIC Snovault

Build status

Overview

DCIC Snovault is a JSON-LD Database Framework that serves as the backend for the 4DN Data portal and CGAP. Check out our full documentation here.

Installation in 4DN components

DCIC Snovault is pip installable as the dcicsnovault package with:

$ pip install dcicsnovault``

However, at the present time, the functionality it provides might only be useful in conjunction with other 4DN-DCIC components.

NOTE: If you’d like to enable Elasticsearch mapping with type=nested, set the environment variable “MAPPINGS_USE_NESTED” or set the registry setting “mappings.use_nested”.

Installation for Development

Currently these are for Mac OSX using homebrew. If using linux, install dependencies with a different package manager.

Step 0: Install Xcode

Install Xcode (from App Store) and homebrew: http://brew.sh

Step 1: Verify Homebrew Itself

Verify that homebrew is working properly:

$ brew doctor

Step 2: Install Homebrewed Dependencies

Install or update dependencies:

$ brew install libevent libmagic libxml2 libxslt openssl postgresql graphviz python3
$ brew install freetype libjpeg libtiff littlecms webp  # Required by Pillow
$ brew cask install adoptopenjdk8
$ brew install elasticsearch@5.6

NOTES:

  • If installation of adtopopenjdk8 fails due to an ambiguity, it should work to do this instead:

    $ brew cask install homebrew/cask-versions/adoptopenjdk8
  • If you try to invoke elasticsearch and it is not found, you may need to link the brew-installed elasticsearch:

    $ brew link --force elasticsearch@5.6
  • If you need to update dependencies:

    $ brew update
    $ rm -rf encoded/eggs
  • If you need to upgrade brew-installed packages that don’t have pinned versions, you can use the following. However, take care because there is no command to directly undo this effect:

    $ brew update
    $ brew upgrade
    $ rm -rf encoded/eggs

Step 3: Running Poetry

To locally install using versions of Python libraries that have worked before, use this:

$ poetry install

Updating dependencies

To update the version dependencies, use:

$ poetry update

This command also takes space-separated names of specific packages to update. For more information, do:

$ poetry help update

Managing poetry.lock after update

There may be situations where you do this with no intent to check in the resulting updates, but once you have checked that the updates are sound, you may wish to check the resulting poetry.lock file.

Publishing

Normally, a successful build on a tagged branch (including a branch tagged as a beta) will cause publication automatically. The process begins by obtaining the version. You might do

$ head pyproject.toml

to see the first few lines of pyproject.toml, which will contain a line like version = 100.200.300, which is the snovault version. You should prepend the letter v to that version, and create the tag and push it to the GitHub server:

$ git tag v100.200.300 $ git push origin v100.200.300

Please do NOT use some other syntax for git push that pushes all of your tags. That might pick up tags that do not belong on the server and can generally cause tag pollution. Push specifically the tag you intend to publish.

Pushing such a tag should trigger publication automatically within a few minutes.

Manual Publication

There might be rare occasions where you need to do the publication manually, but normally it is not necessary or desirable. In most cases, it will either fail or will cause the automatic publication step to fail. The main case where this is known to be needed is where publication has failed on a tagged branch for reasons other than the fact of that tag being already published (e.g., a network interruption or a premature shutdown of the GitHub Actions task). An incomplete publication on GitHub Actions cannot be easily retried, so only in that case you may need to do:

$ make publish

However, to do this command locally, you would need appropriate credentials on PyPi for such publication to succeed. As presently configured, these credentials need to be in the environment variables PYPI_USER and PYPI_PASSWORD. The script that runs if you manually attempt make publish checks that you have properly declared credentials before it attempts to publish. Note that GitHub Actions is already configured with credentials, so you do not need to worry about them if you just push a tag and let the pre-defined action do the publication.

Running tests

To run specific tests locally:

$ bin/test -k test_name

To run with a debugger:

$ bin/test --pdb

Specific tests to run locally for schema changes:

$ bin/test -k test_load_workbook

Run the Pyramid tests with:

$ bin/test

Metadata

Release files for dcicsnovault 11.36.2.0b1

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

Source distribution (sdist)

Source distribution for dcicsnovault 11.36.2.0b1
File Size Uploaded Provenance Actions
dcicsnovault-11.36.2.0b1.tar.gz 491.1 kB Without provenance Details for dcicsnovault-11.36.2.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dcicsnovault 11.36.2.0b1
File Interpreter ABI Platform Actions
dcicsnovault-11.36.2.0b1-py3-none-any.whl Python 3 none any Details for dcicsnovault-11.36.2.0b1-py3-none-any.whl

Total release size: 1.1 MB

Release files / dcicsnovault-11.36.2.0b1.tar.gz

Download URL dcicsnovault-11.36.2.0b1.tar.gz
Size 491.1 kB
Tags Source
SHA-256 checksum
How to use checksums
62cbf18acf4b8111bc1fa623a66cc27b83b33d28408549e471249fbc6588f2dc
BLAKE2b-256 checksum
How to use checksums
01bb5e871744e28390bfd1de71cee461349549fec3473e8f75885fd10987fd5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.25 Linux/6.8.0-1064-azure

Release files / dcicsnovault-11.36.2.0b1-py3-none-any.whl

Download URL dcicsnovault-11.36.2.0b1-py3-none-any.whl
Size 578.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa5061827ba6c5c951566267960173a93fb564eeeffce33a9429dc3a82b67feb
BLAKE2b-256 checksum
How to use checksums
bb1ca2f6dc55dffd9c7fb5e4f2b79c25af69b06e30adec9509d58ff38891c5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.25 Linux/6.8.0-1064-azure

Security for dcicsnovault 11.36.2.0b1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release
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