A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
Added the BlockingPortalProvider class to aid with constructing synchronous counterparts to asynchronous interfaces that would otherwise require multiple blocking portals
Added __slots__ to AsyncResource so that child classes can use __slots__ (#733; PR by Justin Su)
Added the TaskInfo.has_pending_cancellation() method
Fixed erroneous RuntimeError: called 'started' twice on the same task status when cancelling a task in a TaskGroup created with the start() method before the first checkpoint is reached after calling task_status.started() (#706; PR by Dominik Schwabe)
Fixed two bugs with TaskGroup.start() on asyncio:
Fixed erroneous RuntimeError: called 'started' twice on the same task status when cancelling a task in a TaskGroup created with the start() method before the first checkpoint is reached after calling task_status.started() (#706; PR by Dominik Schwabe)
Fixed the entire task group being cancelled if a TaskGroup.start() call gets cancelled (#685, #710)
Fixed a race condition that caused crashes when multiple event loops of the same backend were running in separate threads and simultaneously attempted to use AnyIO for their first time (#425; PR by David Jiricek and Ganden Schaffner)
Fixed cancellation delivery on asyncio incrementing the wrong cancel scope's cancellation counter when cascading a cancel operation to a child scope, thus failing to uncancel the host task (#716)
Fixed erroneous TypedAttributeLookupError if a typed attribute getter raises KeyError
Fixed the asyncio backend not respecting the PYTHONASYNCIODEBUG environment variable when setting the debug flag in anyio.run()
Fixed SocketStream.receive() not detecting EOF on asyncio if there is also data in the read buffer (#701)
Fixed MemoryObjectStream dropping an item if the item is delivered to a recipient that is waiting to receive an item but has a cancellation pending (#728)
Emit a ResourceWarning for MemoryObjectReceiveStream and MemoryObjectSendStream that were garbage collected without being closed (PR by Andrey Kazantcev)
Fixed MemoryObjectSendStream.send() not raising BrokenResourceError when the last corresponding MemoryObjectReceiveStream is closed while waiting to send a falsey item (#731; PR by Ganden Schaffner)
This library adheres to Semantic Versioning 2.0 <http://semver.org/>_.
UNRELEASED
Added support for the from_uri(), full_match(), parser methods/properties
in anyio.Path, newly added in Python 3.13
4.4.0
Added the BlockingPortalProvider class to aid with constructing synchronous
counterparts to asynchronous interfaces that would otherwise require multiple blocking
portals
Added __slots__ to AsyncResource so that child classes can use __slots__
([#733](https://github.com/agronholm/anyio/issues/733) <https://github.com/agronholm/anyio/pull/733>_; PR by Justin Su)
Added the TaskInfo.has_pending_cancellation() method
Fixed erroneous RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with the start() method before
the first checkpoint is reached after calling task_status.started()
([#706](https://github.com/agronholm/anyio/issues/706) <https://github.com/agronholm/anyio/issues/706>_; PR by Dominik Schwabe)
Fixed two bugs with TaskGroup.start() on asyncio:
Fixed erroneous RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with the start() method before
the first checkpoint is reached after calling task_status.started()
([#706](https://github.com/agronholm/anyio/issues/706) <https://github.com/agronholm/anyio/issues/706>_; PR by Dominik Schwabe)
Fixed the entire task group being cancelled if a TaskGroup.start() call gets
cancelled ([#685](https://github.com/agronholm/anyio/issues/685) <https://github.com/agronholm/anyio/issues/685>,
[#710](https://github.com/agronholm/anyio/issues/710) <https://github.com/agronholm/anyio/issues/710>)
Fixed a race condition that caused crashes when multiple event loops of the same
backend were running in separate threads and simultaneously attempted to use AnyIO for
their first time ([#425](https://github.com/agronholm/anyio/issues/425) <https://github.com/agronholm/anyio/issues/425>_; PR by David
Jiricek and Ganden Schaffner)
Fixed cancellation delivery on asyncio incrementing the wrong cancel scope's
cancellation counter when cascading a cancel operation to a child scope, thus failing
to uncancel the host task ([#716](https://github.com/agronholm/anyio/issues/716) <https://github.com/agronholm/anyio/issues/716>_)
Fixed erroneous TypedAttributeLookupError if a typed attribute getter raises
KeyError
Fixed the asyncio backend not respecting the PYTHONASYNCIODEBUG environment
variable when setting the debug flag in anyio.run()
Fixed SocketStream.receive() not detecting EOF on asyncio if there is also data in
the read buffer ([#701](https://github.com/agronholm/anyio/issues/701) <https://github.com/agronholm/anyio/issues/701>_)
Fixed MemoryObjectStream dropping an item if the item is delivered to a recipient
that is waiting to receive an item but has a cancellation pending
([#728](https://github.com/agronholm/anyio/issues/728) <https://github.com/agronholm/anyio/issues/728>_)
Emit a ResourceWarning for MemoryObjectReceiveStream and
MemoryObjectSendStream that were garbage collected without being closed (PR by
Andrey Kazantcev)
Updated Request Configuration set up, allowing for default request Configuration
as well as the Request builder custom Requestconfiguration for backward compatibility.
v1.3.0
Changed
Weekly generation with Kiota.
v1.2.0
Added
Added support for form and multipart serialization.
Updated Request Configuration set up, allowing for default request Configuration
as well as the Request builder custom Requestconfiguration for backward compatibility.
[1.3.0] - 2024-04-16
Changed
Weekly generation with Kiota.
[1.2.0] - 2024-03-19
Added
Added support for form and multipart serialization.
Changed
Latest metadata updates from 24th March 2024.
Commits
6907966 Merge pull request #709 from microsoftgraph/hotfix/fix-release
Fixed bug breaking the ability to specify custom SSLContexts in sub-classes of
HTTPAdapter. (#6716)
Fixed issue where Requests started failing to run on Python versions compiled
without the ssl module. (#6724)
v2.32.2
2.32.2 (2024-05-21)
Deprecations
To provide a more stable migration for custom HTTPAdapters impacted
by the CVE changes in 2.32.0, we've renamed _get_connection to
a new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of Requests>=2.32.0.
A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)
v2.32.1
2.32.1 (2024-05-20)
Bugfixes
Add missing test certs to the sdist distributed on PyPI.
verify=True now reuses a global SSLContext which should improve
request time variance between first and subsequent requests. It should
also minimize certificate load time on Windows systems when using a Python
version built with OpenSSL 3.x. (#6667)
Requests now supports optional use of character detection
(chardet or charset_normalizer) when repackaged or vendored.
Fixed bug breaking the ability to specify custom SSLContexts in sub-classes of
HTTPAdapter. (#6716)
Fixed issue where Requests started failing to run on Python versions compiled
without the ssl module. (#6724)
2.32.2 (2024-05-21)
Deprecations
To provide a more stable migration for custom HTTPAdapters impacted
by the CVE changes in 2.32.0, we've renamed _get_connection to
a new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of Requests>=2.32.0.
A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)
2.32.1 (2024-05-20)
Bugfixes
Add missing test certs to the sdist distributed on PyPI.
verify=True now reuses a global SSLContext which should improve
request time variance between first and subsequent requests. It should
also minimize certificate load time on Windows systems when using a Python
version built with OpenSSL 3.x. (#6667)
Requests now supports optional use of character detection
(chardet or charset_normalizer) when repackaged or vendored.
This enables pip and o...
_Description has been truncated_
Bumps the python-requirements group with 17 updates in the / directory:
0.6.0
0.7.0
4.3.0
4.4.0
0.1.6
0.2.0
0.16.0
0.17.3
7.0.0
7.1.0
1.3.2
1.3.3
1.1.0
1.4.0
1.30.1
1.30.4
0.18.2
0.21.0
2.7.1
2.7.2
2.18.2
2.18.3
0.19.5
0.19.6
2.31.0
2.32.3
10.2.0.20240511
10.2.0.20240520
4.11.0
4.12.0
0.29.0
0.30.0
3.18.2
3.19.0
Updates
annotated-types
from 0.6.0 to 0.7.0Release notes
Sourced from annotated-types's releases.
Commits
0735cd3
Prepare for 0.7.0 release (#70)0757d41
Improve handling of GroupedMetadata (First try) (#69)99dbac8
AddUnit
type (#65)89e3d2e
Fix IsDigit -> IsDigits (#63)59a50d1
Correct misstatement in README (#62)6693037
suggested fix on typo (#60)195e340
add URLs topyproject.toml
(#58)657ded9
Allowtzinfo
objects forTimezone
(#56)Updates
anyio
from 4.3.0 to 4.4.0Release notes
Sourced from anyio's releases.
Changelog
Sourced from anyio's changelog.
... (truncated)
Commits
053e8f0
Bumped up the versione7f750b
Fixed memory object stream sometimes dropping sent items (#735)9f5f14b
Fixed task group getting cancelled if start() gets cancelled (#717)8b648bc
Adjusted the pull request template3ff5e9a
Rearranged changelog items541d1f8
[pre-commit.ci] pre-commit autoupdate (#734)8a07690
FixMemoryObjectSendStream.send(falsey)
not raisingBrokenResourceError
w...4b3de97
Adjust the headings in the PR templatedfc44cf
Added__slots__
toAsyncResource
(#733)96920b0
Fix typo in PR template (#730)Updates
fixedint
from 0.1.6 to 0.2.0Changelog
Sourced from fixedint's changelog.
Commits
c6f9439
Version bump to v0.2.0035bdca
Add py.typed and .pyi files to setup.pyb25aadc
Documentation updates418c239
Add type hints. Fixes #4.d2dbd20
Remove MutableFixedInt.itruediv (doesn't make sense), add base argument t...Updates
hypercorn
from 0.16.0 to 0.17.3Changelog
Sourced from hypercorn's changelog.
Commits
c405dea
Bump and release 0.17.3bfb0877
Bugfix ensure ExceptionGroup lifespan failures crash the serveredd0aac
Support uvloop >= 0.18 and the loop_factory argumentbc6e1c0
Restore set TCP_NODELAY on TCP sockets7136c61
Bump and release 0.17.2c03a75f
Bugfix pass the correct quic connection to the H3 Protocol494268a
Bump and release 0.17.174d5b95
Revert "Set TCP_NODELAY on sockets"a2e7bce
Bump and release 0.17.0d16b503
Improve the trailing headers supportUpdates
importlib-metadata
from 7.0.0 to 7.1.0Changelog
Sourced from importlib-metadata's changelog.
Commits
f5d6b5f
Finalize2ef3b5f
Merge commit '1711b2c198'1711b2c
Need to include names from test.support for py312 compat.47b14ac
Make MetadataPathFinder.find_distributions a classmethod for consistency with...adc4b12
Ensure tests do not leak references in sys.modules.07d894d
Copy backport of isolated_modules from importlib_resources.e30a16d
Consolidated test support logic in jaraco.test.cpython.41ca039
Moved compatibility tests to the compat package, as they're not included in C...5950f43
Remove legacy logic for Python 3.7.ffa719b
Moved compatibility module to compat package.Updates
microsoft-kiota-abstractions
from 1.3.2 to 1.3.3Commits
Updates
msgraph-sdk
from 1.1.0 to 1.4.0Release notes
Sourced from msgraph-sdk's releases.
Changelog
Sourced from msgraph-sdk's changelog.
Commits
6907966
Merge pull request #709 from microsoftgraph/hotfix/fix-release44c0a49
- fixes changelog entry to match versiondca1a26
Revert "update astroid package version"045491a
Revert "Bump pylint from 3.1.1 to 3.2.0"276cb94
update astroid package versionea7716b
update version01c969b
Merge branch 'main' of github.com:microsoftgraph/msgraph-sdk-pythonb29d073
Merge pull request #706 from microsoftgraph/dependabot/pip/pylint-3.2.027ccaa0
update version9255252
Merge pull request #703 from microsoftgraph/v1.0/pipelinebuild/148567Updates
openai[datalib]
from 1.30.1 to 1.30.4Release notes
Sourced from openai[datalib]'s releases.
Changelog
Sourced from openai[datalib]'s changelog.
Commits
bb0b38d
release: 1.30.4379c6a3
chore: add missing all definitions59855b2
chore(internal): fix lint issue7fff7c8
release: 1.30.399f4939
docs(contributing): update references to rye-up.com302f45a
chore(internal): fix lint issue (#1444)17c2876
chore(internal): bump pyright (#1442)001965b
chore(ci): update rye install location (#1440)5dfe791
release: 1.30.25345823
chore(ci): update rye install location (#1436)Updates
opentelemetry-instrumentation-openai
from 0.18.2 to 0.21.0Release notes
Sourced from opentelemetry-instrumentation-openai's releases.
Changelog
Sourced from opentelemetry-instrumentation-openai's changelog.
Commits
437bcb6
bump: version 0.20.0 → 0.21.02981635
fix(bedrock): support simple string in prompts (#1167)e47a406
fix(langchain): stringification fails for lists of LangChainDocuments
(#1140)f1be585
feat(vertexai):vertexai.generative_models
/llm_model
detection (#1141)365a241
bump: version 0.19.0 → 0.20.0039f8f7
chore(milvus): bump version.py1268b72
fix(anthropic): don't fail if can't count anthropic tokens (#1142)0ef0bc7
fix(ollama): proper unwrapping; limit instrumentations to versions <192da4ad
feat(mistral): implement instrumentation (#1139)811afa3
feat(ollama): implement instrumentation (#1138)Updates
pydantic
from 2.7.1 to 2.7.2Release notes
Sourced from pydantic's releases.
Changelog
Sourced from pydantic's changelog.
Commits
70ac7a0
fix version08d6ed2
Merge branch '2.7' of https://github.com/pydantic/pydantic into 2.742f544a
fix versiona20da21
2.7.2 prep (#9515)f42ae9b
Logfire annoucement (#9362)451f780
Replace__spec__.parent
with__package__
(#9331)Updates
pydantic-core
from 2.18.2 to 2.18.3Release notes
Sourced from pydantic-core's releases.
Commits
fd26293
tests: use zoneinfo instead of pytz (#1304)5228721
Prep for 2.18.3 Release (#1301)a762041
Fix generate_self_schema for Python 3.12+ (#1299)0dcf82a
add test for 1298 (#1300)88a8a30
fix case of checking truthiness ofNotImplemented
(#1298)2415f42
uuid: allow str subclass as input (#1296)f04418b
support big ints in literals and enums (#1297)727deee
Fix str subclass validation for enums (#1273)b777774
fix: keyword only non default argument (#1290)0f8445e
defer to PyO3 i64 extraction to avoid implicit integer casts (#1288)Updates
quart
from 0.19.5 to 0.19.6Changelog
Sourced from quart's changelog.
Commits
2fc6d4f
Bump and release 0.19.6f58d3c8
Switch to the new logosf0f4e7c
Bump actions/cache from 3.3.2 to 4.0.0dda7951
Bump actions/upload-artifact from 3 to 45b90120
Bump actions/download-artifact from 3 to 4f57d5c6
Bump actions/setup-python from 4 to 5e0e9cde
Bump dessant/lock-threads from 4 to 56a45284
avoid ResourceWarning inDataBody.__aiter__
(#302)425f685
Bugfix hold a strong reference to background tasks3508d9a
Fix mypy issuesUpdates
requests
from 2.31.0 to 2.32.3Release notes
Sourced from requests's releases.
... (truncated)
Changelog
Sourced from requests's changelog.