Skip to main content
Cognite logo

Cognite Python SDK

build Downloads GitHub codecov Documentation Status PyPI version conda version mypy 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).

Reference documentation

Installation

Without any optional dependencies

To install the core version of this package:

$ pip install cognite-sdk

With optional dependencies

A number of optional dependencies may be specified in order to support a wider set of features. The available extras (along with the libraries they include) are:

  • numpy [numpy]
  • pandas [pandas]
  • geo [geopandas, shapely]
  • sympy [sympy]
  • functions [pip]
  • yaml [PyYAML]
  • all [numpy, pandas, geopandas, shapely, sympy, pip, PyYAML]

To include optional dependencies, specify them like this with pip:

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

or like this if you are using poetry:

$ poetry add cognite-sdk -E pandas -E geo

Performance notes

If you regularly need to fetch large amounts of datapoints, consider installing with numpy (or with pandas, as it depends on numpy) for best performance, then use the retrieve_arrays (or retrieve_dataframe) endpoint(s). This avoids building large pure Python data structures, and instead reads data directly into memory-efficient numpy.ndarrays.

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

Changelog

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

Migration Guide

To help you upgrade your code(base) quickly and safely to a newer major version of the SDK, check out our migration guide. It is a more focused guide based on the detailed change log. MIGRATION GUIDE.

Contributing

Want to contribute? Check out CONTRIBUTING.

Metadata

Release files for cognite-sdk 7.95.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cognite-sdk 7.95.1
File Size Uploaded Provenance Actions
cognite_sdk-7.95.1.tar.gz 547.7 kB Without provenance Details for cognite_sdk-7.95.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cognite-sdk 7.95.1
File Interpreter ABI Platform Actions
cognite_sdk-7.95.1-py3-none-any.whl Python 3 none any Details for cognite_sdk-7.95.1-py3-none-any.whl

Total release size: 1.2 MB

Release files / cognite_sdk-7.95.1.tar.gz

Download URL cognite_sdk-7.95.1.tar.gz
Size 547.7 kB
Tags Source
SHA-256 checksum
How to use checksums
675637deb842aae9aa37ec9d75ad4f5c218294f12ed3416d810a1cc76381a36a
BLAKE2b-256 checksum
How to use checksums
581f8806379f2250cf4037fd54da9c4cf902285ce3ce06494d1c2fdcff05d66a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / cognite_sdk-7.95.1-py3-none-any.whl

Download URL cognite_sdk-7.95.1-py3-none-any.whl
Size 695.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6316d882cd9046bc26e122331964a426040abffad347d1b398f01bbf860e3f74
BLAKE2b-256 checksum
How to use checksums
5b6541a3c23266a137ac88bb25c48db044294061e3ee9750519f6bad9661fc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for cognite-sdk 7.95.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.95.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page