Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 21, 2025

Updates the requirements on beanie to permit the latest version.

Release notes

Sourced from beanie's releases.

2.0.0

Breaking

This release moves away from Motor in favor of the PyMongo Async API. As a consequence of this, some Beanie internal fields and method names have been renamed to remove references to Motor. If you have used the Motor API in your project, please check the official Motor to PyMongo Async migration guide to see what has changed and how to update your code. Lastly, please check the updated Beanie documentation as well.

Beanie API changes

Document

Document.get_motor_collection()Document.get_pymongo_collection() Document.get_settings().motor_dbDocument.get_settings().pymongo_db Document.get_settings().motor_collectionDocument.get_settings().pymongo_collection

Union Document

UnionDocument.get_motor_collection()UnionDocument.get_pymongo_collection() UnionDocument.get_settings().motor_dbUnionDocument.get_settings().pymongo_db UnionDocument.get_settings().motor_collectionUnionDocument.get_settings().pymongo_collection

Views

View.aggregate(...).motor_cursorView.aggregate(...).get_cursor() View.get_settings().motor_dbView.get_settings().pymongo_db View.get_settings().motor_collectionView.get_settings().pymongo_collection

Queries

DocumentModel.aggregate(...).motor_cursorDocumentModel.aggregate(...).get_cursor() DocumentModel.find(...).aggregate(...).motor_cursorDocumentModel.find(...).aggregate(...).get_cursor()

Fields

IndexModelField.from_motor_index_information()IndexModelField.from_pymongo_index_information()

Initializer

multiprocessing_mode attribute was removed from the Initializer class and as a parameter to init_beanie().

What's Changed

New Contributors

Full Changelog: BeanieODM/beanie@1.30.0...2.0.0

Changelog

Sourced from beanie's changelog.

2.0.0 - 2025-07-09

Transform asyncdocmethod[doctype, p, r] into any to fix "incorrect call arguments" warning in pycharm

Fix typos in migrations docs

Motor -> async pymongo

[1.30.0] - 2025-06-10

Docs: update backlink usage of original_field for pydantic v2

Fix: first_or_none no longer mutates findmany object (#1116)

Migration finder skips modules starting with underscore

Docs: update incorrect event-based actions docs

Fix: deprecate bucket_rounding_second in favor of bucket_rounding_seconds in timeseriesconfig

Switch to precommit ci

Drop py3.8 support

Update toml dependency to use tomli instead of toml

Fix failing tests in ci

Fix find type hint for filter args

Fixed attributeerror in merge_model when updating document

Fix bulkwriter.init bug when it has object_class param input

... (truncated)

Commits

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 21, 2025
Updates the requirements on [beanie](https://github.com/roman-right/beanie) to permit the latest version.
- [Release notes](https://github.com/roman-right/beanie/releases)
- [Changelog](https://github.com/BeanieODM/beanie/blob/main/docs/changelog.md)
- [Commits](BeanieODM/beanie@1.30.0...2.0.0)

---
updated-dependencies:
- dependency-name: beanie
  dependency-version: 2.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/beanie-approx-eq-2.0.0 branch from b2f3e7b to 685349b Compare August 13, 2025 18:43
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 21, 2025

Superseded by #184.

@dependabot dependabot bot closed this Nov 21, 2025
@dependabot dependabot bot deleted the dependabot/pip/beanie-approx-eq-2.0.0 branch November 21, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants