{"id":34066775,"url":"https://github.com/ketgo/nameko-mongoengine","last_synced_at":"2026-04-18T16:38:58.845Z","repository":{"id":57444767,"uuid":"225550108","full_name":"ketgo/nameko-mongoengine","owner":"ketgo","description":"MongoEngine dependency provider for Nameko microservice framework ","archived":false,"fork":false,"pushed_at":"2022-03-07T06:41:34.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T07:28:03.488Z","etag":null,"topics":["database","microservices","mongodb","mongoengine","nameko","nosql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ketgo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2019-12-03T06:45:10.000Z","updated_at":"2022-03-07T06:41:37.000Z","dependencies_parsed_at":"2022-09-26T17:30:35.840Z","dependency_job_id":null,"html_url":"https://github.com/ketgo/nameko-mongoengine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ketgo/nameko-mongoengine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketgo%2Fnameko-mongoengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketgo%2Fnameko-mongoengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketgo%2Fnameko-mongoengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketgo%2Fnameko-mongoengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ketgo","download_url":"https://codeload.github.com/ketgo/nameko-mongoengine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketgo%2Fnameko-mongoengine/sbom","scorecard":{"id":556538,"data":{"date":"2025-08-11","repo":{"name":"github.com/ketgo/nameko-mongoengine","commit":"94b4a41dfa845cec8b48f874c0b64658a1c4bef6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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-20T12:30:19.875Z","repository_id":57444767,"created_at":"2025-08-20T12:30:19.876Z","updated_at":"2025-08-20T12:30:19.876Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","microservices","mongodb","mongoengine","nameko","nosql"],"created_at":"2025-12-14T06:48:59.363Z","updated_at":"2026-04-18T16:38:58.833Z","avatar_url":"https://github.com/ketgo.png","language":"Python","readme":"# nameko-mongoengine\n\n[![Build Status](https://travis-ci.com/ketgo/nameko-mongoengine.svg?branch=master)](https://travis-ci.com/ketgo/nameko-mongoengine)\n[![codecov.io](https://codecov.io/gh/ketgo/nameko-mongoengine/coverage.svg?branch=master)](https://codecov.io/gh/ketgo/nameko-mongoengine/coverage.svg?branch=master)\n[![Apache 2.0 licensed](https://img.shields.io/badge/License-Apache%202.0-yellow.svg)](LICENSE)\n---\n\nMongoEngine dependency provider for [Nameko](https://github.com/nameko/nameko) microservice framework.\n\n## Installation\n\n```bash\npip install nameko-mongoengine\n```\n\n## Usage\n\nThe basic usage of the dependency provider is shown:\n```python\nfrom mongoengine import Document, fields\nfrom nameko_mongoengine import MongoEngine\nfrom nameko.rpc import rpc\n\n\nclass MyModel(Document):\n    \"\"\"\n        My document model\n    \"\"\"\n    info = fields.StringField(required=True)\n\n\nclass MockService:\n    name = \"mock_service\"\n    engine = MongoEngine()\n\n    @rpc\n    def write(self, info):\n        model = MyModel()\n        model.info = info\n        model.save()\n        return model\n\n    @rpc\n    def read(self, _id):\n        return MyModel.objects.get(id=_id)\n```\n\nThe dependency `engine` exposes standard `pymongo` interface to database connections. The default connection can be accessed by the `db` property:\n```python\nclass MockService:\n    name = \"mock_service\"\n    engine = MongoEngine()\n\n    @rpc\n    def get(self, _id):\n        return self.engine.db.your_collection.find_one({'_id': _id})\n```\nOther database connections defined by `MongoEngine` aliases can be accessed by:\n```python\n@rpc\ndef get(self, _id):\n    db = self.engine.with_alias(\"your_alias\").db\n    return db.your_collection.find_one({'_id': _id})\n```\n\nSee full [example](https://github.com/ketgo/nameko-mongoengine/tree/master/example) for more details.\n\n## Configurations\n\nThe dependency configurations can be set in nameko `config.yaml` [file](https://docs.nameko.io/en/stable/cli.html), or by environment variables. \n\n### Config File\n\n```yaml\nMONGODB_URI: mongodb://localhost:27017/dbname?replicaSet=replset\n\n# or\n# ---- with aliases\nMONGODB_URI:\n  default: mongodb://localhost:27017/dbname?replicaSet=replset\n  \"\u003calias\u003e\": \"\u003curi\u003e\"\n```\n\n### Environment Variables\n\n```.env\nMONGODB_URI='mongodb://localhost:27017/dbname?replicaSet=replset'\n\n# or\n# ---- with aliases\nMONGODB_URI='{\"default\": \"mongodb://localhost:27017/dbname?replicaSet=replset\", \"\u003calias\u003e\": \"\u003curi\u003e\"}'\n```\n\n## Developers\n\nTo perform development tasks and run tests run:\n```bash\n$ pip install -e .[dev]\t\t\t# to install all dependencies\n$ docker run -d --restart=always --name some-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3-management   # Run rabbitmq-management server\n$ docker run --rm -d -p 27017:27017 mongo\t\t\t# Run mongodb server on docker\n$ pytest --cov=nameko_mongoengine tests/\t\t\t# to get coverage report\n$ pylint nameko_mongoengine\t\t\t# to check code quality with PyLint\n```\nOptionally you can use `make`.\n\n## Contributions\n\nPull requests always welcomed. Thanks!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fketgo%2Fnameko-mongoengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fketgo%2Fnameko-mongoengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fketgo%2Fnameko-mongoengine/lists"}