semvec/pypi-packages huggingface dataset:
btls3 0.1003.1
Useful tools to work with Elastic stack in Python
License: MIT
Keywords: Elastic,ElasticSearch,Elastic Stack,Python 3,Elastic 7

Useful tools to work with Elastic stack in Python

# Description

It consists of two main modules:

- `indextools`: tools to work with Elastic indices
- `doctools`: tools to work with Elastic documents

# Installation

## Normal installation

```bash
pip install elastictools
```

## Development installation

```bash
git clone https://github.com/ncthuc/elastictools.git
cd elastictools
pip install --editable .
```

# Change log

## [0.2.3] - 2019-06-19
- Fix multiple doc_type in mapping

## [0.2.2] - 2019-06-18
- Fix multiple error related to doc_type in ES7
- Update elasticsearch-py to 7.0.2
- Fix bug related to doctype while indexing document in ES 7


## [0.2.1] - 2019-06-18
- Update elasticsearch-py to 7.0.2
- Fix bug related to doctype while indexing document in ES 7

## [0.1.4] - 2018-12-07

### Added
- `DocTools.dump()`
- `DocTools.bulk_insert_from_json()`

## [0.1.3] - 2018-11-09

### Added
- `DocTools.bulk()`
- `DocTools.bulk_insert_from_csv()`
- `IndexTools.create_if_not_exists()`
- `IndexTools.truncate()`

## [0.1.2] - 2018-11-08

### Added
- `HISTORY.md`
- `long_description` in setup.py that contains content of `README.md` and `HISTORY.md`

### Changed
- `N/A`

### Removed
- `N/A`

## [0.0.1] - 2018-11-07

### Added
- `DocTools.make_search_body()`
- `DocTools.search()`
- `DocTools.msearch()`

### Changed

### Removed
afdcli 0.3.2
Seismic waveform downloading client
License: MIT

# Waveform and Station Downloading Client

This tool was created to automate waveform and station data download. Please cite appropriate authorities if you are using the data for non-commercial purposes. Commercial use of the data without permission is forbidden. Please read the printed warnings from the data centers printed out.

## Installation

```sh
pip install numpy
pip install afdcli
```

## Station Data
```
get_stations(network, station, starttime, endtime, **kwargs)
```
Arguments:

`network`: Network code, wildcards allowed (`"T?"`, `"*"`)

`station`: Station code, wildcards allowed (`"B?ZM"`, `"B*"`)

`starttime`: start time string in ISO format at UTC (`"2020-03-27T06:00:13Z"`)

`endtime`: start time string in ISO format at UTC (`"2020-03-28T06:00:13Z"`)

Parameters:

`attach_response`: Returns instrument response

`minlatitude`, `maxlatitude`, `minlongitude`, `maxlongitude`: Window of coordinates of stations

## Waveform Data
```
get_waveforms(network, station, starttime, endtime, **kwargs)
```
Arguments:

`network`: Network code, wildcards allowed (`"T?"`, `"*"`)

`station`: Station code, wildcards allowed (`"B?ZM"`, `"B*"`)

`starttime`: start time string in ISO format at UTC (`"2020-03-27T06:00:13Z"`)

`endtime`: start time string in ISO format at UTC (`"2020-03-28T06:00:13Z"`)

Parameters:

`minlatitude`, `maxlatitude`, `minlongitude`, `maxlongitude`: Window of coordinates of stations

`data_format`: `"mseed"` for miniseed or `"fseed"` for fullseed formats

`filename`: filename to save the file (not implemented)


# Examples

downloading waveforms:
```
from afdcli.client import Client
c = Client()
c.get_waveforms('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z')
```

downloading stations with instrument response
```
from afdcli.client import Client
c = Client()
c.get_stations('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z', instrument_response=True)
```