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.12.tar.gz
(7.1 kB
view details)
Built Distribution
File details
Details for the file apies-0.0.12.tar.gz
.
File metadata
- Download URL: apies-0.0.12.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3b032b6d146615b630fc63f7aedd206ff48d38f10f2d95a1f7048fca7ed9f1 |
|
MD5 | ecefee1ed3ce63558d78e9248254ab42 |
|
BLAKE2b-256 | aff0017b2d4a0324c840f9caa472f7755ec27d5e09b4e5bc5683b4d09ae32c97 |
Provenance
File details
Details for the file apies-0.0.12-py2.py3-none-any.whl
.
File metadata
- Download URL: apies-0.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b77c5cc4159eea71ec16bf7441adb65cea49c7ebbdcf4b7b5d1601d757e56e7 |
|
MD5 | bd4e183bc18d8e79ec873abb3b2cf1dc |
|
BLAKE2b-256 | e8eb2cdb970183516202f0b65a456f46d83ae255be476d3ef5fc2d6bb2502b36 |