Menu

Package to generate/request a filesystem reference.

This module provides tools to generate/request an ElasticSearch filesystem reference.

class blizzard.elasticfs.Blizzard(url, verify_certs=True)[source]

This class enables us to construct a filesystem resource with ElasticSearch.

add_mapping(index, mapping)[source]

Create an index and add an index.

Parameters

index: str

the index name.

mapping: dict

the index mapping.

delete_index(name)[source]

Delete a specific index.

Parameters

name: str

the name of the index to be deleted.

import_data(actions, thread_count=1)[source]

Method that import one chromsome data in the database.

Parameters

actions: dict

some bulk data to be inserted.

thread_count: int, default 1

size of the threadpool to use for the bulk requests.

list(path)[source]

List the content of the input path.

Parameters

path: str

the path to be listed.

Returns

data: list

the path content.

search(keys=None)[source]

Retrieve the files that matche the filtering keys.

Parameters

keys: list of str, default None

the filtering keys.

Returns

data: list

the requested files.

status(full=False, display=True)[source]

Display the content status.

Parameters

full: bool, default False

if True display the ElasticSearch cluster sttatus.

display: bool, default True

if True display the status.

Returns

result: dict

the ElasticSearch current status.

Follow us

© 2020, blizzard developers .
Inspired by AZMIND template.