Skip to main content

Cognite Python SDK

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.8) 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

without pandas or geopandas support

To install this package without pandas and geopandas support:

$ pip install cognite-sdk

with pandas and geopandas support

To install with pandas, geopandas and shapely support.

$ pip install cognite-sdk[pandas, geo]

Windows specific

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-3.7.0.tar.gz (149.8 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-3.7.0-py3-none-any.whl (195.8 kB view details)

Uploaded Python 3

File details

Details for the file cognite-sdk-3.7.0.tar.gz.

File metadata

  • Download URL: cognite-sdk-3.7.0.tar.gz
  • Upload date:
  • Size: 149.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for cognite-sdk-3.7.0.tar.gz
Algorithm Hash digest
SHA256 c7c2cd1f0f66ebef3c26429ab2bde673e575b46ece3b4c5c989e51053581d530
MD5 3b4fba08d6fd4c45b7ee596b8544f18f
BLAKE2b-256 790208fe272bc1adf8a157b7c2a275283895b798339324d82c2ad4a11d2e930c

See more details on using hashes here.

File details

Details for the file cognite_sdk-3.7.0-py3-none-any.whl.

File metadata

  • Download URL: cognite_sdk-3.7.0-py3-none-any.whl
  • Upload date:
  • Size: 195.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for cognite_sdk-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40a00a379223e7d56e32cc4a20b5ac832d66a942ac4e0d456aac15b89bf61607
MD5 a4fc2752a0b40930016ec970bb8264ec
BLAKE2b-256 c5168dc353fbfd327d14d83779b972894dec721c7007c3bc9b7259da65e4e65f

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