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.11.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file apies-0.0.11.tar.gz
.
File metadata
- Download URL: apies-0.0.11.tar.gz
- Upload date:
- Size: 7.0 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 | d586f1675a46b3e868f891a96785cf3b5ffc8016002f7b099e1c7cd9f02acdba |
|
MD5 | fbc5f1f8b4d7d118017547bbe6acaf10 |
|
BLAKE2b-256 | 5d81736461c61f4fa4b52323e402cebeff8af47a68d4c5e09c669ed9a88ba9f7 |
Provenance
File details
Details for the file apies-0.0.11-py2.py3-none-any.whl
.
File metadata
- Download URL: apies-0.0.11-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.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 | 929c535faae48b63def3f35bf3023238142dd1067af8b3eecb1ffdb7a041a58e |
|
MD5 | 8b797bcae25b72b84216bb5376281dd9 |
|
BLAKE2b-256 | 5b20dbfe5c11f90a6a62b29e4ba31a1d02a16de303cbe9e72c32ff6f73a425fe |