# Influx 2 python library connect to InfluxData cloud

**URL:** <https://community.influxdata.com/t/influx-2-python-library-connect-to-influxdata-cloud/11553>\
**Category:** InfluxDB 2\
**Tags:** influxdata, influxdb-cloud-2-0\
**Created:** [October 10, 2019, 5:45pm UTC](https://community.influxdata.com/t/influx-2-python-library-connect-to-influxdata-cloud/11553 "2019-10-10T17:45:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TravisT](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/travist/32/3745_2.png) [@TravisT](https://community.influxdata.com/u/TravisT)\
**Post date:** [October 10, 2019, 5:45pm UTC](https://community.influxdata.com/t/influx-2-python-library-connect-to-influxdata-cloud/11553/1 "2019-10-10T17:45:21Z")

</div>

The Python library release is a welcome additions as I start to evaluate Influx for my use-case. One problem is that it is not 100% clear on how to setup and connect the python library to the InfluxData cloud services. Since I am both new and documentation on this is still light, I am not sure where I am having my issues. Clarification and examples would be very helpful and appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![bednar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/bednar/32/3690_2.png) [@bednar](https://community.influxdata.com/u/bednar)\
**Post date:** [October 11, 2019, 8:35am UTC](https://community.influxdata.com/t/influx-2-python-library-connect-to-influxdata-cloud/11553/2 "2019-10-11T08:35:10Z")

</div>

Hi @TravisT ,

I created an example that demonstrate a simplest way how to write and query date with the InfluxDB Cloud.

You could find it here: [GitHub - influxdata/influxdb-client-python: InfluxDB 2.0 python client](https://github.com/influxdata/influxdb-client-python#connect-to-influxdb-cloud)

Regards  
Jakub

---

<div class="post-metadata">

**Author:** ![TravisT](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/travist/32/3745_2.png) [@TravisT](https://community.influxdata.com/u/TravisT)\
**Post date:** [October 11, 2019, 11:04pm UTC](https://community.influxdata.com/t/influx-2-python-library-connect-to-influxdata-cloud/11553/3 "2019-10-11T23:04:46Z")

</div>

Thank you for the update. I was able to get it working. One issue was a typo on my side, but also confusion about adding the port to the URL.

Some thing that would be helpful to note are

- Port requirements (in this case the port is not needed?)
- How to find url based on your dashboard address (right now there is only a single URL for the Alpha)
- User requirements (appears to be none at the moment)
- Changing timeout (not clear and 10seconds is a long default timeout)

I am a little surprised that this information is not available when logging in, but I understand this is a alpha product using recently released api library.

Thanks for all your help and quick response.
