Excel Provider
This is a REST service that reads data from a EXCEL file and provides them over a REST API. It can provide a data row for each sheet configured.
It provides the following endpoints:
GET /sheets: Get a list of all available sheets and their IDsGET /sheet/<id>: Get the data row for this sheetPOST /refresh: Reload the data from fileGET /spec: Get swagger spec of API
For more information about the endpoints and their parameters, see the /spec endpoint.
Usage
The configuration is done using a YAML file providing the following information
server:
host: "0.0.0.0"
port: 5000
handler:
excel_file: path/to/file.xlsx
sheets:
- "sheet 1"
- "sheet 2"
data_cols:
- "column 1"
- "column 2"
While column 1 is the data column on sheet 1 and column 2 on sheet 2.
Docker Image
Run a Docker image providing the providing backend, for example
docker run \
-v /path/to/config:/app/config.yaml \
-v /path/to/data.xlsx:/app/data.xlsx \
-p 5000:5000 \
cybernop/excel-provider
Python Package
Start the server from the Python package providing the config
python -m excel_provider --config <config file>
Tests
pytest is used for unit tests. Run all tests from the project root.
pytest
Development
For development, install the library as editable using pip
pip install --editable .
and start from the python package.
Metadata
Release files for excel-provider 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| excel_provider-0.1.4.tar.gz | 4.5 kB | Without provenance | Details for excel_provider-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| excel_provider-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for excel_provider-0.1.4-py3-none-any.whl |
Total release size: 10.3 kB
Release files / excel_provider-0.1.4.tar.gz
| Download URL | excel_provider-0.1.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
485728b06db0e3265a77ebe7c65277aac2d19e66efc4817bd71d1a9b697ba9fa
|
|
BLAKE2b-256 checksum How to use checksums |
3dd5a41297bfd6fd4d4e1fd2a5b2fc35a677051a5ea6bf89036534c74ca5108b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure
|
Release files / excel_provider-0.1.4-py3-none-any.whl
| Download URL | excel_provider-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31acb69f1dc4163b2938a130d8fe952f4289374fe74163d57501816dddf97445
|
|
BLAKE2b-256 checksum How to use checksums |
b4d2a8b2a20e81b58823b71a974b240162962ae6e15bd8706598a1dfcb5772f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure
|
Security for excel-provider 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.