Pythonic access to the Alberta (Canada) Electric System Operator (AESO) Energy Trading System (ETS).
Project description
pyaeso is a python package that makes access to the Alberta Electric System Operator’s (AESO) Energy Trading System (ETS) easier.
The Alberta Electric Systems Operator (AESO) <http://www.aeso.ca> operates the Canadian province of Alberta’s deregulated electricity market. AESO provides price, demand, and other valuable information through the publically accessible Energy Trading System (ETS) website <http://ets.aeso.ca>. This information is useful for economic analysis, power trading, electric system study, and electric system forecasting. The first step in using such information is to download it and parse it into useful data structures - a task performed by this library. Typically the data will feed statistical methods, heuristics, and system models to provide useful analysis of the Alberta electric system.
The pyaeso project is hosted at <http://bitbucket.org/kc/pyaeso> and releases are made via the Python Package Index at <http://pypi.python.org/pypi/pyaeso>. Online documentation is available at <http://packages.python.org/pyaeso>.
Requirements
Python 2.4 or better - Available at <http://python.org/download> (2009-11-25).
pytz - “World timezone definitions, modern and historical”. Available at <http://pypi.python.org/pypi/pytz> (2009-11-14).
Installation
Extract the archive, enter the recovered directory and type:
python setup.py install
Usage
Some code samples that use pyaeso are availble in the examples directory. One sample is listed here:
>>> '''Print yesterday's market clearing price/demand points and exit.''' >>> >>> # Standard library imports >>> import sys >>> from StringIO import StringIO >>> import datetime >>> >>> # 3rd Party Libraries >>> from pyaeso import ets >>> >>> end_date = datetime.date.today() >>> start_date = end_date - datetime.timedelta(1) >>> >>> f = StringIO() >>> ets.dump_pool_price(f, start_date, end_date) >>> f.seek(0) >>> #print f.getvalue() >>> data = list(ets.parse_pool_price_file(f)) >>> f.close() >>> >>> print '''Yesterday's market clearing price/demand points.''' >>> for d in data: >>> print d.t.astimezone(ets.ALBERTA_TZ), '$' + str(d.price), str(d.demand) + 'MW'
Known Incompatibilities
Python <= 2.3 - Fails because pyaeso uses several standard library modules that were introduced in Python 2.4.
Python 3 - pyaeso uses the pytz package which has no Python 3 version (2009-11-14). The pyaeso library should be quickly available for Python 3 once pytz is updated.
Bugs and Enhancements
If you would like to file a bug report or feature request then you can do so at <http://bitbucket.org/kc/pyaeso/issues>.
Contact
As the maintainer of this library I, Keegan Callin, would welcome your polite, constructive comments and criticisms of this library. I can be reached by email using the address kc (at) kcallin.net. If you need to talk to me on the telephone or send me something by snail mail, send me an email and I’ll gladly mail you instructions on how to reach me.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file pyaeso-0.3.zip
.
File metadata
- Download URL: pyaeso-0.3.zip
- Upload date:
- Size: 621.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9371d2eeed1388ea276cc9b138e6cae6d46cefc93bcf07a5092ca8b2539721a0 |
|
MD5 | 888cb5ab0b28f073a53a73de93cb99ab |
|
BLAKE2b-256 | 5d2ca2359a754dd8119a889c9444ad5460c107db2a80f8d96898f9cb693ce3f2 |
File details
Details for the file pyaeso-0.3.tar.gz
.
File metadata
- Download URL: pyaeso-0.3.tar.gz
- Upload date:
- Size: 616.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae2ec09b843f54e62592415978c92009ae34acf4cc807d754c2f6c9bc783e59 |
|
MD5 | d113f85b265d6f469dacb623e6ca8cc0 |
|
BLAKE2b-256 | 025aa6cef05d35cc4ad66ad75364e8d9f808062c098532a4cf4230842913f39c |
File details
Details for the file pyaeso-0.3.tar.bz2
.
File metadata
- Download URL: pyaeso-0.3.tar.bz2
- Upload date:
- Size: 624.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 993225e5ca9ad52c136284cbc2267545475f96d4d534decdb1d44f11e6c16576 |
|
MD5 | 52e96090139979dd608085877986af16 |
|
BLAKE2b-256 | c585bde506e034f8837849c28be7a1f24a65f75ef7dbcc0572f2846e545b3d2e |