Repository navigation
Aggify 1.0: async-first MongoDB ODM rewrite (no MongoEngine) - #154
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>
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false |
There was a problem hiding this comment.
Hey @mohamadkhoshnava, I'm an undergrad researching fail-fast in GitHub Actions and ran into your project on building MongoDB aggregation pipelines in Python. I noticed this PR set fail-fast: false on the test matrix in python-app.yml (October 2026), about 3 years after the matrix was added. Curious what made you switch it off then, and why not earlier?
Would love to hear your thinking if you have a minute. Thanks!
Derek
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