influxdata / influxdb-client-python

InfluxDB 2.0 python client
https://influxdb-client.readthedocs.io/en/stable/
MIT License
724 stars 187 forks source link

feat: possibility to precise which config name to load when loading config from file #586

Closed aaalloc closed 1 year ago

aaalloc commented 1 year ago

Closes #585

Proposed Changes

Possibility to precise which config name we want when loading from_config_file

Checklist

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (77cac49) 90.30% compared to head (3577c58) 90.30%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #586 +/- ## ======================================= Coverage 90.30% 90.30% ======================================= Files 39 39 Lines 3455 3456 +1 ======================================= + Hits 3120 3121 +1 Misses 335 335 ``` | [Impacted Files](https://app.codecov.io/gh/influxdata/influxdb-client-python/pull/586?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=influxdata) | Coverage Δ | | |---|---|---| | [influxdb\_client/client/influxdb\_client.py](https://app.codecov.io/gh/influxdata/influxdb-client-python/pull/586?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=influxdata#diff-aW5mbHV4ZGJfY2xpZW50L2NsaWVudC9pbmZsdXhkYl9jbGllbnQucHk=) | `98.78% <ø> (ø)` | | | [influxdb\_client/client/influxdb\_client\_async.py](https://app.codecov.io/gh/influxdata/influxdb-client-python/pull/586?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=influxdata#diff-aW5mbHV4ZGJfY2xpZW50L2NsaWVudC9pbmZsdXhkYl9jbGllbnRfYXN5bmMucHk=) | `88.52% <ø> (ø)` | | | [influxdb\_client/client/\_base.py](https://app.codecov.io/gh/influxdata/influxdb-client-python/pull/586?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=influxdata#diff-aW5mbHV4ZGJfY2xpZW50L2NsaWVudC9fYmFzZS5weQ==) | `97.72% <100.00%> (+<0.01%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.