Current collected state Current
Observed since 20 Oct, 16:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
a3mongo is a simple wrapper around pymongo to make it easier to use.
English | 简体中文
a3mongo is a simple wrapper around pymongo to make it easier to use.
pip install a3mongo
CONF = {
'site_a': {
"host": "127.0.0.1",
"port": 27017,
"username": "username",
"password": "password",
"authSource": "site_a",
"authMechanism": "SCRAM-SHA-256"
},
'site_b': {
"host": "127.0.0.1",
"port": 27018,
"username": "username",
"password": "password",
"authSource": "site_b",
"authMechanism": "SCRAM-SHA-256"
}
}
from a3mongo import MongoClientFactory, MongoTable
class SiteUser(MongoTable):
table_name = 'site_user'
db_conf_name = 'site_a'
if __name__ == '__main__':
MongoClientFactory.init_mongo_clients(conf=CONF)
site_user = SiteUser()
site_user.create_table()
site_user.create_index_list(['name', 'gender', 'email'])
site_user.upsert_many([
{'name': 'Alice', 'gender': 'female', 'email': 'alice@example.com'},
{'name': 'Bob', 'gender':'male', 'email': 'bob@example.com'},
{'name': 'Charlie', 'gender': 'male', 'email': 'charlie@example.com'},
])
male_users = site_user.find({'gender':'male'})
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 27 Mar 2025 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-20 | 0 | 2026-10-20T23:03:44.0955032Z |
Observed since 20 Oct, 16:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6340400570d8820979a60e5fc7c0b5a46bb2ad1e4f663ac8cda7a6714fe1fb28