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.5rc1.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for fs.onedatarestfs-21.2.5rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ff86f86680032e681b7e5787c12afc2fb69bbbc641cab08aa418420d7cfeaa |
|
MD5 | 9a50038e1cd50739ba71567bdc9616e0 |
|
BLAKE2b-256 | a578be00a20b38d47c628a7a87ff4cb3c955141ec14f150442a324981bfc67cc |
Close
Hashes for fs.onedatarestfs-21.2.5rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe54a02085864f170ff1f95c7963f261d2ac368671b05743cf030853f1f054bc |
|
MD5 | 4294badcb890b51dfed33af1d350f64c |
|
BLAKE2b-256 | a18f73463a4785803e9635a65dc8d62d3adfaf00117588cedf66dc15905891f9 |