OpenSearch python client.
Project description
pyops: OpenSearch made easy
OpenSearch python client.
Examples:
# simple example
>>> import pyops
>>> client = pyops.Client(repository_desx="https://example.org")
>>> raw_results = client.search()
# advanced search
>>> raw_results = client.search(params={"{eop:instrument?}": {"value": "SAR"}})
# advandced results filtering
>>> entry_fields = client.get_available_fields()
>>> filtered_results = client.filter_entries([{
>>> "tag": "{http://www.w3.org/2005/Atom}id",
>>> "name": "id"
>>> }, {
>>> "tag": "{http://www.w3.org/2005/Atom}title",
>>> "name": "title"
>>> }, {
>>> "tag": "{http://www.w3.org/2005/Atom}summary",
>>> "name": "summary"
>>> }, {
>>> "tag": "{http://www.w3.org/2005/Atom}published",
>>> "name": "published"
>>> }, {
>>> "tag": "{http://www.w3.org/2005/Atom}updated",
>>> "name": "updated"
>>> }, {
>>> "tag": "{http://www.w3.org/2005/Atom}link",
>>> "name": "link",
>>> "rel": "enclosure"
>>> }])
TODO
- APIs (search, ...)
- documentation
[HOW TO] DEPLOY
Update pyops.__version__.py
python3 setup.py sdist bdist_wheel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyops-0.0.1.tar.gz
(11.9 kB
view hashes)
Built Distribution
pyops-0.0.1-py2.py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for pyops-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa76db29169669a78166e8d32c6577953caf6e22b2d72f20b6b7c12bf69da77 |
|
MD5 | b6abe8fde86d930370678814be559ef0 |
|
BLAKE2b-256 | 2e7dc27f9bca36c47c7d5afa2bc2a806261795e9521869a5887fe57df3efeb70 |