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.2.tar.gz
(19.4 kB
view details)
File details
Details for the file fs.onedatarestfs-21.2.5.2.tar.gz
.
File metadata
- Download URL: fs.onedatarestfs-21.2.5.2.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73fe673a55cec644c07d51e25da79ba420aec2732224ee29ab2ebacaf80a7d79 |
|
MD5 | 768f2dc94e267201f2e8c39cdcbbcb0c |
|
BLAKE2b-256 | 38729f572fcbaac593c05f433c6bcfa5df7eef29d2389d8ab7ec3c701754167f |