Onedata REST-based filesystem for PyFilesystem
Project description
OnedataRESTFS
OnedataRESTFS is a PyFilesystem interface to Onedata virtual file system based on [Onedata REST API].
As a PyFilesystem concrete class, OnedataRESTFS allows you to work with Onedata in the same way as any other supported filesystem.
Installing
You can install OnedataRESTFS from pip as follows:
pip install fs.onedatarestfs
Opening a OnedataRESTFS
Open an OnedataRESTFS by explicitly using the constructor:
from fs.onedatarestfs import OnedataRESTFS
onedata_onezone_host = "..."
onedata_access_token = "..."
odfs = OnedataRESTFS(onedata_onezone_host, onedata_access_token)
Or with a FS URL:
from fs import open_fs
odfs = open_fs('onedatarestfs://HOST?token=...')
Building and running tests
virtualenv -p /usr/bin/python3 venv
. venv/bin/activate
# Install tox
pip install coverage tox
# Run flake8 check
tox -c tox.ini -e flake8
# Run mypy typing check
tox -c tox.ini -e mypy
# Run PyFilesystem test suite
tox -c tox.ini -e fstest
Documentation
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
fs.onedatarestfs-21.2.5.1.tar.gz
(17.7 kB
view hashes)
Close
Hashes for fs.onedatarestfs-21.2.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f5929330ab0da6630e455e6973b53032ca77306e70e94d77cedb03e58ed7631 |
|
MD5 | b6b8737d76284fc017c7743fb05c2e40 |
|
BLAKE2b-256 | 4130376f6ed61f92987f9d993ef1570ec9e12997ed48d1f08cf6fe2ccdf61dbe |