Skip to main content

Client library for Cognite Data Fusion (CDF)

Project description

Cognite logo

Cognite Python SDK

build codecov Documentation Status PyPI version tox Code style: black

This is the Cognite Python SDK for developers and data scientists working with Cognite Data Fusion (CDF). The package is tightly integrated with pandas, and helps you work easily and efficiently with data in Cognite Data Fusion (CDF).

Documentation

Prerequisites

In order to start using the Python SDK, you need

  • Python3 (>= 3.5) and pip
  • An API key. Never include the API key directly in the code or upload the key to github. Instead, set the API key as an environment variable. See the usage example for how to authenticate with the API key.

This is how you set the API key as an environment variable on Mac OS and Linux:

$ export COGNITE_API_KEY=<your API key>

On Windows, you can follows these instructions to set the API key as an environment variable.

Installation

To install this package:

$ pip install cognite-sdk

To install this package without the pandas and NumPy support:

$ pip install cognite-sdk-core

To install with pandas, geopandas and shapely support (equivalent to installing cognite-sdk). However, this gives you the option to only have pandas (and NumPy) support without geopandas.

$ pip install cognite-sdk-core[pandas, geo]

On Windows, it is recommended to install geopandas and its dependencies using conda package manager, see geopandas installation page. The following commands create a new environment, install geopandas and cognite-sdk.

conda create -n geo_env
conda activate geo_env
conda install --channel conda-forge geopandas
pip install cognite-sdk

Examples

For a collection of scripts and Jupyter Notebooks that explain how to perform various tasks in Cognite Data Fusion (CDF) using Python, see the GitHub repository here

Changelog

Wondering about upcoming or previous changes to the SDK? Take a look at the CHANGELOG.

Contributing

Want to contribute? Check out CONTRIBUTING.

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

cognite-sdk-core-2.50.1.tar.gz (137.0 kB view details)

Uploaded Source

Built Distribution

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

cognite_sdk_core-2.50.1-py3-none-any.whl (178.8 kB view details)

Uploaded Python 3

File details

Details for the file cognite-sdk-core-2.50.1.tar.gz.

File metadata

  • Download URL: cognite-sdk-core-2.50.1.tar.gz
  • Upload date:
  • Size: 137.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.12

File hashes

Hashes for cognite-sdk-core-2.50.1.tar.gz
Algorithm Hash digest
SHA256 e77d0343c182cf1db482d99e570e87c14e981585af1a610c080941de0dce1b9d
MD5 66b8adf2652af3dddbb9ebdd41e6e525
BLAKE2b-256 8c1720e41d3d123fec6be6e0497b14fc69e427107d77ecb5aa1bc7a2c15e8253

See more details on using hashes here.

File details

Details for the file cognite_sdk_core-2.50.1-py3-none-any.whl.

File metadata

  • Download URL: cognite_sdk_core-2.50.1-py3-none-any.whl
  • Upload date:
  • Size: 178.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.12

File hashes

Hashes for cognite_sdk_core-2.50.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3b02caca49a933d04a708828b527fef196527b579a84966f27d120bd1ec348
MD5 44d33e13969b5f6db44d0f9b76146024
BLAKE2b-256 ee59da82339bc37ef16ff7fdbe345d947b05906473ea944c67f16a6ad162bbd7

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