You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpynosqlc.mongodb# auto-registers MongoDriver# Replace the URL — everything else stays the same:asyncwithawaitDriverManager.get_client('pynosqlc:mongodb://localhost:27017/mydb') asclient:
...
All Drivers
URL
Package
Backend
pynosqlc:memory:
alt-python-pynosqlc-memory
In-memory (testing/CI) — zero dependencies
pynosqlc:mongodb://<host>:<port>/<db>
alt-python-pynosqlc-mongodb
MongoDB (pymongo AsyncMongoClient)
pynosqlc:dynamodb:<region>
alt-python-pynosqlc-dynamodb
AWS DynamoDB (aioboto3)
pynosqlc:cosmosdb:<endpoint>
alt-python-pynosqlc-cosmosdb
Azure Cosmos DB (azure-cosmos aio)
pynosqlc:redis://<host>:<port>
alt-python-pynosqlc-redis
Redis 7 (redis-py async)
pynosqlc:cassandra:<host>:<port>/<keyspace>
alt-python-pynosqlc-cassandra
Cassandra 4 (cassandra-driver)
Filter Operators
Method
Description
Example
.eq(v)
Equal
.where('status').eq('active')
.ne(v)
Not equal
.where('status').ne('deleted')
.gt(v)
Greater than
.where('age').gt(18)
.gte(v)
Greater than or equal
.where('score').gte(100)
.lt(v)
Less than
.where('price').lt(50)
.lte(v)
Less than or equal
.where('qty').lte(0)
.contains(v)
Contains value
.where('tags').contains('python')
.in_(v)
In list
.where('role').in_(['admin', 'user'])
.nin(v)
Not in list
.where('status').nin(['banned'])
.exists(b)
Field exists
.where('email').exists(True)
Chaining Filters
Filters chain with .and_() for multiple conditions, Filter.or_() for alternatives, and .not_() for negation:
frompynosqlc.coreimportFilter# AND: age > 18 AND status == 'active'f=Filter.where('age').gt(18).and_('status').eq('active')
# OR: status == 'trial' OR status == 'premium'f=Filter.or_(
Filter.where('status').eq('trial'),
Filter.where('status').eq('premium'),
)
# NOT: exclude banned usersf=Filter.where('status').eq('banned').not_()
Requirements
Python 3.12+
Async-first: all collection methods are async def
About
A uniform, async NoSQL access facade for Python inspired by Java's JDBC