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
- Host: GitHub
- URL: https://github.com/blackhole-consulting/elasticsearch-micropython
- Owner: BlackHole-Consulting
- Created: 2023-02-15T01:08:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T18:20:49.000Z (over 3 years ago)
- Last Synced: 2025-03-29T18:41:38.081Z (about 1 year ago)
- Topics: elasticsearch, esp32, micropython, opensearch
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)+'}')
```