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.
-
Follow us
© 2020, blizzard developers .
Inspired by AZMIND template.
Inspired by AZMIND template.