No project description provided
Project description
# openergy
Client api to interact with openergy platform
## Suggested conda env
<pre>
openpyxl>=2.4.7,<3.0.0
requests>=2.14.2,<3.0.0
nose>=1.3.7,<2.0.0
pandas>=0.20.1,<0.21.0
pytables>=3.2.0,<4.0
</pre>
## Url endpoints philosophy
Mainly inspired by [rest_framework simple router actions](http://www.django-rest-framework.org/api-guide/routers/#simplerouter).
## Examples
<pre>
from openergy import set_client, select_series
client = set_client("login", "password", "host")
</pre>
### select series
<pre>
# returns a pandas Series object
se = select_series("993e2f73-20ef-4f60-8e06-d81d6cefbc9a")
</pre>
### create local database
<pre>
from openergy import LocalDatabase
db = LocalDatabase(db_dir_path)
# download one series
# (local_se is not a pandas series but a local database series object)
local_se = db.get_local_series(
"my_project",
"analysis", # importer, cleaner or analysis
"my_analysis",
"se1")
local_se.download()
# se1 is a pandas series
se1 = local_se.data
# download multiple series
db.download_all_series(
my_project,
generator_model=analysis, # importer, cleaner or analysis
generator_name=my_analysis)
# 1. local se1 will be deleted and downloaded again
# 2. all project will be downloaded if no generator has been specified
# work with series
se1 = db.get_local_series(
"my_project",
"analysis",
"my_analysis",
"se1").data
</pre>
Client api to interact with openergy platform
## Suggested conda env
<pre>
openpyxl>=2.4.7,<3.0.0
requests>=2.14.2,<3.0.0
nose>=1.3.7,<2.0.0
pandas>=0.20.1,<0.21.0
pytables>=3.2.0,<4.0
</pre>
## Url endpoints philosophy
Mainly inspired by [rest_framework simple router actions](http://www.django-rest-framework.org/api-guide/routers/#simplerouter).
## Examples
<pre>
from openergy import set_client, select_series
client = set_client("login", "password", "host")
</pre>
### select series
<pre>
# returns a pandas Series object
se = select_series("993e2f73-20ef-4f60-8e06-d81d6cefbc9a")
</pre>
### create local database
<pre>
from openergy import LocalDatabase
db = LocalDatabase(db_dir_path)
# download one series
# (local_se is not a pandas series but a local database series object)
local_se = db.get_local_series(
"my_project",
"analysis", # importer, cleaner or analysis
"my_analysis",
"se1")
local_se.download()
# se1 is a pandas series
se1 = local_se.data
# download multiple series
db.download_all_series(
my_project,
generator_model=analysis, # importer, cleaner or analysis
generator_name=my_analysis)
# 1. local se1 will be deleted and downloaded again
# 2. all project will be downloaded if no generator has been specified
# work with series
se1 = db.get_local_series(
"my_project",
"analysis",
"my_analysis",
"se1").data
</pre>
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
openergy-3.1.4.tar.gz
(28.8 kB
view details)
Built Distribution
openergy-3.1.4-py3-none-any.whl
(34.0 kB
view details)
File details
Details for the file openergy-3.1.4.tar.gz
.
File metadata
- Download URL: openergy-3.1.4.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c28a06c74314e9a5878a0246b43e32917ce86d6b69560d290745e35a726c45 |
|
MD5 | b320d518222a4378dbbabcfe5f6b60f9 |
|
BLAKE2b-256 | e21daf2d3f3fcd8a83f234c6e605333f8f84843f26323ae0be482bf22577c5dc |
File details
Details for the file openergy-3.1.4-py3-none-any.whl
.
File metadata
- Download URL: openergy-3.1.4-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5dff1d660704169f466d3525992d31b7f511bdb471629075550253cfa1b24b4 |
|
MD5 | 89c6c292d561095407b2954ff2d19ff2 |
|
BLAKE2b-256 | 87242f8d06af281a0574f9adefc57e4200c589e849d32471bcbcce3e1e68891d |