A flask blueprint providing an API for accessing and searching an ElasticSearch index created from source datapackages
Project description
# apies
[![Travis](https://img.shields.io/travis/OpenBudget/apies/master.svg)](https://travis-ci.org/datahq/apies)
[![Coveralls](http://img.shields.io/coveralls/OpenBudget/apies.svg?branch=master)](https://coveralls.io/r/OpenBudget/apies?branch=master)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apies.svg)
apies is a flask blueprint providing an API for accessing and searching an ElasticSearch index created from source datapackages.
## endpoints
TBD
## configuration
Flask configuration for this blueprint:
```python
from apies import apies_blueprint
import elasticsearch
app.register_blueprint(
apies_blueprint(['path/to/datapackage.json', Package(), ...],
elasticsearch.Elasticsearch(...),
'index-to-search-in',
document_doctype='document',
dont_highlight=['fields', 'not.to', 'highlight']),
url_prefix='/search/'
)
```
[![Travis](https://img.shields.io/travis/OpenBudget/apies/master.svg)](https://travis-ci.org/datahq/apies)
[![Coveralls](http://img.shields.io/coveralls/OpenBudget/apies.svg?branch=master)](https://coveralls.io/r/OpenBudget/apies?branch=master)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apies.svg)
apies is a flask blueprint providing an API for accessing and searching an ElasticSearch index created from source datapackages.
## endpoints
TBD
## configuration
Flask configuration for this blueprint:
```python
from apies import apies_blueprint
import elasticsearch
app.register_blueprint(
apies_blueprint(['path/to/datapackage.json', Package(), ...],
elasticsearch.Elasticsearch(...),
'index-to-search-in',
document_doctype='document',
dont_highlight=['fields', 'not.to', 'highlight']),
url_prefix='/search/'
)
```
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
apies-0.0.9.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file apies-0.0.9.tar.gz
.
File metadata
- Download URL: apies-0.0.9.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea4bfa5d00001c2b56d7541c96d147871d2413fda773a78cf767fdf18701eff |
|
MD5 | 5e3120c01a9d17c3e2275cadfd3aaac5 |
|
BLAKE2b-256 | bae88aa55ec8ffdb4c6b9203bf37f5e1a0f32a6e37e7675505824a4e9a52529b |
Provenance
File details
Details for the file apies-0.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: apies-0.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92c9d4460813e17eed64dc493c5caa62a2c7a5ad3b8c0c1cebf24f4150125dc2 |
|
MD5 | dc99a5d44bf3d810572432a7f8195ba1 |
|
BLAKE2b-256 | 40295dae1fcba3ac79f5fa2a17aa466ef468c87314381e0b0337570b886fb577 |