drfs-0.3.6.2
توضیحات
Storage-type-agnostic file access + file structure for your project
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drfs-0.3.6.2 |
| نام | drfs |
| نسخه کتابخانه | 0.3.6.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Data Revenue GmbH |
| ایمیل نویسنده | alan@datarevenue.com |
| آدرس صفحه اصلی | https://github.com/datarevenue-berlin/drfs |
| آدرس اینترنتی | https://pypi.org/project/drfs/ |
| مجوز | MIT license |
# drfs
[](https://pypi.org/project/drfs)
* Free software: MIT license
* Documentation: https://drfs.readthedocs.io
## File systems
All filesystems defined in this package should:
- accept full paths in methods like `ls` etc.
(_full_ means: including protocol and all other parts of path)
- return full paths or their lists from methods like `ls` etc.
- paths returned from methods like `ls` should be `DRPath` objects
(`DRPath` is our version of `pathlib.Path` supporting remote paths
and few other features)
Above functionalities are implemented in `FileSystemBase` class. When adding
a new filesystem, one should subclass from it and set an underlying backend
filesystem as `fs_cls` attribute (see existing implementations).
### Relation to fsspec
[fsspec](https://filesystem-spec.readthedocs.io/en/latest/?badge=latest)
is an attempt to unify interfaces of various filesystems. It also serves
as a tool that `dask` uses to support them.
drfs doesn't agree with fsspec in (at least) one assumption: in fsspec
methods like `ls` return paths without protocol. That's why we can't use
classes that adhere to fsspec directly.
However, such classes can (and should) be used as backends for filesystems
defined here in drfs. This way we ensure that paths handled by drfs can
also be handled by `dask` (because importing a backend filesystem that adheres
to fsspec makes it available for Dask).
>For example, `drfs.filesystems.s3.S3Filesystem`
>uses `s3fs.S3FileSystem` as backend which adheres to fsspec.
## Features
* TODO
نیازمندی
| مقدار | نام |
|---|---|
| - | pytz |
| ==1.1.* | urlpath |
| >=0.8.0 | fsspec |
| >=1.0.0 | confuse |
نحوه نصب
نصب پکیج whl drfs-0.3.6.2:
pip install drfs-0.3.6.2.whl
نصب پکیج tar.gz drfs-0.3.6.2:
pip install drfs-0.3.6.2.tar.gz