We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a755f commit 0e4bf34Copy full SHA for 0e4bf34
influxdb/client.py
@@ -117,12 +117,12 @@ def from_DSN(dsn, **kwargs):
117
also be passed to this function.
118
119
Examples:
120
- >>> cli = InfluxDBClient.from_DSN('influxdb://username:password@\
121
- ... localhost:8086/databasename', timeout=5)
+ >>> cli = InfluxDBClient.from_DSN('influxdb://username:password@
+ localhost:8086/databasename', timeout=5)
122
>>> type(cli)
123
<class 'influxdb.client.InfluxDBClient'>
124
>>> cli = InfluxDBClient.from_DSN('udp+influxdb://username:pass@\
125
- ... localhost:8086/databasename', timeout=5, udp_port=159)
+ localhost:8086/databasename', timeout=5, udp_port=159)
126
>>> print('{0._baseurl} - {0.use_udp} {0.udp_port}'.format(cli))
127
http://localhost:8086 - True 159
128
0 commit comments