Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ __pycache__/
.py[cod]
/build
/dist
.venv
/media/*
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ httpfs](https://github.com/danielrozenberg/httpfs).
```
umount /my/mount/dir
```


## Local development

```
git clone https://github.com/higlass/simple-httpfs.git
cd simple-httpfs
pip install .
# To run the test script
bash test.sh
```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
license="MIT",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
install_requires=["boto3", "diskcache", "fusepy", "requests", "slugid", "tenacity"],
install_requires=["boto3", "diskcache", "fusepy", "requests", "slugid", "tenacity", "numpy"],
version="0.4.12",
)
27 changes: 15 additions & 12 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
DIR=x11
umount /tmp/$DIR/https
python simple_httpfs/simple-httpfs.py /tmp/$DIR/https

cat /tmp/${DIR}/https/s3.amazonaws.com/pkerp/public/tiny.txt..
# This is the directory where the filesystem will be mounted
DIR=media

umount $DIR/https
python simple_httpfs/simple-httpfs.py $DIR/https
# Create the folder if it doesn't exist
if [ ! -d "$DIR" ]; then
mkdir "$DIR"
fi

cat $DIR/https/s3.amazonaws.com/pkerp/public/tiny.txt..
if [ ! -d "$DIR/https" ]; then
mkdir "$DIR/https"
fi

umount /tmp/$DIR/https
# Unmount and mount the filesystem
umount $DIR/https
simple-httpfs $DIR/https --schema https

python simple_httpfs/simple-httpfs.py $DIR/http

head $DIR/http/hgdownload.cse.ucsc.edu/goldenpath/hg19/encodeDCC/wgEncodeSydhTfbs/wgEncodeSydhTfbsGm12878InputStdSig.bigWig..
# This is a lorem ipsum text. It is used to test the filesystem
cat $DIR/https/s3.amazonaws.com/pkerp/public/tiny.txt..

umount $DIR/http
# Unmount the filesystem since we are done
umount $DIR/https