Skip to main content

Python quick example using HTTP requests module

An example using Python and requests module to write and read to ClickHouse

Question

Can I just run HTTP requests to ClickHouse server using requests module?

Answer

Yes, here is the sample code.

Sample expected output:

requirements.txt

See this other KB for steps on how setup your python venv.

· 2 min read