RCSB File Access Service Application
Project description
py-rcsb_app_file
File Access Service Application
Installation
Download the library source software from the project repository:
git clone --recurse-submodules https://github.com/rcsb/py-rcsb_app_file.git
Optionally, run test suite (Python 3.9) using setuptools or tox:
python setup.py test
or simply run
tox
Installation is via the program pip.
pip install rcsb.app.file
or from the local repository directory:
pip install .
Deployment on Local Server
Build Docker Container
In directory that contains Dockerfile.stage
:
docker build --build-arg USER_ID=<user_id> --build-arg GROUP_ID=<group_id> -t fileapp -f Dockerfile.stage .
Run docker container
docker run --rm --name fileapp -p 80:8000 fileapp
-d
runs container in the background, allowing user to
–-rm
removes the container after it is stopped
–-name
allows user to choose a name for the container
-p
allows user to choose a port, 80:8000 is used in this case, as the port 8000 is exposed in the current dockerfile
Test upload and download using testClientScript.py
Edit url variables to match server url in testClientScript.py
python3 testClientScript.py
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
File details
Details for the file rcsb.app.file-0.12.tar.gz
.
File metadata
- Download URL: rcsb.app.file-0.12.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f66d749e5a7085cdf51a6713c630ef79d7349a0f499aa895fb118d4d5f41fb |
|
MD5 | 57867ead707c4c5914753ac764912bfe |
|
BLAKE2b-256 | c805a518d491a6ab813822d8a71142c576015925f909d6c8c4608059c47bf42f |