Repository navigation
Aggify 1.0: async-first MongoDB ODM rewrite (no MongoEngine) - #154
Merged
Merged
Conversation
Drop MongoEngine entirely. Aggify is now an ODM on pymongo's native MongoClient / AsyncMongoClient with a Django-style API. - Documents, typed fields, Meta options, managers, signals, indexes, change tracking (save() sends only changed fields), optimistic locking - Lazy immutable QuerySet with sync + async twins, automatic joins across references, Q/F, 25 lookups, values/annotate/aggregate, update operators and expression (pipeline) updates, bulk operations - Immutable, schema-aware pipeline builder (Aggify) covering the common stages ($facet, $bucket, $setWindowFields, $graphLookup, $merge, ...) - Transactions (ContextVar based), one async client per event loop - Integrations: Pydantic, FastAPI, gRPC (grpc.aio), Django (app, forms, shortcuts, middleware, ObjectIdField for Django ORM models) - Security: operator-injection prevention via typed fields, escaped regex lookups, server-side JS blocked, validated names, strict constructors, resource limits, masked credentials - Tests: unit, integration against a real replica set, Hypothesis differential and security property tests, framework end-to-end tests - Docs (mkdocs), cookbook, migration guides, Persian overview, CI, tox Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ot take args) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #154 +/- ##
============================================
- Coverage 100.00% 83.87% -16.13%
============================================
Files 12 29 +17
Lines 1087 4819 +3732
Branches 0 849 +849
============================================
+ Hits 1087 4042 +2955
- Misses 0 512 +512
- Partials 0 265 +265 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete rewrite of Aggify as a standalone async-first MongoDB ODM with a Django-style API.
MongoClient/AsyncMongoClient), no MongoEngineQ/F, expressions, update operatorsSee CHANGELOG.md and docs/migration/aggify-0.md for breaking changes.
🤖 Generated with Claude Code