A Twisted ElasticSearch client loosely based on PyES

lextoumbourou, updated πŸ•₯ 2022-01-21 19:41:06

txes2

A Twisted Elasticsearch client loosely based on PyES.

|travis| |coveralls| |docs|

|code_issues|

.. |travis| image:: https://travis-ci.org/lextoumbourou/txes2.svg?branch=master :target: https://travis-ci.org/lextoumbourou/txes2 .. |coveralls| image:: https://coveralls.io/repos/lextoumbourou/txes2/badge.png?branch=master :target: https://coveralls.io/r/lextoumbourou/txes2?branch=master .. |code_issues| image:: http://www.quantifiedcode.com/api/v1/project/407655c0058649998742e2bb654db68e/badge.svg :target: http://www.quantifiedcode.com/app/project/407655c0058649998742e2bb654db68e .. |docs| image:: https://readthedocs.org/projects/txes2/badge/?version=latest :target: https://readthedocs.org/projects/txes2/?badge=latest

Before We Begin

This repo is simply a fork of txes <https://github.com/jkoelker/txes>, however, the API has changed enough that I believe a name change was warranted. I also am not representing it as a fork on Github to avoid getting it confused with the 12 other forks of txes that have taken the software in different directions. So for clarity: I am not the original author of this library, jkoelker <https://github.com/jkoelker> is. Thanks to all the other contributers who helped make this happen, listed in the Contributors_ section.

Documentation

Available at Read The Docs <https://txes2.readthedocs.org/en/latest/>_.

.. _Contributors:

License

BSD (as per original project).

Changelog

2.1.0 ^^^^^^

  • ES 5 compatibility thanks to @jwaterhouse.

2.0.1 ^^^^^^

  • Renamed ElasticSearch to Elasticsearch (old name will still be available for backwards compatilibity).
  • Add Elasticsearch.scroller method and converted scan method into a scroller with _doc ordering (thanks @bra-fsn).
  • Add Scroller.delete method for clearing scroller when finished.

2.0.0 ^^^^^^

  • Support for ES 2.x (tested on ES 2.4.2).

  • Removed more_like_this <https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-more-like-this.html>_ method.

  • Removed delete_by_query <https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-delete-by-query.html>_ method.
  • Removed *_river <https://www.elastic.co/blog/deprecating-rivers>_ methods.
  • Removed create_index_if_missing method.
  • Removed delete_index_if_exists method.
  • Updated exception handling code.

0.6.0 (Unreleased) ^^^^^

  • Perform retries and ensure bad nodes are taken out of the pool.

0.5.0 ^^^^^

  • Add support for HTTP auth (for people using Shield or Nginx in front of ES).
  • Add support for HTTPS.

0.4.0 ^^^^^

  • Add support for script_file arg in partial_update (thanks @bra-fsn).
  • Ensure master-only nodes aren't included during Discovery (thanks @zsiddique).

0.3.0 ^^^^^

  • Fixed scan method (thanks @bra-fsn) and deprecated old methods.
  • Various bug fixes and test coverage increases.

0.2.3 ^^^^^

  • Check for connection pool before attempting to close it.
  • Fixed incorrect method names.
  • Small documentation fixes.

0.2.2 ^^^^^

  • Fixed small bug in partial_update method.

0.2.1 ^^^^^

  • Added partial_update method.

0.2.0 ^^^^^

  • Ensure query_params is used consistently across API.
  • Lots of test coverage.
  • Remove legacy methods.
  • Improved support for ES v1.x.

0.1.8 ^^^^^

  • Removed pip internals from setup.py all together.

0.1.7 ^^^^^

  • Ensure url path components are quoted.
  • Fixed used of Pip session (thanks @reversefold).

0.1.6 ^^^^^

  • Fixed issue with setup.py on Pip versions > 6.

0.1.5 ^^^^^

  • Fixed scan method.
  • Increased test coverage.

0.1.4 ^^^^^

  • Fixed delete_by_query method.
  • Increased test coverage.
  • Removed reindex method (relied on an obscure fork of ES).

0.1.3 ^^^^^

  • Split requirements into main/dev.
  • Use treq's persistent arg if no pool passed in.
  • Fixed broken requirements path.
  • Doc updates.

0.1.0 ^^^^^

  • PEP8ified API.
  • Added docs, tests & PyPi.

Contributors

If you contribute to this project, feel free to add your name and/or Github username here.

  • Jason KΓΆlker (@jkoelker) <https://github.com/jkoelker>_ - original author
  • Zuhaib Siddique (@zsiddique) <https://github.com/zsiddique>_
  • Lex Toumbourou (@lextoumbourou) <https://github.com/lextoumbourou>_ - current maintainer
  • Jon Waterhouse (@jwaterhouse) <https://github.com/jwaterhouse>_ - ES 5 compatibility

Issues

Bump ipython from 2.3.1 to 7.16.3

opened on 2022-01-21 19:41:06 by dependabot[bot]

Bumps ipython from 2.3.1 to 7.16.3.

Release notes

Sourced from ipython's releases.

7.9.0

No release notes provided.

7.8.0

No release notes provided.

7.7.0

No release notes provided.

7.6.1

No release notes provided.

7.6.0

No release notes provided.

7.5.0

No release notes provided.

7.4.0

No release notes provided.

7.3.0

No release notes provided.

7.2.0

No release notes provided.

7.1.1

No release notes provided.

7.1.0

No release notes provided.

7.0.1

No release notes provided.

7.0.0

No release notes provided.

7.0.0-doc

No release notes provided.

7.0.0rc1

No release notes provided.

7.0.0b1

No release notes provided.

6.2.1

No release notes provided.

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/lextoumbourou/txes2/network/alerts).

any plan to port this to python3?

opened on 2017-03-26 11:37:04 by rolele

Hi I am getting this error while trying to run txes2

Traceback (most recent call last): File "consumer.py", line 14, in <module> from txes2 import ElasticSearch File "/usr/local/lib/python3.6/site-packages/txes2/__init__.py", line 1, in <module> from txes2.elasticsearch import ElasticSearch # noqa File "/usr/local/lib/python3.6/site-packages/txes2/elasticsearch.py", line 5, in <module> from . import connection, exceptions File "/usr/local/lib/python3.6/site-packages/txes2/connection.py", line 1, in <module> from . import connection_http File "/usr/local/lib/python3.6/site-packages/txes2/connection_http.py", line 6, in <module> from . import exceptions, utils File "/usr/local/lib/python3.6/site-packages/txes2/utils.py", line 4, in <module> from urllib import quote ImportError: cannot import name 'quote'

It seems that this is due to the fact that txes2 is not python3 compatible. Is there any plain to port this to python3?

RFC: Bulk requests should support flushing on a schedule, as well as at a doc count.

opened on 2016-06-27 06:59:32 by lextoumbourou

Currently, when passing bulk=True to index, we flush the bulk (ie send to ES) when we reach a certain count. Think it would be nice if we could do it on a schedule too eg: flush when the count reaches 1000 docs or 3 seconds elapses.

Interested to hear what other think, if anyone is actually reviewing these.

A ping method to check server status would be very nice

opened on 2015-10-12 05:06:59 by dpnova

As per the official python lib: https://github.com/elastic/elasticsearch-py/blob/140ebd022f2262262601fad0782dae91275b2875/elasticsearch/client/init.py#L184

It'd be great to check the status of the connection rather than silently passing and failing when running some other query later.

Cheers!