Skip to main content

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[, Canada,] Electric System Operator’s (AESO) Energy Trading System (ETS) easier.

The Alberta Electric Systems Operator (AESO) <http://www.aeso.ca> operates 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>.

Audience

A basic knowledge of the Python programming language is required to use this library. Python is an easy to learn, powerful language. An excellent introductory tutorial is available at <http://docs.python.org/tutorial/>.

Requirements

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.

Changes in pyaeso 0.6 (2010-12-21)

  • All pyaeso package modules are deprecated.

  • aeso.eventlog replaces aeso.aieslog. The original module remains accessible but is deprecated.

  • aeso.csd module now yields objects instead of tuples.

  • Added asset module aeso.asset.

  • Added Available Transfer Capcity module aeso.atc.

  • Added equilibrium module aeso.equilibrium.

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

pyaeso-0.6.zip (215.7 kB view details)

Uploaded Source

pyaeso-0.6.tar.gz (196.8 kB view details)

Uploaded Source

pyaeso-0.6.tar.bz2 (190.2 kB view details)

Uploaded Source

File details

Details for the file pyaeso-0.6.zip.

File metadata

  • Download URL: pyaeso-0.6.zip
  • Upload date:
  • Size: 215.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyaeso-0.6.zip
Algorithm Hash digest
SHA256 a5643041fa97e83b66803d3716d21a84aeaa67d5c485cc27d6c192966094defb
MD5 37aaa32fc8588f953730518f35dd47b1
BLAKE2b-256 12b6f5d4b132e263d4d39ce93996b93c887d1100a2df7076cead05b5447a22f4

See more details on using hashes here.

File details

Details for the file pyaeso-0.6.tar.gz.

File metadata

  • Download URL: pyaeso-0.6.tar.gz
  • Upload date:
  • Size: 196.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyaeso-0.6.tar.gz
Algorithm Hash digest
SHA256 b96e5cb1f6adaeeb9eb64ab47edcfa2f29c9ba2f36c86de62eb1e5802ce95756
MD5 e01d402c779389bfb6eb7eab45bce566
BLAKE2b-256 9335a6cb88421015d422121f46604313fc0772b97ea24087b044655dadc2e079

See more details on using hashes here.

File details

Details for the file pyaeso-0.6.tar.bz2.

File metadata

  • Download URL: pyaeso-0.6.tar.bz2
  • Upload date:
  • Size: 190.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyaeso-0.6.tar.bz2
Algorithm Hash digest
SHA256 f305ce1c84639602e6187ecba3e4211bf50c277dc81fe30f8abe9b2465748853
MD5 3d2a89f65a1e7a8d32b1e469a1a56077
BLAKE2b-256 698fdd3d72a34072f3f833b16c542e951299d8d957745c48e1793b144715581d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page