oemof.db Documentation

Similar documents
demandlib Documentation

chatterbot-weather Documentation

git-pr Release dev2+ng5b0396a

Roman Numeral Converter Documentation

Python Project Example Documentation

Python wrapper for Viscosity.app Documentation

supernova Documentation

TPS Documentation. Release Thomas Roten

I2C LCD Documentation

Python simple arp table reader Documentation

I hate money. Release 1.0

Plumeria Documentation

sainsmart Documentation

Aircrack-ng python bindings Documentation

ProxySQL Tools Documentation

Pulp Python Support Documentation

doconv Documentation Release Jacob Mourelos

ejpiaj Documentation Release Marek Wywiał

gunny Documentation Release David Blewett

Game Server Manager Documentation

Python Schema Generator Documentation

Poulpe Documentation. Release Edouard Klein

withenv Documentation

PyCRC Documentation. Release 1.0

diceware Documentation

yardstick Documentation

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

BanzaiDB Documentation

Aldryn Installer Documentation

dh-virtualenv Documentation

Release Nicholas A. Del Grosso

Simple Binary Search Tree Documentation

Simple libtorrent streaming module Documentation

DNS Zone Test Documentation

agate-sql Documentation

Snakemine: Redmine API wrapper Documentation

Google Domain Shared Contacts Client Documentation

CS 390 Software Engineering Lecture 5 More Git

google-search Documentation

syslog-ng Apache Kafka destination

XStatic Documentation

gpib-ctypes Documentation

eventbrite-sdk-python Documentation

olapy Documentation Release Abilian SAS

ardpower Documentation

Plone Performance Testing Documentation

Airoscript-ng Documentation

Tiberius Documentation

AnyDo API Python Documentation

Gunnery Documentation

Python AMT Tools Documentation

django-dynamic-db-router Documentation

PyCon APAC 2014 Documentation

OTX to MISP. Release 1.4.2

Bugspad Documentation

Redis Timeseries Documentation

smartfilesorter Documentation

Release Ralph Offinger

otree Virtual Machine Manager Documentation

turbo-hipster Documentation

django-konfera Documentation

Django-frontend-notification Documentation

Archer Documentation. Release 0.1. Praekelt Dev

g-pypi Documentation Release 0.3 Domen Kožar

petfinder-api Documentation

TangeloHub Documentation

Wifiphisher Documentation

Python State Machine Documentation

Poetaster. Release 0.1.1

Confire Documentation

Git Setup Help using GitKraken (CSE 154)

pyldavis Documentation

dh-virtualenv Documentation

Celery-RabbitMQ Documentation

Release Manu Phatak

API Wrapper Documentation

Python AutoTask Web Services Documentation

PrettyPandas Documentation

Git tutorial. Katie Osterried C2SM. October 22, 2015

django-reinhardt Documentation

Django MFA Documentation

Lazarus Documentation

Get Weather Data Documentation

Job Submitter Documentation

Python data pipelines similar to R Documentation

Pykemon Documentation

monolith Documentation

SagePay payment gateway package for django-oscar Documentation

Frontier Documentation

jira-cli Documentation

Git. Charles J. Geyer School of Statistics University of Minnesota. Stat 8054 Lecture Notes

Release Fulfil.IO Inc.

ameh Documentation Release Eric Pierce

Bitdock. Release 0.1.0

OpenUpgrade Library Documentation

Libra Client Documentation

dicompyler-core Documentation

Platform Migrator Technical Report TR

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

jumpssh Documentation

Transcription:

oemof.db Documentation Release 0.0.5 Uwe Krien, oemof developing group Mar 20, 2017

Contents 1 Getting started 3 1.1 Installation................................................ 3 1.2 Configuration and usage......................................... 3 2 What s New 5 2.1 v0.0.5 (March 20th, 2017)........................................ 5 2.2 v0.0.4 (December 16, 2016)....................................... 6 2.3 v0.0.3 (March 10, 2016)......................................... 6 2.4 v0.0.2 (January 29, 2016)........................................ 7 2.5 v0.0.1 (October 30, 2015)........................................ 7 3 oemof 9 3.1 oemof package.............................................. 9 4 Indices and tables 11 i

ii

oemof.db Documentation, Release 0.0.5 Contents: Contents 1

oemof.db Documentation, Release 0.0.5 2 Contents

CHAPTER 1 Getting started An oemof extension to use the oemof related postgis database. See the documentation for more information! Installation Use pypi to install the latest oemof version. pip3 install oemof.db If you want to have the developer version clone the repository by git clone git@github.com:oemof/oemof.db.git and can install it using pip3 with the -e flag. sudo pip3 install -e <path/to/the/oemof.db/repository/root/directory> Keep virtualenvs _ in mind! Configuration and usage As the purpose of this package is to facilitate usage of the oemof database, it needs to know how to connect to this database. Being part of oemof, as fallback oemof.db always looks for this configuration in the file config.ini in a directory called.oemof in your home directory. A particular config-file can either specified and accessed via from oemof.db import cfg # only load config file 3

oemof.db Documentation, Release 0.0.5 cfg.load_config(config_file=<you-config-file>) # access config parameters cfg.get(<section>, <parameter>) If you re interested in establishing a database connection and specify config file connection parameters are stored in use from oemof.db import cfg # establish database connection with specified section and config_file db.connection(section=<section>, config_file=<you-config-file>) To configure database access this file has to have at least one dedicated section containing the necessary options, like this: [postgis] username = username under which to connect to the database database = name of the database from which to read host = host to connect to port = port to connect to pw = password used to connect with the given username (OPTIONAL) The section is assumed to be named postgis by default, but you can name it differently and have multiple sections for different databases if the need arises. The password is optional. If you don t want to store the password in the config.ini, you may store it using the keyring package _, which is a dependency of oemof.db, like this: >>> import keyring >>> keyring.set_password("database", "username") where "database" and "username" have the same values as the corresponding options in config.ini. 4 Chapter 1. Getting started

CHAPTER 2 What s New These are new features and improvements of note in each release Releases v0.0.5 (March 20th, 2017) v0.0.4 (December 16, 2016) v0.0.3 (March 10, 2016) v0.0.2 (January 29, 2016) v0.0.1 (October 30, 2015) v0.0.5 (March 20th, 2017) Bug fixes In order to play well with oemof, oemof/db/ init.py has been removed. This should fix oemof s issue #269. Contributors Stephan Günther 5

oemof.db Documentation, Release 0.0.5 v0.0.4 (December 16, 2016) New features Create an empty database table with primary key type serial in tools.py Access grant to users/ group of users, see grant_db_access in tools.py Additional optional keyword argument to specify config file (issue #21) Ask for password and save store in keyring if not existent (issue #22) Documentation Testing Bug fixes Add missing keyrings.alt dependency Other changes Contributors Guido Pleßmann Uwe Krien v0.0.3 (March 10, 2016) New features It s now possible to have multiple sections for different databases in config.ini (PR #7) Documentation The documentation was erroneously talking about feedinlib in places where it should have said oemof.db. (issue #3) Contributors Uwe Krien Stephan Günther Guido Pleßmann 6 Chapter 2. What s New

oemof.db Documentation, Release 0.0.5 v0.0.2 (January 29, 2016) Other changes Package is now called oemof.db Contributors Uwe Krien Stephan Günther v0.0.1 (October 30, 2015) New features Documentation Testing Bug fixes Other changes Contributors Uwe Krien 2.4. v0.0.2 (January 29, 2016) 7

oemof.db Documentation, Release 0.0.5 8 Chapter 2. What s New

CHAPTER 3 oemof oemof package Subpackages oemof.db package Submodules oemof.db.coastdat module oemof.db.config module oemof.db.feedin_pg module oemof.db.powerplants module oemof.db.test_config_changes module oemof.db.tools module Module contents Module contents 9

oemof.db Documentation, Release 0.0.5 10 Chapter 3. oemof

CHAPTER 4 Indices and tables genindex modindex search 11