Module containing examples for interacting with Zepben's platform
Project description
EWB Python SDK examples
This repo contains examples for utilising the Python SDK. If you don't wish to use Python, you can alternatively use the JVM SDK, which is written in Kotlin and compatible with Java.
Some of the examples covering basic concepts are highlighted in this section, an index of the examples containing more advanced concepts can be found at the end of the README.
Adding the EWB SDK to your own project
Add the following items to your setup.py:
install_requires=[
"zepben.auth==<VERSION>",
"zepben.ewb==<VERSION>"
],
The latest versions can be found on the Python package index:
[!NOTE]
If you are a keen developer and want access to the latest updates, beta versions that have been released since the latest official release can be found in the "Release history" page for each dependency.
Using the examples in your own project
[!IMPORTANT]
Sometimes you may want to copy the code from the examples into your own project, rather than just running them from this repo. It is important to note that some of the examples may be using beta version features, and you should make sure to use the SDK version specified in setup.py, rather than the latest official release.
Installation and setup of the examples
pip install -e .
Basic usage with EWB server
The first step is to connect to the EWB gRPC server. All other examples relating to using the EWB server can use any of the connection methods shown, based on the configuration of the EWB server.
Once you are connected the most common use case is to fetch a feeder. Once you have the feeder you can work with it locally, without changing the objects on the server, or other users of the feeder. See further examples for things you may want to do ith the feeder.
Building local models
Sometimes you do not want to pull a model from the EWB server, and instead want to build it locally. Depending on your use case, you may want to build your own network hierarchy. You can even build a full feeder, such as the IEEE 13 node test feeder
EAS Python examples
The EAS adds additional functionality to EWB.
Adding the EAS client to your own project
In addition to the EWB SDK requirements, add the following item to your setup.py:
install_requires=[
"zepben.eas==<VERSION>",
],
The latest version can be found on the Python package index:
[!NOTE]
If you are a keen developer and want access to the latest updates, beta versions that have been released since the latest official release can be found in the "Release history" page.
Creating and uploading studies
One feature added by the EAS is studies. You can create you own study and upload it to EAS, which will then be available via the UI for visualisation.
Examples Index
Reading from the server
Creating local models
- Interacting with a network model (e.g. adding and removing objects)
- Building the IEEE 13 node test feeder
- Modelling network hierarchies
Using the model
- Examining connectivity of cores on equipment and terminals
- Running network traces
- Creating and uploading studies
- Manipulating the current state of the network, including swapping a zone open point
Power flow
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zepben_examples-0.4.0.tar.gz.
File metadata
- Download URL: zepben_examples-0.4.0.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cdace23355d7b6108e2c99c270c205f310ad28753be4641c7f666d94a4aca97
|
|
| MD5 |
c3e3d5c77abe85e4c3920a1ae244a796
|
|
| BLAKE2b-256 |
f6c34a846f871a98e5dd50ffc7f7466058dcd3dbf592d4dc3f36868dc8e0020e
|
File details
Details for the file zepben_examples-0.4.0-py3-none-any.whl.
File metadata
- Download URL: zepben_examples-0.4.0-py3-none-any.whl
- Upload date:
- Size: 56.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013a72b330198c1e661e4f3e04d045bc74c0b7a12f0f0ec796ba5755e9ece142
|
|
| MD5 |
00d3e5ee79488d68cec7c855107a1432
|
|
| BLAKE2b-256 |
9f36042ce709689b09a4801dd7e7daabff82f9991348acfecce62a8f7e7257ba
|