{"id":13605194,"url":"https://github.com/nakagami/nmongo","last_synced_at":"2025-12-24T14:17:17.998Z","repository":{"id":57446429,"uuid":"73521283","full_name":"nakagami/nmongo","owner":"nakagami","description":"Yet another MongoDB 3.x driver","archived":false,"fork":false,"pushed_at":"2025-02-07T02:30:18.000Z","size":103,"stargazers_count":20,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-27T23:54:36.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nakagami.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-12T00:12:59.000Z","updated_at":"2025-02-07T02:27:48.000Z","dependencies_parsed_at":"2022-09-02T23:41:08.258Z","dependency_job_id":null,"html_url":"https://github.com/nakagami/nmongo","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/nakagami/nmongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fnmongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fnmongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fnmongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fnmongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakagami","download_url":"https://codeload.github.com/nakagami/nmongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fnmongo/sbom","scorecard":{"id":673322,"data":{"date":"2025-08-11","repo":{"name":"github.com/nakagami/nmongo","commit":"35f7cce27edcc06bc86019975f988ea800dc5113"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/nmongo/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/nmongo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/nmongo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_micropython.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/nmongo/test_micropython.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_micropython.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/nmongo/test_micropython.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:35","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/test_micropython.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T20:51:12.000Z","repository_id":57446429,"created_at":"2025-08-21T20:51:12.000Z","updated_at":"2025-08-21T20:51:12.000Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28003727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:00:55.613Z","updated_at":"2025-12-24T14:17:17.982Z","avatar_url":"https://github.com/nakagami.png","language":"Python","funding_links":[],"categories":["Database","Libraries"],"sub_categories":["Storage"],"readme":"==========\nnmongo\n==========\n\nAzure Cosmos DB for MongoDB client for CPython and MicroPython.\n\nIt has mongo shell like APIs.\n\nSupport platform\n------------------\n\n- CPython 3.11+ https://www.python.org\n- MicroPython\n\nInstall\n----------\n\nCPython\n\n::\n\n   $ python3 -m pip install nmongo\n\n\nMicroPython\n\nGo interactive shell and install with mip as follow.\n\n::\n\n   \u003e\u003e\u003e import mip\n   \u003e\u003e\u003e mip.install(\"datetime\")\n   \u003e\u003e\u003e mip.install(\"\"https://github.com/nakagami/nmongo/blob/master/nmongo.py\"\")\n\nExample\n-----------\n\n\nConnect to Azure CosmosDB\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n\n::\n\n   \u003e\u003e\u003e import nmongo\n   \u003e\u003e\u003e db = nmongo.connect('xxx.mongo.cosmos.azure.com', 'somewhatdatabase', user='xxx', password='password', port=10255, use_ssl=True)\n   \u003e\u003e\u003e\n\n\nCreate\n~~~~~~~\n\n::\n\n   \u003e\u003e\u003e db.fruits.insert({'name': 'apple', 'price': 200})\n   1\n   \u003e\u003e\u003e db.fruits.insert([{'name': 'orange', 'price': 100}, {'name': 'banana', 'price': 50}])\n   2\n   \u003e\u003e\u003e db.fruits.count()\n   3\n   \u003e\u003e\u003e\n\nRead\n~~~~~~~\n\n::\n\n   \u003e\u003e\u003e cur = db.fruits.find({'name': 'banana'})\n   \u003e\u003e\u003e cur.fetchone()\n   {'price': 50, '_id': ObjectId(\"5826b2313d28909ce9f6ea63\"), 'name': 'banana'}\n   \u003e\u003e\u003e cur = db.fruits.find()\n   \u003e\u003e\u003e cur.fetchall()\n   [{'price': 200, '_id': ObjectId(\"5826b2273d28909ce9f6ea61\"), 'name': 'apple'}, {'price': 100, '_id': ObjectId(\"5826b2313d28909ce9f6ea62\"), 'name': 'orange'}, {'price': 50, '_id': ObjectId(\"5826b2313d28909ce9f6ea63\"), 'name': 'banana'}]\n   \u003e\u003e\u003e\n\nUpdate\n~~~~~~~\n\n::\n\n   \u003e\u003e\u003e db.fruits.update({'name': 'banana'}, {'$inc': {'price': 20}})\n   {'nModified': 1, 'ok': 1, 'n': 1}\n   \u003e\u003e\u003e cur = db.fruits.find({'name': 'banana'})\n   \u003e\u003e\u003e cur.fetchone()\n   {'_id': ObjectId(\"5823dd6d3d28909ce9f6e99c\"), 'name': 'banana', 'price': 70}\n   \u003e\u003e\u003e\n\n\nDelete\n~~~~~~~\n\n::\n\n   \u003e\u003e\u003e db.fruits.remove({'name': 'banana'})\n   1\n   \u003e\u003e\u003e db.fruits.count()\n   2\n\nCount each collection records\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n   \u003e\u003e\u003e for collection in db.getCollections():\n   ...     print(collection.name, collection.count())\n   ...\n   fruits 3\n   \u003e\u003e\u003e db.getCollection('fruits').count()\n   3\n   \u003e\u003e\u003e\n\nThis driver uses OP_COMMNAD OP_COMMANDREPLY, which was added in MongoDB3.2 and removed in MongoDB 4.2.\nThese documents have been removed too from the official documentation. Please let me know if there is any good documentation left somewhere.\n\nFeatures Not Implemented\n--------------------------\n\n- GridFS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakagami%2Fnmongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakagami%2Fnmongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakagami%2Fnmongo/lists"}