https://github.com/alexhff/pylastic
Simple python CLI to make CRUD operations on Elasticsearch.
https://github.com/alexhff/pylastic
Last synced: 10 months ago
JSON representation
Simple python CLI to make CRUD operations on Elasticsearch.
- Host: GitHub
- URL: https://github.com/alexhff/pylastic
- Owner: AlexHff
- License: mit
- Created: 2020-12-02T23:12:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-03T21:22:31.000Z (over 5 years ago)
- Last Synced: 2025-03-31T03:27:52.616Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pylastic
Simple python CLI to make CRUD operations on Elasticsearch.
## Getting Started
Install Elasticsearch with Docker
```bash
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.10.0
```
Starting a multi-node cluster with Docker Compose
```bash
docker-compose up
```
## Usage
### Create an index
```bash
./pylastic.py -c -u https://www1.ncdc.noaa.gov/pub/data/cdo/samples/PRECIP_HLY_sample_csv.csv -i my_index
```
### Get an index
```bash
./pylastic.py -g -i my_index
```
### Delete an index
```bash
./pylastic.py -d -i my_index
```
### Export an index to a csv file
```bash
./pylastic.py -e -f my_file.csv -i my_index
```
## License
This project is licensed under the MIT License - see the LICENSE.md file for details