openfun / ralph

:gear: Ralph, the ultimate Learning Record Store (and more!) for your learning analytics
https://openfun.github.io/ralph/
MIT License
36 stars 15 forks source link

⬆️(project) upgrade python dependencies #617

Open renovate[bot] opened 2 weeks ago

renovate[bot] commented 2 weeks ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
clickhouse-connect <0.6 -> <0.8 age adoption passing confidence
cryptography (changelog) ==43.0.0 -> ==43.0.1 age adoption passing confidence
fastapi (changelog) ==0.112.1 -> ==0.114.2 age adoption passing confidence
httpx (changelog) <0.25.0 -> <0.27.3 age adoption passing confidence
httpx (changelog) <0.27.1 -> <0.27.3 age adoption passing confidence
importlib-metadata >=7.0.1, <8.0 -> >=8.5, <8.6 age adoption passing confidence
mkdocs (changelog) ==1.6.0 -> ==1.6.1 age adoption passing confidence
mkdocs-material (changelog) ==9.5.33 -> ==9.5.34 age adoption passing confidence
mkdocstrings (changelog) ==0.25.2 -> ==0.26.1 age adoption passing confidence
moto (changelog) ==5.0.13 -> ==5.0.14 age adoption passing confidence
mypy (source, changelog) ==1.11.1 -> ==1.11.2 age adoption passing confidence
pytest (changelog) <8.0.0 -> <8.3.4 age adoption passing confidence
pytest-httpx (changelog) <0.23.0 -> <0.30.1 age adoption passing confidence
ruff (source, changelog) ==0.6.2 -> ==0.6.5 age adoption passing confidence
sentry-sdk (changelog) ==2.13.0 -> ==2.14.0 age adoption passing confidence
types-python-dateutil (changelog) ==2.9.0.20240821 -> ==2.9.0.20240906 age adoption passing confidence
types-requests (changelog) <2.32.0.20240713 -> <2.32.0.20240915 age adoption passing confidence

Release Notes

ClickHouse/clickhouse-connect (clickhouse-connect) ### [`v0.7.19`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0719-2024-08-23) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.18...v0.7.19) ##### Bug Fix - Insertion of large strings was triggering an exception. This has been fixed. ### [`v0.7.18`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0718-2024-07-30) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.17...v0.7.18) ##### Bug Fix - In some cases retrieving the os_user as part of the `client data` in the HTTP User-Agent header could throw an exception. This has been fixed (os_user will not be sent in those cases). Clo[https://github.com/ClickHouse/clickhouse-connect/issues/380](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/380)/380. ### [`v0.7.17`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0717-2024-07-24) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.16...v0.7.17) ##### Bug Fix - The client server_tz was not being correctly set if the server timezone was not UTC. This should close [https://github.com/ClickHouse/clickhouse-connect/issues/377](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/377) ##### Improvement - The os user can now be sent as part of the User-Agent HTTP header. To disable this functionality for privacy reasons, set the new common/global setting `send_os_user` to False. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/371](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/371). ### [`v0.7.16`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0716-2024-07-08) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.15...v0.7.16) ##### Improvement - Added the `AsyncClient` wrapper which is intended for `asyncio` environment usage. `AsyncClient` has the same methods with the same parameters as the standard `Client`, but they are coroutines when applicable. Internally, these methods from the `Client` that perform I/O operations are wrapped in a [run_in_executor](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor) call. See also the updated [run_async example](./examples/run_async.py). ### [`v0.7.15`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0715-2024-07-01) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.14...v0.7.15) ##### Bug Fix - If the ClickHouse server was behind an https proxy that required mutual TLS authentication, the client would incorrectly attempt to use ClickHouse mutual TLS instead and authentication would fail. It should now be possible to authenticate correctly in this situation by settings the `verify` parameter to `proxy`. This should close [https://github.com/ClickHouse/clickhouse-connect/issues/370](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/370) ### [`v0.7.14`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0714-2024-06-24) ##### Bug Fix - Fix insert of UUID strings including dashes. Closes [#​368](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/368) ### [`v0.7.13`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0713-2024-06-24) ##### Bug Fixes - Set required minimum version for optional tzlocal dependency. Thanks to [drew-talon](https://redirect.github.com/drew-talon) for reporting the issue and submitting the fix. Closes [#​360](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/360). - Extended the effect of the `show_clickhouse_errors` client setting to exclude showing hostname and port for errors when that setting is False. Thanks to [Andy](https://redirect.github.com/andy1xx8) for the PR! ##### Improvement - Add the ability to bind arbitrary, "heredoc" data (including binary data) into the query, as described [here](https://clickhouse.com/docs/en/sql-reference/syntax#heredoc). To use this functionality, use a single heredoc tag, such as `$my_tag$`, in the query, and add that tag and the associated data into the query method `parameters` argument. For some examples, see the `test_embedded_binary` test in [test_client.py](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/main/tests/integration_tests/test_client.py). Closes [#​363](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/363). ### [`v0.7.12`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0712-2024-06-04) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.11...v0.7.12) ##### Bug Fix - When using `query_df` with a FixedString column with a read format of 'string' (and the default `query_df` setting `use_extended_dtypes=True`), the resulting column in the dataframe will now be correctly set to the (extended) String dtype. Fi[https://github.com/ClickHouse/clickhouse-connect/issues/356](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/356)/356 ### [`v0.7.11`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0711-2024-05-26) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.10...v0.7.11) ##### Improvement - Python or Pandas float value to ClickHouse Decimal now correctly rounds Float values for more accurate conversions. Thanks to [Frederik Eychenié](https://redirect.github.com/feychenie) for the investigation and PR! ### [`v0.7.10`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0710-2024-05-22) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.9...v0.7.10) ##### Bug Fix - Clean up pandas series concatenation issue ### [`v0.7.9`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#079-2024-05-21) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.8...v0.7.9) ##### Bug Fixes - query_df would raise a deprecation warning with recent Pandas version if there were empty blocks. This should be fixed. [https://github.com/ClickHouse/clickhouse-connect/issues/349](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/349)/349 - avoid a warning in timezone handling using the tzlocal library. Thanks to [Tanner](https://redirect.github.com/tstenson) for the fix ##### Improvement - The new client keyword argument `show_clickhouse_errors` controls whether the full ClickHouse error (including possibly sensitive information) is displayed when there is an error in ClickHouse processing. It defaults to True. If False, the simple string 'The ClickHouse server returned an error.' will be displayed. [https://github.com/ClickHouse/clickhouse-connect/issues/344](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/344)sues/344. - Updated to Cython 3.0.10 ##### Improvement ### [`v0.7.8`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#078-2024-04-14) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.7...v0.7.8) ##### Breaking Change - The default behavior of applying the client timezone if the GMT offset of the client matched the GMT offset of the server for the current time has been changed. The new default is to **always** apply the server timezone unless the optional `apply_server_timezone` `get_client` parameter is explicitly set to `False`. The previous behavior could cause confusing results where datetime values would be rendered in a Daylight Savings Time/Summer Time zone when DST was not active, and vice versa. ### [`v0.7.7`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#077-2024-04-03) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.6...v0.7.7) ##### Bug Fix - Fixed client side binding for complex types containing floats or integers that was broken in version 0.7.5. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/335](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/335)/335. ##### Improvement - Added a `raw_stream` method to the Client the returns an io.Base. Use this instead of the `raw_query` method with the (now removed) optional `stream` keyword boolean. Thanks to [Martijn Thé](https://redirect.github.com/martijnthe) for the PR that highlighted the somewhat messy public API. ### [`v0.7.6`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#076-2024-04-01) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.5...v0.7.6) ##### Bug Fix - Fixed issue with SQLAlchemy Point type. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/332](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/332). ### [`v0.7.5`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#075-2024-03-28) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.4...v0.7.5) ##### Bug Fixes - Fixed client side binding for Python format strings using `%d` (int) and `%f` (float) format patterns. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/327](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/327)/327 - Allows empty `data` argument in the initializer of `ExternalFile` / `ExternalData` objects. Thanks to [martijnthe](https://redirect.github.com/martijnthe) for the PR! ### [`v0.7.4`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#074-2024-03-24) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.3...v0.7.4) ##### Improvement - Added the new client method `query_arrow_stream` for streaming PyArrow queries from ClickHouse. Big thanks to [NotSimone](https://redirect.github.com/NotSimone) for the feature and tests! Closes [https://github.com/ClickHouse/clickhouse-connect/issues/155](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/155). ### [`v0.7.3`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#073-2024-03-14) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.2...v0.7.3) ##### Improvement - Add summary field to Cursor object to retrieve the result of 'X-Clickhouse-Summary' header. Thanks to [elchyn-cheliabiyeu](https://redirect.github.com/elchyn-cheliabiyeu) for the PR! ### [`v0.7.2`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#072-2024-03-07) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.1...v0.7.2) ##### Bug Fixes - Inserts into columns with multibyte UTF-8 names were broken. This has been fixed. [https://github.com/ClickHouse/clickhouse-connect/issues/312](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/312) - If the result of applying the precedence of timezones to a column results in an explicit UTC timezone, the datetime object returned should now be timezone naive. This should make the behavior consistent with the [documentation](https://clickhouse.com/docs/en/integrations/python#time-zones). Clo[https://github.com/ClickHouse/clickhouse-connect/issues/308](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/308)/308 (except for a documentation update) - Extraneous semicolons are automatically removed from the end of queries. Addresses the most basic behavior in [https://github.com/ClickHouse/clickhouse-connect/issues/310](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/310). ##### Performance Improvement - Pandas DataFrame returned from the client `query_df` method should be constructed somewhat faster in cases where the data returned in ClickHouse is in many small blocks. Note that performance gains in this use case are somewhat limited because of the memory and copying cost of building a large DataFrame from many smaller ClickHouse Native block structures, so such performance problems should normally be addressed at the query or ClickHouse data storage level (by for example, reducing the number of partitions and/or shards referenced by the query). This may partia[https://github.com/ClickHouse/clickhouse-connect/issues/307](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/307)nnect/issues/307. ### [`v0.7.1`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0719-2024-08-23) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.7.0...v0.7.1) ##### Bug Fix - Insertion of large strings was triggering an exception. This has been fixed. ### [`v0.7.0`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#070-2024-01-22) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.23...v0.7.0) ##### Breaking Change - Python 3.7 builds are no longer part of the wheels deployed to PyPI ##### Bug Fix - Due to a change in default ClickHouse settings, inserts with "named" Tuple types no longer worked with ClickHouse version 24.1 and later. This has been fixed. ##### Improvements - Some types of security and other proxies require additional query parameters on any call to ClickHouse server behind such a proxy. Because the HTTPClient makes certain initialization queries to ClickHouse before any query parameters are set, it was difficult or impossible to create a Client successfully. You can now modify the HTTPClient class level properties `params` and `valid_transport_settings` before calling `get_client` so that such "special" query parameters will be included even on initialization queries. Thanks to [Aleksey Astafiev](https://redirect.github.com/aastafiev) for highlighting the problem and contributing a PR. - In some cases the user make want to disable urllib3 timeout settings `connect_timeout` and `send_receive_timeout` by setting them to none. The same PR from Aleksey Astafiev now allows setting to values to `None` - Update to Cython 3.0.8 ### [`v0.6.23`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0623-2023-12-15) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.22...v0.6.23) ##### Bug Fix - Add missing Nothing SQLAlchemy datatype, which fixes some edge case Superset queries. Thanks to [elchyn-cheliabiyeu](https://redirect.github.com/elchyn-cheliabiyeu) for the PR! ##### Improvement - Avoid concatenation of empty dataframes during `query_df` due to Pandas future warning. Thanks to [Dylan Modesitt](https://redirect.github.com/DylanModesitt) for the PR! ### [`v0.6.22`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0622-2023-12-01) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.21...v0.6.22) ##### Improvements - Fix typo in log message for bad inserts. Thanks to [Stas](https://redirect.github.com/reijnnn) for the fix. - Allow non ClickHouse Cloud tests to run on community Pull Requests - Update to Cython 3.0.6 ##### Bug Fix - `ATTACH` queries were not be correctly processed as "commands". Thanks to [Aleksei Palshin](https://redirect.github.com/alekseipalshin) for the PR! ### [`v0.6.21`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0621-2023-11-23) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.20...v0.6.21) ##### Improvements - Added support for Point type. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/151](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/151). Thanks to [Dhruvit Maniya](https://redirect.github.com/Dhruvit96) for the PR! - Upgraded to Cython 3.0.5 - Change exception handling in C API to stop spamming stderr ### [`v0.6.20`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0620-2023-11-09) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.19...v0.6.20) ##### Bug Fix - Fixed an issue where client side binding of datetimes with timezones would produce the incorrect time string if timezones differed between the client and ClickHouse server. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/268](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/268)/268 ### [`v0.6.19`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0619-2023-11-07) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.18...v0.6.19) ##### Bug Fixes - In some circumstances it was possible to insert a `None` value into a non-Nullable String column. As this could mask invalid input data, any attempt to insert None into a non-Nullable String or LowCardinality(String) will now throw a DataError - Reading a named Tuple column where the Tuple element names contained spaces would fail. In particular this would cause expected failures reading the experimental JSON column type with spaces in the keys. This has been fixed. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/265](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/265)sues/265. Note that handling spaces in column types is tricky and fragile in several respects, so the best approach remains to use simple column names without spaces. ### [`v0.6.18`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0618-2023-10-25) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.17...v0.6.18) ##### Bug Fixes - Reduce the estimated insert block size from 16-32MB to 1-2MB for large inserts. The large data transfers could cause "write timeout" errors in the Python code or "empty query" responses from ClickHouse over HTTPS connections. Sho[https://github.com/ClickHouse/clickhouse-connect/issues/258](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/258)sues/258 - Ensure that the internal client \_progress_interval is positive even if a very small `send_receive_timeout` value is specified. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/259](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/259)/259. Note that a very short `send_receive_timeout` is not recommended. ### [`v0.6.17`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0617-2023-10-21) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.16...v0.6.17) ##### Bug Fix - Fix "negative" Date32 (before 1970-01-01) values for numpy and Pandas queries. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/254](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/254) ### [`v0.6.16`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0616-2023-10-18) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.15...v0.6.16) ##### Bug Fix - Remove bad private import to fix C Linkage. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/252](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/252) ### [`v0.6.15`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0615-2023-10-16) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.14...v0.6.15) ##### Improvement - Added Python 3.12 wheels and CI tests. Note that PyArrow is not yet available for 3.12, but should be soon. See [https://github.com/apache/arrow/issues/37880](https://redirect.github.com/apache/arrow/issues/37880) - The main `clickhouse-connect.get_client` method now displays type hints and ignores non-keyword arguments. Thanks to [Avery Fischer](https://redirect.github.com/biggerfisch) for the usability improvement! - Log messages regarding C optimization availability and JSON library selection have been change from INFO to DEBUG. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/249](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/249)/249 ### [`v0.6.14`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0614-2023-09-22) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.13...v0.6.14) ##### Bug Fixes - Fixed insert error when inserting a zero length string into a FixedString column. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/244](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/244) - Removed unnecessary validate_entrypoints import from top level package **init** that was breaking Python 3.7. Note that Python 3.7 is EOL and will no longer be supported as of January 1, 2024. ### [`v0.6.13`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0613-2023-09-20) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.12...v0.6.13) ##### Bug Fix - Fixed an issue with the automatic retry of "connection reset errors". This should prevent exceptions when the ClickHouse server closes a Keep Alive connection while a new request is in flight. ##### Improvement - Improved support for typing tools by adding a `py.typed` file. Thanks to [Avery Fischer](https://redirect.github.com/biggerfisch) for the contribution. ### [`v0.6.12`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0612-2023-08-30) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.11...v0.6.12) ##### Bug Fix - Nested empty Maps would return an IndexError when queried. [https://github.com/ClickHouse/clickhouse-connect/issues/239](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/239). Thanks to [Ashton Hudson](https://redirect.github.com/CaptainCuddleCube) for the report and the fix ### [`v0.6.11`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0611-2023-08-30) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.10...v0.6.11) ##### Bug fixes - Inserts using Pandas 2.1 would fail due to a removed method in the Pandas library. There is now a workaround/fix for this. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/234](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/234)/234 - Inserts into a FixedString column that were not the expected size could cause corrupt insert blocks and mysterious errors from the ClickHouse server. Validation has been added so that more meaningful error messages are generated if a fixed string value is an invalid size. A reminder that strings which are "too short" for a FixedString column will be padded with 0 bytes, while strings that are "too long" will generate an exception during the insert. ### [`v0.6.10`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0610-2023-08-27) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.9...v0.6.10) ##### Improvement - Add support and tests for the `Object(Nullable('json'))` type, which is sometimes detected by schema inference. ### [`v0.6.9`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#069-2023-08-21) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.8...v0.6.9) ##### Improvements - Logging and exception handling for failed insert transformations has been reworked. If an exception is thrown when attempting to convert Python, Pandas, or Numpy data into ClickHouse Native format, the column name and type will be logged, as well as a stack trace of actual exception (note this may be in the C/Cython code, so the exception data may still be difficult to interpret). This partiall[https://github.com/ClickHouse/clickhouse-connect/issues/229](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/229)t/issues/229. Unfortunately determining data errors on a row level in addition to the column level is not practical in most cases without seriously impacting performance. - Version information has been moved from a top level `VERSION` to a Python `__version__` file in the package. This removes the Python 3.7 dependency on importlib_metadata. - Cython `.pyx`, and `.pxd` files are now included in the PyPI source distribution to improve compatibility with 3rd party build tools. ### [`v0.6.8`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#068-2023-07-18) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.7...v0.6.8) ##### Bug Fix - Fixed client `raw_insert` method when a compression method specified. [https://github.com/ClickHouse/clickhouse-connect/issues/223](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/223) ##### Improvement - Add compression parameter to the clickhouse `tools.insert_file` method. '.gz' and '.gzip' extensions are automatically recognized. ### [`v0.6.7`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#067-2023-07-18) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.6...v0.6.7) ##### Bug Fixes - Fixed an issue for older versions of ClickHouse where the server would send an initial block of 0 rows for larger queries. This would break some queries with LowCardinality columns. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/221](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/221)/221 - Fixed the`compression` alias for the `compress` client setting in SQLAlchemy/Superset DSN urls. ##### Improvements - Upgraded to Cython 3.0.0 final release! - Reversed the internal variable names of keys and indexes for low cardinality columns to be consistent with the ClickHouse server nomenclature. ### [`v0.6.6`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#066-2023-07-07) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.5...v0.6.6) ##### Bug Fix - Inserting into an Enum column from a Pandas DataFrame with integer values only inserted 0 values. This is fixed. [https://github.com/ClickHouse/clickhouse-connect/issues/219](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/219)/219 ### [`v0.6.5`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#065-2023-07-06) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.4...v0.6.5) ##### Bug Fixes - The Client min_version method now ignores unrecognized "text" elements. This could cause issues for unofficial ClickHouse releases. Thanks to [Diego Nieto](https://redirect.github.com/lesandie) for the fix! - In most cases insert query is now sent as part of the POST body instead of as a query parameter. This fixes [https://github.com/ClickHouse/clickhouse-connect/issues/213](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/213)/213. Note that this does not happen for direct file inserts using the `driver.tools` module, since these rely on an unmodified buffered input stream to efficiently upload files. In that case the actual insert query will still be passed as a query parameter. - All datetime objects returned from a query will now be timezone aware. This fixes [https://github.com/ClickHouse/clickhouse-connect/issues/210](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/210). There remains one exception to this -- if the calculated timezone and the local timezone are both UTC, then naive timezones will be used to improve performance in such "all UTC" environments. - Inserting Python dictionaries into a ClickHouse "named" Tuple column now works correctly. Fixes [https://github.com/ClickHouse/clickhouse-connect/issues/215](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/215). Note that using dictionaries for inserts will be noticeably slower than inserting the equivalent Python tuple value (with elements in the correct order) ##### Improvements - Client error messages used to be cut off at 240 characters to avoid creating huge log files. This value is now configurable using the `common.max_error_size` setting. Use `0` for this setting to get the full ClickHouse error message. In addition, the default has been changed to `1024` to capture more SQL errors without needing to modify the global setting value. Thanks to [Ramlah Aziz](https://redirect.github.com/RamlahAziz) for the update! - All Client insert methods now return a simple QuerySummary object, which includes properties `written_rows`, `written_bytes`, and `query_id` calculated from ClickHouse HTTP response headers. A QuerySummary object is also returned from the Client `command` method if the command does not return other data. Closes [https://github.com/ClickHouse/clickhouse-connect/issues/216](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/216) - Version determination no longer indirectly depends on the setuptools `pkg_resources` package. This also avoids some indirect dependency problems. Thanks to [cwegener](https://redirect.github.com/cwegener) for the PR! ### [`v0.6.4`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#064-2023-06-22) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.3...v0.6.4) ##### Bug Fixes - Quote database name when retrieving tables via SQLAlchemy. Fixes the Superset issue [https://github.com/apache/superset/issues/24372](https://redirect.github.com/apache/superset/issues/24372) for recent versions of Superset using clickhouse-connect - Don't rely on the ClickHouse currentDatabase() function to set an explicit database parameter. This should not change functionality when no database is specified in Client creation since ClickHouse will use the user's default database in that situation regardless. [https://github.com/ClickHouse/clickhouse-connect/issues/207](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/207)sues/207 ### [`v0.6.3`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#063-2023-06-16) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.2...v0.6.3) ##### Bug Fix - Inserts into decimal columns first convert the source value to a Python Decimal to work around floating point rounding issues. Fi[https://github.com/ClickHouse/clickhouse-connect/issues/203](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/203)/203 - DateTime64 values were broken for dates before 01-01-1970. This is fixed. [https://github.com/ClickHouse/clickhouse-connect/issues/204](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/204) ### [`v0.6.2`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0623-2023-12-15) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.1...v0.6.2) ##### Bug Fix - Add missing Nothing SQLAlchemy datatype, which fixes some edge case Superset queries. Thanks to [elchyn-cheliabiyeu](https://redirect.github.com/elchyn-cheliabiyeu) for the PR! ##### Improvement - Avoid concatenation of empty dataframes during `query_df` due to Pandas future warning. Thanks to [Dylan Modesitt](https://redirect.github.com/DylanModesitt) for the PR! ### [`v0.6.1`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#0619-2023-11-07) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.6.0...v0.6.1) ##### Bug Fixes - In some circumstances it was possible to insert a `None` value into a non-Nullable String column. As this could mask invalid input data, any attempt to insert None into a non-Nullable String or LowCardinality(String) will now throw a DataError - Reading a named Tuple column where the Tuple element names contained spaces would fail. In particular this would cause expected failures reading the experimental JSON column type with spaces in the keys. This has been fixed. Clo[https://github.com/ClickHouse/clickhouse-connect/issues/265](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/265)sues/265. Note that handling spaces in column types is tricky and fragile in several respects, so the best approach remains to use simple column names without spaces. ### [`v0.6.0`](https://redirect.github.com/ClickHouse/clickhouse-connect/blob/HEAD/CHANGELOG.md#060-2023-06-05) [Compare Source](https://redirect.github.com/ClickHouse/clickhouse-connect/compare/v0.5.25...v0.6.0) ##### Bug Fixes - Use uuid4 instead of uuid1 for generating client level session_ids, as well as use a new urllib3 PoolManager when multiprocessing mode is detected. This should [https://github.com/ClickHouse/clickhouse-connect/issues/194](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/194)/194. Thanks to [Guillaume Matheron](https://redirect.github.com/guillaumematheron) for filing the issue and digging into details. The underlying problem is that the Python uuid1() is not guaranteed to be unique in a `forked` multiprocessing environment. - Change log warning to debug message if numpy is not available for C bindings. This check is harmless if numpy is not installed and should not have produced a warning. Fi[https://github.com/ClickHouse/clickhouse-connect/issues/195](https://redirect.github.com/ClickHouse/clickhouse-connect/issues/195)/195 ##### Improvements - Cython version upgraded to 3.0.0b2 - The block size (number of rows) for chunked/streaming inserts is now dynamically determined based on sample of the insert data. This allows more efficient streaming of large inserts and significantly improves insert performance in some circumstances. - Pivoting row based data to native columns for inserts has been optimized in C. This improves insert performance for large inserts of row oriented data.
pyca/cryptography (cryptography) ### [`v43.0.1`](https://redirect.github.com/pyca/cryptography/compare/43.0.0...43.0.1) [Compare Source](https://redirect.github.com/pyca/cryptography/compare/43.0.0...43.0.1)
fastapi/fastapi (fastapi) ### [`v0.114.2`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.2) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.114.1...0.114.2) ##### Fixes - 🐛 Fix form field regression with `alias`. PR [#​12194](https://redirect.github.com/fastapi/fastapi/pull/12194) by [@​Wurstnase](https://redirect.github.com/Wurstnase). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/request-form-models.md`. PR [#​12175](https://redirect.github.com/fastapi/fastapi/pull/12175) by [@​ceb10n](https://redirect.github.com/ceb10n). - 🌐 Add Chinese translation for `docs/zh/docs/project-generation.md`. PR [#​12170](https://redirect.github.com/fastapi/fastapi/pull/12170) by [@​waketzheng](https://redirect.github.com/waketzheng). - 🌐 Add Dutch translation for `docs/nl/docs/python-types.md`. PR [#​12158](https://redirect.github.com/fastapi/fastapi/pull/12158) by [@​maxscheijen](https://redirect.github.com/maxscheijen). ##### Internal - 💡 Add comments with instructions for Playwright screenshot scripts. PR [#​12193](https://redirect.github.com/fastapi/fastapi/pull/12193) by [@​tiangolo](https://redirect.github.com/tiangolo). - ➕ Add inline-snapshot for tests. PR [#​12189](https://redirect.github.com/fastapi/fastapi/pull/12189) by [@​tiangolo](https://redirect.github.com/tiangolo). ### [`v0.114.1`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.1) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.114.0...0.114.1) ##### Refactors - ⚡️ Improve performance in request body parsing with a cache for internal model fields. PR [#​12184](https://redirect.github.com/fastapi/fastapi/pull/12184) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Docs - 📝 Remove duplicate line in docs for `docs/en/docs/environment-variables.md`. PR [#​12169](https://redirect.github.com/fastapi/fastapi/pull/12169) by [@​prometek](https://redirect.github.com/prometek). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/virtual-environments.md`. PR [#​12163](https://redirect.github.com/fastapi/fastapi/pull/12163) by [@​marcelomarkus](https://redirect.github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/environment-variables.md`. PR [#​12162](https://redirect.github.com/fastapi/fastapi/pull/12162) by [@​marcelomarkus](https://redirect.github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/testing.md`. PR [#​12164](https://redirect.github.com/fastapi/fastapi/pull/12164) by [@​marcelomarkus](https://redirect.github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/debugging.md`. PR [#​12165](https://redirect.github.com/fastapi/fastapi/pull/12165) by [@​marcelomarkus](https://redirect.github.com/marcelomarkus). - 🌐 Add Korean translation for `docs/ko/docs/project-generation.md`. PR [#​12157](https://redirect.github.com/fastapi/fastapi/pull/12157) by [@​BORA040126](https://redirect.github.com/BORA040126). ##### Internal - ⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR [#​12173](https://redirect.github.com/fastapi/fastapi/pull/12173) by [@​dependabot\[bot\]](https://redirect.github.com/apps/dependabot). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#​12176](https://redirect.github.com/fastapi/fastapi/pull/12176) by [@​pre-commit-ci\[bot\]](https://redirect.github.com/apps/pre-commit-ci). - 👷 Update `issue-manager.yml`. PR [#​12159](https://redirect.github.com/fastapi/fastapi/pull/12159) by [@​tiangolo](https://redirect.github.com/tiangolo). - ✏️ Fix typo in `fastapi/params.py`. PR [#​12143](https://redirect.github.com/fastapi/fastapi/pull/12143) by [@​surreal30](https://redirect.github.com/surreal30). ### [`v0.114.0`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.0) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.113.0...0.114.0) You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's `model_config = {"extra": "forbid"}`: ```python from typing import Annotated from fastapi import FastAPI, Form from pydantic import BaseModel app = FastAPI() class FormData(BaseModel): username: str password: str model_config = {"extra": "forbid"} @​app.post("/login/") async def login(data: Annotated[FormData, Form()]): return data ``` Read the new docs: [Form Models - Forbid Extra Form Fields](https://fastapi.tiangolo.com/tutorial/request-form-models/#forbid-extra-form-fields). ##### Features - ✨ Add support for forbidding extra form fields with Pydantic models. PR [#​12134](https://redirect.github.com/fastapi/fastapi/pull/12134) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Docs - 📝 Update docs, Form Models section title, to match config name. PR [#​12152](https://redirect.github.com/fastapi/fastapi/pull/12152) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Internal - ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR [#​12147](https://redirect.github.com/fastapi/fastapi/pull/12147) by [@​tiangolo](https://redirect.github.com/tiangolo). ### [`v0.113.0`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.113.0) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.112.4...0.113.0) Now you can declare form fields with Pydantic models: ```python from typing import Annotated from fastapi import FastAPI, Form from pydantic import BaseModel app = FastAPI() class FormData(BaseModel): username: str password: str @​app.post("/login/") async def login(data: Annotated[FormData, Form()]): return data ``` Read the new docs: [Form Models](https://fastapi.tiangolo.com/tutorial/request-form-models/). ##### Features - ✨ Add support for Pydantic models in `Form` parameters. PR [#​12129](https://redirect.github.com/fastapi/fastapi/pull/12129) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Internal - 🔧 Update sponsors: Coherence link. PR [#​12130](https://redirect.github.com/fastapi/fastapi/pull/12130) by [@​tiangolo](https://redirect.github.com/tiangolo). ### [`v0.112.4`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.112.4) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.112.3...0.112.4) This release is mainly a big internal refactor to enable adding support for Pydantic models for `Form` fields, but that feature comes in the next release. This release shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. It's just a checkpoint. 🤓 ##### Refactors - ♻️ Refactor deciding if `embed` body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in `Form`, `Query` and others. PR [#​12117](https://redirect.github.com/fastapi/fastapi/pull/12117) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Internal - ⏪️ Temporarily revert "✨ Add support for Pydantic models in `Form` parameters" to make a checkpoint release. PR [#​12128](https://redirect.github.com/fastapi/fastapi/pull/12128) by [@​tiangolo](https://redirect.github.com/tiangolo). - ✨ Add support for Pydantic models in `Form` parameters. PR [#​12127](https://redirect.github.com/fastapi/fastapi/pull/12127) by [@​tiangolo](https://redirect.github.com/tiangolo). Reverted to make a checkpoint release with only refactors. ### [`v0.112.3`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.112.3) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.112.2...0.112.3) This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after. 🚀 ##### Refactors - ♻️ Refactor internal `check_file_field()`, rename to `ensure_multipart_is_installed()` to clarify its purpose. PR [#​12106](https://redirect.github.com/fastapi/fastapi/pull/12106) by [@​tiangolo](https://redirect.github.com/tiangolo). - ♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models. PR [#​12103](https://redirect.github.com/fastapi/fastapi/pull/12103) by [@​tiangolo](https://redirect.github.com/tiangolo). - ♻️ Refactor and simplify internal data from `solve_dependencies()` using dataclasses. PR [#​12100](https://redirect.github.com/fastapi/fastapi/pull/12100) by [@​tiangolo](https://redirect.github.com/tiangolo). - ♻️ Refactor and simplify internal `analyze_param()` to structure data with dataclasses instead of tuple. PR [#​12099](https://redirect.github.com/fastapi/fastapi/pull/12099) by [@​tiangolo](https://redirect.github.com/tiangolo). - ♻️ Refactor and simplify dependencies data structures with dataclasses. PR [#​12098](https://redirect.github.com/fastapi/fastapi/pull/12098) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Docs - 📝 Add External Link: Techniques and applications of SQLAlchemy global filters in FastAPI. PR [#​12109](https://redirect.github.com/fastapi/fastapi/pull/12109) by [@​TheShubhendra](https://redirect.github.com/TheShubhendra). - 📝 Add note about `time.perf_counter()` in middlewares. PR [#​12095](https://redirect.github.com/fastapi/fastapi/pull/12095) by [@​tiangolo](https://redirect.github.com/tiangolo). - 📝 Tweak middleware code sample `time.time()` to `time.perf_counter()`. PR [#​11957](https://redirect.github.com/fastapi/fastapi/pull/11957) by [@​domdent](https://redirect.github.com/domdent). - 🔧 Update sponsors: Coherence. PR [#​12093](https://redirect.github.com/fastapi/fastapi/pull/12093) by [@​tiangolo](https://redirect.github.com/tiangolo). - 📝 Fix async test example not to trigger DeprecationWarning. PR [#​12084](https://redirect.github.com/fastapi/fastapi/pull/12084) by [@​marcinsulikowski](https://redirect.github.com/marcinsulikowski). -

Configuration

📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR was generated by Mend Renovate. View the repository job log.