Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
The PowerOps SDK is a domain-specific SDK for interacting with Cognite Data Fusion (CDF) for the power operations' domain.
cognite.powerops.client.PowerOpsClient
used to interact with CDF in a domain-specific language.resync
, used to sync configuration files with CDF through the CLI tool powerops
.pip install cognite-power-ops
Configuration of the PowerOpsClient
and resync
is done through a yaml file and environment variables.
The configuration is in .yaml
format and the path to the configuration file must be explicitly provided. Refer to the example config file for the most up to date example of required fields.
Secrets should not be written directly in this configuration file as the file is intended to be committed to git. Instead use the following syntax to refer to an environment variable as a value.
project: "${PROJECT}"
base_url: "https://${CLUSTER}.cognitedata.com"
If you are using a .env
file etc. then you must handle loading the proper environment variables prior to instantiating PowerOpsClient
or running resync
.
Refer to the resync documentation.
Using YAML configuration:
from dotenv import load_dotenv
from cognite.powerops.client import PowerOpsClient
load_dotenv()
power_ops_client = PowerOpsClient.from_config("power_ops_config.yaml")
Using an existing CogniteClient:
from cognite.powerops.client import PowerOpsClient
# Refer to the Cognite SDK documentation for the different ways to instantiate a CogniteClient
cognite_config = {} # dict with configuration
cognite_client = CogniteClient.load(cognite_config)
# Instantiate PowerOpsClient with existing CogniteClient
power_ops_client = PowerOpsClient(client=cognite_client, read_dataset="xid_dataset", write_dataset="xid_dataset")
For more examples on using the PowerOpsClient, see the examples section of the documentation.
FAQs
SDK for power markets operations on Cognite Data Fusion
We found that cognite-power-ops 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.