Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This is the Cognite Python SDK Generator, pygen
. The purpose of this package is to help developers to
work with Cognite Data Fusion's (CDF) Data Models (DM) in Python.
Beta Note This package, pygen
, is currently in beta, which is reflected in the version number 0.99.x
. Beta
indicates that a product or functionality is in a mature testing phase, but is still subject to change or retirement.
We will provide a deprecation notice a minimum of two months before retiring the product or functionality. We recommend
not using the product or functionality in production systems.
The core functionality is to provide a Python client that matches a data model. This enables the developer for the following benefits
See the documentation for more information.
To install this package without CLI support:
pip install cognite-pygen
cli
This includes CLI support such that you can run the package from the command line.pip install cognite-pygen[cli]
If using zsh:
pip install 'cognite-pygen[cli]'
The goal of the package is to have representations of all the types in a given data model with API calls to .list(), .apply(), .delete(), and .retrieve() individuals for each type.
Given a Data Model with external id Movie
in the space movies
in CDF, the following command will generate a Python SDK
pygen generate --space movies \
--external-id Movie \
--version 1 \
--tenant-id <tenant-id> \
--client-id <client-id> \
--client-secret <client-secret> \
--cdf-cluster <cdf-cluster> \
--cdf-project <cdf-project>
If you are not using Microsoft Entra ID (Azure AD) you need to specify the parameter --token-url, --scopes and --audience instead of --tenant-id.
.to_pandas()
methods in the generated SDK.pygen
pygen
package.pygen
package.Wondering about previous changes to the SDK? Take a look at the CHANGELOG.
Want to contribute? Check out CONTRIBUTING.
FAQs
Cognite Python SDK Generator
We found that cognite-pygen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.