File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ manylinux2014_aarch64:
5959manylinux2014_x86_64 :
6060 python setup.py bdist_wheel --py-limited-api=cp38 --plat-name manylinux2014_x86_64
6161
62- PDOC_OPTS=--logo ='https://www.fluvio.io/images/assets/fluvio-with-text.svg ' --favicon='https://www.fluvio.io/images/favicon.ico'
62+ PDOC_OPTS=--logo ='https://www.fluvio.io/img/infinyon-gradient.png ' --favicon='https://www.fluvio.io/images/favicon.ico'
6363
6464docs-serve : venv-pip build-dev
6565 $(PYTHON ) -m pdoc fluvio $(PDOC_OPTS )
Original file line number Diff line number Diff line change @@ -24,6 +24,28 @@ This will get the wheel for the os/architecture of the installation system if av
2424
2525# Example Usage
2626
27+ ## Creating a Topic
28+
29+ ``` python
30+ fluvio_admin = FluvioAdmin.connect()
31+ fluvio_admin.create_topic(" a_topic" )
32+ ```
33+
34+ Or just create a topic with custom settings:
35+
36+ ``` python
37+ import fluvio
38+
39+ fluvio_admin = FluvioAdmin.connect()
40+ topic_spec = (
41+ TopicSpec.create()
42+ .with_retention_time(" 1h" )
43+ .with_segment_size(" 10M" )
44+ .build()
45+ )
46+ fluvio_admin.create_topic(" a_topic" , topic_spec)
47+ ```
48+
2749## Producer
2850``` python
2951from fluvio import Fluvio
You can’t perform that action at this time.
0 commit comments