cognite-cdffs-0.2.1
توضیحات
File System Interface for CDF Files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cognite-cdffs-0.2.1 |
| نام | cognite-cdffs |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Infant Alex |
| ایمیل نویسنده | infant.alex@cognite.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cognite-cdffs/ |
| مجوز | Apache-2.0 |
<a href="https://cognite.com/">
<img alt="Cognite" src="https://raw.githubusercontent.com/cognitedata/cognite-python-docs/master/img/cognite_logo_black.png" alt="Cognite logo" title="Cognite" align="right" height="80">
</a>
[](https://github.com/cognitedata/cdffs/blob/main/LICENSE)
[](https://cdffs.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/ambv/black)
[](https://codecov.io/gh/cognitedata/cdffs)

# cdffs
A file system interface (`cdffs`) to allow users to work with CDF Files using the [fsspec](https://filesystem-spec.readthedocs.io/en/latest/) supported/compatible python packages (`pandas`, `xarray` etc).
`fsspec` provides an abstract file system interface to work with local/cloud storages and based on the protocol name (example, `s3` or `abfs`) provided in the path, `fsspec` translates the incoming requests to storage specific implementations and send the responses back to the upstream package to work with the desired data.
Refer [fsspec documentation](https://filesystem-spec.readthedocs.io/en/latest/#who-uses-fsspec) to get the list of all supported/compatible python packages.
## Installation
`cdffs` is available on PyPI. Install using,
```shell
pip install cognite-cdffs
```
## Usage
Important steps to follow when working with CDF Files using the `fsspec` supported python packages.
1) Import `cdffs` package
```python
from cognite import cdffs # noqa
```
2) Follow instructions from [Authentication](https://cdffs.readthedocs.io/en/latest/authentication.html) to authenticate.
3) Read/write the files from/to CDF using `fsspec` supported packages. Example,
* Read `zarr` files using using `xarray`.
```python
ds = xarray.open_zarr("cdffs://sample_data/test.zarr")
```
* Write `zarr` files using `xarray`.
```python
ds.to_zarr("cdffs://sample_data/test.zarr", storage_options={"file_metadata": metadata})
```
Refer [cdffs.readthedocs.io](https://cdffs.readthedocs.io) for more details.
## Contributing
Want to contribute? Check out [CONTRIBUTING](CONTRIBUTING.md).
نیازمندی
| مقدار | نام |
|---|---|
| >=5.10.1,<6.0.0 | cognite-sdk |
| >=2023.3.0,<2024.0.0 | fsspec |
| >=1.10.7,<2.0.0 | pydantic |
| >=1.0.0,<2.0.0 | python-dotenv |
| >=2.28.1,<3.0.0 | requests |
| >=4.0.2,<5.0.0 | twine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9.10,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl cognite-cdffs-0.2.1:
pip install cognite-cdffs-0.2.1.whl
نصب پکیج tar.gz cognite-cdffs-0.2.1:
pip install cognite-cdffs-0.2.1.tar.gz