An interface to pandas for grid data server.
Project description
This package provides an api for a grid front end to request transformed and aggregated data sets.
It is built around handling the requests from an ag-grid front end client, but could easily be generalized to handle requests from other front ends.
Requirements
Python 3.7 < 3.10 (tested with 3.8 and 3.9). Does not work with 3.10 as numpy build still hasn't been released for 3.10.
Installation:
from source:
cd pdgrid
python setup.py install
or using package manager:
pip install pdgrid
Running an example server
The example server provided is set up to be a python version of the laravel server provided here: (https://github.com/shuheb/ag-grid-angular-laravel-mysql).
Assuming you have a mysql server set up:
$ cd examples
$ msyql -u root
$ mysql> create database sample_data;
$ mysql> source ./create_athletes.sql;
Install the python packages needed to run the server:
pip install -r server_requirements.txt
And now start up the server (from example directory):
$ export FLASK_APP=server
$ python -m flask run --port=8000
If you have started up the front end client (follow readme here: https://github.com/shuheb/ag-grid-angular-laravel-mysql/blob/main/client/README.md) from the laravel example you should be able to see data at http://localhost:4200/
Using other data
In order to serve another dataset you just have to provide a different loading function for the data. No other changes will be necessary on the server side, provided you have updated the front end client to request the corresponding data set.
What is not supported
The pivot feature has not yet been implemented.
Contact me if you'd like help to build a custom server for your needs: svein.lindal@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdgrid-0.1.0.tar.gz.
File metadata
- Download URL: pdgrid-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92dde933fd5a532857ab8ca53df6fd7195df64956891a2e1e39deeccc647bd2
|
|
| MD5 |
845e9f67ff00db1b7c26b607faca17ec
|
|
| BLAKE2b-256 |
bbd33f3ac2a46389ecc3921ea19f70cbfd834061933bdacb844860da9b785a80
|
File details
Details for the file pdgrid-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pdgrid-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ab0f9edfc212a68071cf8a4a27fbeaef0a9d8d4668d4dcc44305defa90583c
|
|
| MD5 |
b130c361ef1e819fb533f2c4c3d2a069
|
|
| BLAKE2b-256 |
a45dc558c34d6f7c18859720ea04316c55bc24ae16fee85d71c00d6d6d469ff7
|