Skip to main content

File System Interface for CDF Files

Project description

Cognite

GitHub Documentation Status Code style: black codecov PyPI

cdffs

A file system interface (cdffs) to allow users to work with CDF Files using the fsspec 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 to get the list of all supported/compatible python packages.

Installation

cdffs is available on PyPI. Install using,

pip install cognite-cdffs

Usage

Important steps to follow when working with CDF Files using the fsspec supported python packages.

  1. Import cdffs package
  from cognite import cdffs  # noqa
  1. Follow instructions from Authentication to authenticate.

  2. Read/write the files from/to CDF using fsspec supported packages. Example,

    • Read zarr files using using xarray.
    ds = xarray.open_zarr("cdffs://sample_data/test.zarr")
    
    • Write zarr files using xarray.
    ds.to_zarr("cdffs://sample_data/test.zarr", storage_options={"file_metadata": metadata})
    

Refer cdffs.readthedocs.io for more details.

Contributing

Want to contribute? Check out CONTRIBUTING.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognite_cdffs-0.2.7.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognite_cdffs-0.2.7-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file cognite_cdffs-0.2.7.tar.gz.

File metadata

  • Download URL: cognite_cdffs-0.2.7.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for cognite_cdffs-0.2.7.tar.gz
Algorithm Hash digest
SHA256 bbca6a5ff5fef3ff892394956e53988ca4baab38c9e90c33ab399b13d7809526
MD5 b4d90d2e2ef0674fb7da14072d4203e2
BLAKE2b-256 ec30e840802d87fdfd39ee79af47402b0be4a0f084183cf52103c2b8db934eaa

See more details on using hashes here.

File details

Details for the file cognite_cdffs-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: cognite_cdffs-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for cognite_cdffs-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f71a8c6ca7e4da581456b4eb3b98900e839a13330994ac0f83617001ad1cc8f0
MD5 6255a18e4dcaa312b231b9580367629f
BLAKE2b-256 c971f821b4bb3c42c022a333c82d335f3ce80990ffa8f3e861503d414f5351d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page