Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 171da6c

Browse files
authoredAug 6, 2024
docs: add streaming html docs (#884)
* docs: add streaming html docs * add beta icon * add beta icon in toc.yml
1 parent eb60804 commit 171da6c

File tree

6 files changed

+40
-2
lines changed

6 files changed

+40
-2
lines changed
 

‎bigframes/session/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,9 @@ def read_gbq_table_streaming(
760760
) -> streaming_dataframe.StreamingDataFrame:
761761
"""Turn a BigQuery table into a StreamingDataFrame.
762762
763-
Note: The bigframes.streaming module is a preview feature, and subject to change.
763+
.. note::
764+
765+
The bigframes.streaming module is a preview feature, and subject to change.
764766
765767
**Examples:**
766768

‎bigframes/streaming/dataframe.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,16 @@ def to_pubsub(
191191

192192
@log_adapter.class_logger
193193
class StreamingDataFrame(StreamingBase):
194-
__doc__ = _curate_df_doc(dataframe.DataFrame.__doc__)
194+
__doc__ = (
195+
_curate_df_doc(dataframe.DataFrame.__doc__)
196+
+ """
197+
.. note::
198+
199+
The bigframes.streaming module is a preview feature, and subject to change.
200+
201+
Currently only supports basic projection, filtering and preview operations.
202+
"""
203+
)
195204

196205
# Private constructor
197206
_create_key = object()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bigframes.streaming.dataframe
2+
=============================
3+
4+
.. autoclass:: bigframes.streaming.dataframe.StreamingDataFrame
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
============================
3+
BigQuery DataFrame Streaming
4+
============================
5+
6+
.. automodule:: bigframes.streaming
7+
:members:
8+
:undoc-members:
9+
10+
.. toctree::
11+
:maxdepth: 2
12+
13+
dataframe

‎docs/reference/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ packages.
1111
bigframes.pandas/index
1212
bigframes.ml/index
1313
bigframes.bigquery/index
14+
bigframes.streaming/index

‎docs/templates/toc.yml

+7
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,11 @@
203203
- name: BigQuery built-in functions
204204
uid: bigframes.bigquery
205205
name: bigframes.bigquery
206+
- items:
207+
- name: Overview
208+
uid: bigframes.streaming
209+
- name: StreamingDataFrame
210+
uid: bigframes.streaming.dataframe.StreamingDataFrame
211+
name: bigframes.streaming
212+
status: beta
206213
name: BigQuery DataFrames

0 commit comments

Comments
 (0)
Failed to load comments.