{"id":37084063,"url":"https://github.com/fuyb1992/es_pandas","last_synced_at":"2026-01-14T10:16:01.074Z","repository":{"id":51068686,"uuid":"219131938","full_name":"fuyb1992/es_pandas","owner":"fuyb1992","description":"Read, write and update large scale pandas DataFrame with Elasticsearch","archived":false,"fork":false,"pushed_at":"2024-11-29T07:09:36.000Z","size":94,"stargazers_count":35,"open_issues_count":6,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-29T08:24:14.281Z","etag":null,"topics":["elasticsearch","large-scale","pandas"],"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/fuyb1992.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-02T09:31:55.000Z","updated_at":"2024-11-29T07:09:40.000Z","dependencies_parsed_at":"2024-11-29T10:20:03.091Z","dependency_job_id":null,"html_url":"https://github.com/fuyb1992/es_pandas","commit_stats":{"total_commits":122,"total_committers":9,"mean_commits":"13.555555555555555","dds":"0.12295081967213117","last_synced_commit":"d2c587d01cbb9a1fce51e6b792154fb4045a349b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/fuyb1992/es_pandas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuyb1992%2Fes_pandas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuyb1992%2Fes_pandas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuyb1992%2Fes_pandas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuyb1992%2Fes_pandas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuyb1992","download_url":"https://codeload.github.com/fuyb1992/es_pandas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuyb1992%2Fes_pandas/sbom","scorecard":{"id":414958,"data":{"date":"2025-08-11","repo":{"name":"github.com/fuyb1992/es_pandas","commit":"bea337b7f48f928320a4bd9a5c9dcfdd982b3f1e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"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":"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":"Code-Review","score":2,"reason":"Found 5/22 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"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":"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: 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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.0.12 not signed: https://api.github.com/repos/fuyb1992/es_pandas/releases/27745199","Warn: release artifact 0.0.12 does not have provenance: https://api.github.com/repos/fuyb1992/es_pandas/releases/27745199"],"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"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","Warn: Project is vulnerable to: PYSEC-2017-74"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:35:32.480Z","repository_id":51068686,"created_at":"2025-08-18T23:35:32.480Z","updated_at":"2025-08-18T23:35:32.480Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["elasticsearch","large-scale","pandas"],"created_at":"2026-01-14T10:16:00.360Z","updated_at":"2026-01-14T10:16:01.069Z","avatar_url":"https://github.com/fuyb1992.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es_pandas\n[![Build Status](https://travis-ci.org/fuyb1992/es_pandas.svg?branch=master)](https://travis-ci.org/fuyb1992/es_pandas) \u003ca href=\"https://996.icu\"\u003e\u003cimg src=\"https://img.shields.io/badge/link-996.icu-red.svg\" alt=\"996.icu\" /\u003e\u003c/a\u003e [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![PyPi version](https://img.shields.io/pypi/v/es_pandas)](https://pypi.org/project/es-pandas/)\n[![Downloads](https://pepy.tech/badge/es-pandas/month)](https://pepy.tech/project/es-pandas)\n\n Read, write and update large scale [pandas](http://pandas.pydata.org/) DataFrame  with [ElasticSearch](https://www.elastic.co/).\n \n\n## Requirements\nThis package should work on Python3(\u003e=3.4) and ElasticSearch should be version 5.x, 6.x or 7.x.\n\nInstallation\nThe package is hosted on PyPi and can be installed with pip:\n```\npip install es_pandas\n```\n#### Deprecation Notice\n\nSupporting of ElasticSearch 5.x will by deprecated in future version.\n\n## Usage\n\n```\nimport time\n\nimport pandas as pd\n\nfrom es_pandas import es_pandas\n\n\n# Information of es cluseter\nes_host = 'localhost:9200'\nindex = 'demo'\n\n# crete es_pandas instance\nep = es_pandas(es_host)\n\n# Example data frame\ndf = pd.DataFrame({'Num': [x for x in range(100000)]})\ndf['Alpha'] = 'Hello'\ndf['Date'] = pd.datetime.now()\n\n# init template if you want\ndoc_type = 'demo'\nep.init_es_tmpl(df, doc_type)\n\n# Example of write data to es, use the template you create\nep.to_es(df, index, doc_type=doc_type, thread_count=2, chunk_size=10000)\n\n# set use_index=True if you want to use DataFrame index as records' _id\nep.to_es(df, index, doc_type=doc_type, use_index=True, thread_count=2, chunk_size=10000)\n\n# delete records from es\nep.to_es(df.iloc[5000:], index, doc_type=doc_type, _op_type='delete', thread_count=2, chunk_size=10000)\n\n# Update doc by doc _id\ndf.iloc[:1000, 1] = 'Bye'\ndf.iloc[:1000, 2] = pd.datetime.now()\nep.to_es(df.iloc[:1000, 1:], index, doc_type=doc_type, _op_type='update')\n\n# Example of read data from es\ndf = ep.to_pandas(index)\nprint(df.head())\n\n# return certain fields in es\nheads = ['Num', 'Date']\ndf = ep.to_pandas(index, heads=heads)\nprint(df.head())\n\n# set certain columns dtype\ndtype = {'Num': 'float', 'Alpha': object}\ndf = ep.to_pandas(index, dtype=dtype)\nprint(df.dtypes)\n\n# infer dtype from es template\ndf = ep.to_pandas(index, infer_dtype=True)\nprint(df.dtypes)\n\n# use query_sql parameter if you want to do query in sql\n\n# Example of write data to es with pandas.io.json\nep.to_es(df, index, doc_type=doc_type, use_pandas_json=True, thread_count=2, chunk_size=10000)\nprint('write es doc with pandas.io.json finished')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuyb1992%2Fes_pandas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuyb1992%2Fes_pandas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuyb1992%2Fes_pandas/lists"}