Skip to main content

Storage support for 4DN Data Portals.

Project description

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.

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 will cause publication automatically. It should not be necessary for you to manually use:

$ poetry publish

Also, 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. If you attempt to do this manually, be sure the version is set properly!

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

dcicsnovault-2.0.0b10.tar.gz (173.3 kB view details)

Uploaded Source

Built Distribution

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

dcicsnovault-2.0.0b10-py3-none-any.whl (204.6 kB view details)

Uploaded Python 3

File details

Details for the file dcicsnovault-2.0.0b10.tar.gz.

File metadata

  • Download URL: dcicsnovault-2.0.0b10.tar.gz
  • Upload date:
  • Size: 173.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.5.6 Linux/4.4.0-101-generic

File hashes

Hashes for dcicsnovault-2.0.0b10.tar.gz
Algorithm Hash digest
SHA256 b63264fd67c23081ec1eecd0a19ddeba8494a873c5f872fdc5f6da3960c11cf2
MD5 0122a684de459aabf45d6d9577b0a184
BLAKE2b-256 6375e23a8ac119c6e9b728930ca0a40de84117271f48fa1e9c7e96215bb58281

See more details on using hashes here.

File details

Details for the file dcicsnovault-2.0.0b10-py3-none-any.whl.

File metadata

  • Download URL: dcicsnovault-2.0.0b10-py3-none-any.whl
  • Upload date:
  • Size: 204.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.5.6 Linux/4.4.0-101-generic

File hashes

Hashes for dcicsnovault-2.0.0b10-py3-none-any.whl
Algorithm Hash digest
SHA256 99030e912a1fb28093a0ee3347a5a08032c0e8c40228098f53215f85a5c70fec
MD5 555a28e748f4b5e966f54462a8cdfda3
BLAKE2b-256 59182de058c5105ab91dd101bbfb15b5c828485dd54f8fdd6a8cb2e1084d670e

See more details on using hashes here.

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