Cognite Python SDK
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cognite_sdk-7.95.0.tar.gz | 547.5 kB | Without provenance | Details for cognite_sdk-7.95.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cognite_sdk-7.95.0-py3-none-any.whl | Python 3 | none | any | Details for cognite_sdk-7.95.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / cognite_sdk-7.95.0.tar.gz
| Download URL | cognite_sdk-7.95.0.tar.gz |
|---|---|
| Size | 547.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c4e468664da87f0230e1219432bac4bac5e0283d72af855905bfe5b28a0e6ca
|
|
BLAKE2b-256 checksum How to use checksums |
6adc9196130cec9fa0618a7a0e3d8dccae76047b91cfbeb22a4c35a958dec019
|
| 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.0-py3-none-any.whl
| Download URL | cognite_sdk-7.95.0-py3-none-any.whl |
|---|---|
| Size | 695.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b221be9e7ff306edf84bd10e2ffeebb4949068b729a7b80047175ecb691a12e8
|
|
BLAKE2b-256 checksum How to use checksums |
c8397f18dba460c905c3289833cb5a08cf9285918b101509d2e30dd8db22191f
|
| 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.0
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.