Web application for monitoring EM results
Project description
Web application for monitoring EM results
Launching the development server
conda create --name=emhub python=3.8
conda activate emhub
cd ~/work/development
git clone git@github.com:3dem/emhub.git
git clone git@github.com:3dem/emhub-testdata.git
cd emhub
pip install -e .
export FLASK_APP=emhub
export FLASK_ENV=development
export EMHUB_TESTDATA=~/work/development/emhub-testdata
export EMHUB_INSTANCE=~/work/development/emhub/instance
# Now launch the built-in Flask development server:
flask run
# or with gunicorn:
gunicorn --workers=2 'emhub:create_app()' --bind 0.0.0.0:8080
To initialize the db:
python -m emhub.data
Running tests
python -m unittest emhub.tests
Publishing the package to PyPI
In order to make the emhub available to install with pip install emhub, we need to:
python install twine restructuredtext-lint
cd emhub
# It might be a good idea to check the README.rst before uploading:
rst-lint README.rst
python setup.py sdist
twine upload dist/emhub-0.0.1a3.tar.gz
Creating a Docker image
A Dockerfile has been include to create Docker images.
cd emhub
docker build . -t emhub
docker run --rm -p 8080:8080 --name=emhub -v $PWD/instance:/instance
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
emhub-0.0.1b3.tar.gz
(7.4 MB
view details)
File details
Details for the file emhub-0.0.1b3.tar.gz
.
File metadata
- Download URL: emhub-0.0.1b3.tar.gz
- Upload date:
- Size: 7.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b5b4e1e6722f6624df317c5c83b777cc36ff06bf4d5f30b78e86bf96af1cd4 |
|
MD5 | d269d2f4b7ac666fa79d03d0533c9d27 |
|
BLAKE2b-256 | 2f5b7eda2f2d6c92b11b3655d9edf6105a618f5e4b4929354fadbfe93e7d693a |