An open API service indexing awesome lists of open source software.

https://github.com/blackhole-consulting/elasticsearch-micropython

A simple elasticsearch opensearch micropython requests library
https://github.com/blackhole-consulting/elasticsearch-micropython

elasticsearch esp32 micropython opensearch

Last synced: about 1 year ago
JSON representation

A simple elasticsearch opensearch micropython requests library

Awesome Lists containing this project

README

          

# elasticsearch-micropython
A simple elasticsearch opensearch micropython requests library with tls support

## Usage

### Make a POST request

```Python

import opensearch

authtoken = "YOUR AUTH TOKEN"

requests.post("search.blackhole.consulting",9200,"\ncontent-type: application/json\nAuthorization: Bearer "+authtoken,'{"signatures": ["'+r+'","'+v+'"],"compression": true,"packed_context_free_data": "'+memo+'","packed_trx": '+json.dumps(trx)+'}')

```