File tree 3 files changed +19
-6
lines changed
3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
- # nordpool-db
2
- Library for storing retrieving and storing Nord Pool spot data in order to tell cheapest hours
1
+ # nordpool_db
2
+
3
+ Library for storing retrieving and storing Nord Pool spot data in order to tell cheapest hours.
4
+
5
+ ## Installing
6
+
7
+ ` pip3 install git+https://github.com/mplattu/nordpool_db.git `
8
+
9
+ ## Upgrading
10
+
11
+ ` pip3 install -U git+https://github.com/mplattu/nordpool_db.git `
12
+
13
+ ## Examples
14
+
15
+ See ` examples/ `
Original file line number Diff line number Diff line change 5
5
import pytz
6
6
7
7
from nordpool import elspot
8
- from nordpool_db import NordpoolDb
8
+ from nordpool_db import nordpool_db
9
9
10
10
SQLITE_DB = "/tmp/npdb_example.db"
11
11
17
17
if os .path .isfile (SQLITE_DB ):
18
18
print (f'Warning: Using your existing database at { SQLITE_DB } ' )
19
19
20
- nordpool_db = NordpoolDb (SQLITE_DB )
20
+ nordpool_db = nordpool_db . NordpoolDb (SQLITE_DB )
21
21
tz = pytz .timezone (TZ )
22
22
dt_yesterday = tz .localize (datetime .today ()- timedelta (days = 1 ))
23
23
Original file line number Diff line number Diff line change 4
4
from datetime import datetime , timedelta
5
5
6
6
from nordpool import elspot
7
- from nordpool_db import NordpoolDb
7
+ from nordpool_db import nordpool_db
8
8
9
9
SQLITE_DB = "/tmp/npdb_example.db"
10
10
AREAS = ['FI' , 'EE' ]
14
14
if os .path .isfile (SQLITE_DB ):
15
15
print (f'Warning: Using your existing database at { SQLITE_DB } ' )
16
16
17
- nordpool_db = NordpoolDb (SQLITE_DB )
17
+ nordpool_db = nordpool_db . NordpoolDb (SQLITE_DB )
18
18
19
19
dt_today = datetime .today ()
20
20
dt_yesterday = datetime .today ()- timedelta (days = 1 )
You can’t perform that action at this time.
0 commit comments