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.14.tar.gz
.
File metadata
- Download URL: rcsb.app.file-0.14.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396f1256161839bde025a085a3adb76d5896143821d08c317c14a3d3526b7d3d |
|
MD5 | 60be4d0c1405fff854e7ad1ff68d5dc1 |
|
BLAKE2b-256 | 785f45845add3bc24dfaf61e5592a51a5c3dcec535201a6ed34c7058947bb39f |