A new Python Power Factory API
Project description
(YAPOWF) Yet Another Power Factory API
This project contains a new python - power factory API.
It is still in progress…
How to install
$ pip install yapowf
Connect Power Factory
from yapowf import Network
## Connect to PF
credentials = {
"path": r"pathon_module_path",
"username": "your_username",
"password": "your_password_if_needed",
}
pf = Network(**credentials)
## Activate a project
pf.activate_project("project_name_here")
## Activate a study case
pf.activate_study_case("studycase_name_here")
## Get grid params
bus_df = pf.get_bus_params()
line_df = pf.get_line_params()
gen_df = pf.get_gen_params()
trafo3_df = pf.get_3wtrafo_params()
trafo2_df = pf.get_2wtrafo_params()
shunt_df = pf.get_shunt_params()
## Search for an element name
## Allowed types: "line", "gen", "load", "trafo3w", "trafo2w", "shunt"
elems = pf.search_element_name("elem_name_here", "line")
## Want to run a power flow ??
res = pf.run_load_flow()
## Gettting results in dataframe
ld_gen_df = res.gen
ld_gen_pu_df = res.gen_pu
## Want to run a dynamic simulation ??
res = pf.run_dynamic_sim()
## Gettting results in dataframe
res_gen_df = res.gen
res_bus_df = res.bus
## All methods have associated DocStrings
help(pf.run_dynamic_sim)
License
GNU GNU GPLv3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yapowf-0.0.7.tar.gz
(25.1 kB
view details)
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
yapowf-0.0.7-py3-none-any.whl
(28.8 kB
view details)
File details
Details for the file yapowf-0.0.7.tar.gz.
File metadata
- Download URL: yapowf-0.0.7.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c87f6b16f36ded8b1ed782ae1b3b52ec300bb08b7334dc0fa19379fbd53919b1
|
|
| MD5 |
bffc686fb5da46f9d75e22672b249583
|
|
| BLAKE2b-256 |
bf97f57c0da8453d710f70db2f00363c137fbab4b454dc3b8cdfc2aa54171583
|
File details
Details for the file yapowf-0.0.7-py3-none-any.whl.
File metadata
- Download URL: yapowf-0.0.7-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fcbf14ac8ba2324d1438b6ba0d4c130a0e8d51c908dcf291187151a028a0849
|
|
| MD5 |
a6af534d57caa7e5648559d1250cf88c
|
|
| BLAKE2b-256 |
aad7815101d8272ea2f60b6d8812548de786949c1ef53d84c3a36f5edd74c2b5
|