Skip to content

Commit 22192f9

Browse files
committed
make InfluxDBClient parameters optional
1 parent 86ca09b commit 22192f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class InfluxDBClient(object):
1515
InfluxDB Client
1616
"""
1717

18-
def __init__(self, host, port, username, password, database):
18+
def __init__(self, host='localhost', port=8086, username='root',
19+
password='root', database=None):
1920
"""
2021
Initialize client
2122
"""

0 commit comments

Comments
 (0)