Command line argumentsΒΆ
Starting a API server from an existing dataset using RestDF
is as simple as
python restdf -m path/to/file.csv
However we have following additional flags that can be used to somewhat configure the API server. Additional configuration options will be added to the project shortly!
Flag |
Expected Dtype |
Description |
example |
---|---|---|---|
|
Path to the dataset |
|
|
|
|
Host for the Flask server |
|
|
|
Port on which to run the server |
|
|
|
Whether to run the server on debug mode |
|
|
|
Name of the API on |
|
|
|
Developer email on |
|
Using all of these options our command to start the server would look something like this
python -m restdf https://raw.githubusercontent.com/cs109/2014_data/master/diamonds.csv --host 0.0.0.0 --port 5555 -d -t "Diamonds Dataset" -e "username@email.com"
this would run start the server on the port number 5555
.