Skip to content

Commit 5677f84

Browse files
committed
Allow skipping DataFrameClient import
Importing the DataFrameClient can take quite a while, especially when the source files aren't yet loaded into the page cache. This patch adds an environment variable, INFLUXDB_NO_DATAFRAME_CLIENT, to allow users of this package to skip this import in cases where they don't need it.
1 parent d156b2c commit 5677f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'SeriesHelper',
1818
]
1919

20-
if os.environ.get("INFLUXDB_NO_DATAFRAME_CLIENT", "0").lower() not in ("0", "false"):
20+
if os.environ.get("INFLUXDB_NO_DATAFRAME_CLIENT", "0").lower() not in ("1", "true"):
2121
from .dataframe_client import DataFrameClient
2222
__all__.append( "DataFrameClient" )
2323

0 commit comments

Comments
 (0)