Skip to main content

Client library for Cognite Data Fusion (CDF)

Project description

Cognite logo

Cognite Python SDK

build codecov Documentation Status PyPI version 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.56.1.tar.gz (143.1 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.56.1-py3-none-any.whl (186.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cognite-sdk-core-2.56.1.tar.gz
  • Upload date:
  • Size: 143.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for cognite-sdk-core-2.56.1.tar.gz
Algorithm Hash digest
SHA256 b0b41e3e0ebe069b5b08cd7101223592f5f7ba8fd841218c43f3a12306bc19d5
MD5 5efc1b89bd442229bea473273d0543ff
BLAKE2b-256 719553720d55afeee98d1a3dfb0bdecf38b20d293c76cf0fb09069c7f4e1a768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_sdk_core-2.56.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5f61ee7ee87a3924fb732542f46ac0cab72963a32f6552e10ef9714b44f8dcf
MD5 ad009bf81cbaed013193a7cfd86504e4
BLAKE2b-256 6cdc4791310c28acb7bfe39ac65d273156c98621c3850a153f96407e6f9466cb

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