Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
1. [#180](https://github.com/InfluxCommunity/influxdb3-python/pull/180): Add `flush()` method to `InfluxDBClient3`:
- Allows flushing the write buffer without closing the client when using batching mode.
- Enables applications to ensure data is written before querying, while keeping the client open for further operations.
1. [#185](https://github.com/InfluxCommunity/influxdb3-python/pull/185):
- Add API Reference page on document page
- Remove old document link.
- Add link to document page in README.md

### Bug Fixes

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
</p>

<p align="center">
<a href="https://influxdb3-python.readthedocs.io/en/latest/">
<img src="https://img.shields.io/readthedocs/influxdb3-python/latest" alt="Readthedocs document">
</a>
<a href="https://pypi.org/project/influxdb3-python/">
<img src="https://img.shields.io/pypi/v/influxdb3-python.svg" alt="PyPI version">
</a>
Expand Down
15 changes: 15 additions & 0 deletions docs/api_reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# API Reference

::: __init__.InfluxDBClient3
options:
members:
- from_env
- write
- write_file
- write_dataframe
- query
- query_dataframe
- query_async
- get_server_version
- flush
- close
9 changes: 9 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@ site_name: InfluxDB 3.0 Python Client
docs_dir: .
nav:
- Home: index.md
- API Reference: api_reference.md
plugins:
- include-markdown
- mkdocstrings:
handlers:
python:
paths: [ ../influxdb_client_3 ]
options:
summary: true
show_symbol_type_toc: true
show_symbol_type_heading: true
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
mkdocs
mkdocs-include-markdown-plugin
mkdocstrings
mkdocstrings-python
4 changes: 1 addition & 3 deletions influxdb_client_3/write_client/client/write_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ def __init__(self,

if self._write_options.write_type is WriteType.asynchronous:
message = """The 'WriteType.asynchronous' is deprecated and will be removed in future major version.

You can use native asynchronous version of the client:
- https://influxdb-client.readthedocs.io/en/stable/usage.html#how-to-use-asyncio
You can use native asynchronous version of the client:
"""
# TODO above message has link to Influxdb2 API __NOT__ Influxdb3 API !!! - illustrates different API
warnings.warn(message, DeprecationWarning)
Expand Down
Loading