Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Allow skipping DataFrameClient import#850

Open
jdoyle93 wants to merge6 commits intoinfluxdata:master
base:master
Choose a base branch
Loading
fromjdoyle93:client-import-time
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletionsdocs/source/api-documentation.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,10 @@ To connect to a InfluxDB, you must create a
connects to InfluxDB on ``localhost`` with the default
ports. The below instantiation statements are all equivalent::

# Set INFLUXDB_NO_DATAFRAME_CLIENT to skip the expensive DataFrameClient
# import in cases where you only need the basic InfluxDBClient.
os.environ["INFLUXDB_NO_DATAFRAME_CLIENT"] = "1"

from influxdb import InfluxDBClient

# using Http
Expand Down
2 changes: 2 additions & 0 deletionsexamples/tutorial.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,8 @@

import argparse

import os
os.environ["INFLUXDB_NO_DATAFRAME_CLIENT"] = "1"
from influxdb import InfluxDBClient


Expand Down
9 changes: 7 additions & 2 deletionsinfluxdb/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,16 +6,21 @@
from __future__ import print_function
from __future__ import unicode_literals

import os

from .client import InfluxDBClient
from .dataframe_client import DataFrameClient
from .helper import SeriesHelper


__all__ = [
'InfluxDBClient',
'DataFrameClient',
'SeriesHelper',
]

NO_DATAFRAME_CLIENT = os.environ.get("INFLUXDB_NO_DATAFRAME_CLIENT", "0")
if NO_DATAFRAME_CLIENT.lower() not in ("1", "true"):
from .dataframe_client import DataFrameClient # noqa: F401 unused import
__all__.append("DataFrameClient")


__version__ = '5.3.0'

[8]ページ先頭

©2009-2025 Movatter.jp