An Elasticsearch client for Twisted


Keywords
twisted, elasticsearch
License
BSD-3-Clause
Install
pip install txes2==2.0.1

Documentation

txes2

A Twisted Elasticsearch client loosely based on PyES.

travis coveralls docs

code_issues

Before We Begin

This repo is simply a fork of 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 is. Thanks to all the other contributers who helped make this happen, listed in the Contributors section.

Documentation

Available at Read The Docs.

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 method.
    • Removed delete_by_query method.
    • Removed *_river 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.