https://github.com/mukhopadhyay/restdf
Create a simple API from a DataFrame, with built-in SwaggerUI support.
https://github.com/mukhopadhyay/restdf
dataframe easy-to-use etl flask flask-api pandas pandas-dataframe python rest-api
Last synced: 4 months ago
JSON representation
Create a simple API from a DataFrame, with built-in SwaggerUI support.
- Host: GitHub
- URL: https://github.com/mukhopadhyay/restdf
- Owner: Mukhopadhyay
- License: mit
- Created: 2021-09-25T21:51:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T13:45:44.000Z (over 1 year ago)
- Last Synced: 2024-12-24T20:38:01.248Z (7 months ago)
- Topics: dataframe, easy-to-use, etl, flask, flask-api, pandas, pandas-dataframe, python, rest-api
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RestDF
[](https://www.python.org/)
[](https://flask.palletsprojects.com/en/2.0.x/)[](https://github.com/Mukhopadhyay/restdf/actions)
[](https://restdf.readthedocs.io/en/latest/?badge=latest)
[](https://pypi.org/project/restdf/)[](https://github.com/Mukhopadhyay/restdf/blob/master/LICENSE)
[](http://makeapullrequest.com)**RestDF** is a command line utility for running any `pandas.DataFrame` compatible datasets as a Rest API, with built-in `SwaggerUI` support.
* Source code: [https://github.com/Mukhopadhyay/restdf](https://github.com/Mukhopadhyay/restdf)
* License: [MIT](https://github.com/Mukhopadhyay/restdf/blob/master/LICENSE)
* Documentation: [http://restdf.rtfd.io/](http://restdf.rtfd.io/)### Installing `RestDF`
**RestDF** can be installed from PyPi using
```bash
pip install restdf
```### Getting Started with `RestDF`
The goal of this project was to make the API creation process from a dataset simpler. So, the execution is kept as minimal as possible. For example,
`RestDF` can be run like any other python module using the `-m` flag, additional flags can be used to configure the server.
Following will start a server with [this](https://raw.githubusercontent.com/cs109/2014_data/master/diamonds.csv) dataset on [localhost:5000/docs](http://localhost:5000/docs)```bash
restdf https://raw.githubusercontent.com/cs109/2014_data/master/diamonds.csv
```or,
```bash
python -m restdf https://raw.githubusercontent.com/cs109/2014_data/master/diamonds.csv
```For a more detailed description of all available flags and option please refer to this documentation on [Command Line Arguments](https://restdf.readthedocs.io/en/latest/pages/command-line-arguments.html).
### Endpoints
The responses from `RestDF` can be categorized into following three broad categories:
* `Docs`
* `Metadata`
* `Data`Please refer to [this](https://restdf.readthedocs.io/en/latest/pages/endpoints.html) page for more detailed documentation on the available endpoints.
### Testing:
**RestDF** tests are written using `pytest`. For more detailed documentation on testing this module please go to the following page: [Testing RestDF](https://restdf.readthedocs.io/en/latest/pages/tests.html)### Documentations
Read the documentation online at: [http://restdf.rtfd.io/](http://restdf.rtfd.io/)
Or build it locally from the `docs/` directory using**Linux:**
```bash
make html
```
**Windows**
```bash
make.bat html
```