{"id":20381625,"url":"https://github.com/douglasmoraisdev/elasticsearch_nameko","last_synced_at":"2026-06-09T05:01:53.854Z","repository":{"id":211454148,"uuid":"283288357","full_name":"douglasmoraisdev/elasticsearch_nameko","owner":"douglasmoraisdev","description":"Elasticsearch Dependency for Nameko","archived":false,"fork":false,"pushed_at":"2021-10-19T15:29:28.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-04T22:36:09.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/douglasmoraisdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-07-28T17:57:30.000Z","updated_at":"2020-07-29T17:39:27.000Z","dependencies_parsed_at":"2023-12-08T16:50:53.020Z","dependency_job_id":null,"html_url":"https://github.com/douglasmoraisdev/elasticsearch_nameko","commit_stats":null,"previous_names":["douglasmoraisdev/elasticsearch_nameko"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/douglasmoraisdev/elasticsearch_nameko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Felasticsearch_nameko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Felasticsearch_nameko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Felasticsearch_nameko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Felasticsearch_nameko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douglasmoraisdev","download_url":"https://codeload.github.com/douglasmoraisdev/elasticsearch_nameko/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Felasticsearch_nameko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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-11-15T02:14:35.385Z","updated_at":"2026-06-09T05:01:53.825Z","avatar_url":"https://github.com/douglasmoraisdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Nameko\n\nLib para utilizar Elasticsearch no framework Nameko.\n\n\n## Instalação\nAdicionar ao `requirements.txt` do projeto:\n\n```\ngit+https://github.com/douglasmoraisdev/elasticsearch_nameko.git#egg=elasticsearch_nameko\n```\n\nOU manualmente com PIP:\n```bash\n$ pip install git+https://github.com/douglasmoraisdev/elasticsearch_nameko.git#egg=elasticsearch_nameko\n```\n\n\n\n## Configuração\nA Lib utiliza `o arquivo config.yml` para sua configuração. As mesmas podem ser encontradas no arquivo 'sample.config.yml', e consumidas via arquivo .env, se for o padrão do projeto.\n\n```yml\nELASTIC_HOST: # Host Elasticsearch\nELASTIC_INDEX: # Index Elasticsearch\nELASTIC_PORT: # Porta Elasticsearch\nELASTIC_USER: # Usuario Elasticsearch\nELASTIC_PASS: # Password Elasticsearch\n\n```\n\n## Importação e uso\nPara utilizar o log basta importar o objeto `elasticsearch_nameko` da package e utilizar os métodos.\n\n## Métodos\n\n### bulk_post(bulk_body: list)\nRealiza um post em bulk para o índice configurado.\n\n#### params\n* bulk_body(required, type: list): Lista com o payload a enviar\n\nExemplo:\n```py\nfrom elasticsearch_nameko import ElasticSearch\n\nclass SomeNamekoService:\n\n    name = 'some_nameko_service'\n\n    # Dependencies\n    es = ElasticSearch()\n\n\n    def some_nameko_endpoint(self):\n\n        index_data = [{'field_value': 1},\n                      {'field_value': 2},\n                      {'field_value': 3}\n                    ]\n\n        es.bulk_post(index_data)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasmoraisdev%2Felasticsearch_nameko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglasmoraisdev%2Felasticsearch_nameko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasmoraisdev%2Felasticsearch_nameko/lists"}