A webservice for scraping files and plotting data against presidential party variation
Project description
patella uses Flask to host an interactive html/css/js frontend through which users can navigate to data and plot it.
Flask Url Paths
patella uses the http GET and POST commands to send data between one page and another. The homepage paths are / and /index from which you can navigate to the rest of the front end.
Install and Run Directions
patella is uploaded to the pip package repository.
To install, simply run pip install patella. A requirements.txt file that comes with the package specifies its dependencies. Install these with pip install -r requirements.txt. It is recommended you run this in a virtual environment so as not to interfere with previous installations.
To start the Flask server, run patella startup <URL>, where URL is the path to be prepended to the page url. Next, use a browser to browse to 127.0.0.1:4444. To access the service from other computers on the same network, use the public ip of the host computer on port 4444. From these two addresses the webservice can be accessed as long as the server is running.
Files
Log Files
A log file will be generated in the path that you run the webservice from named webservice.log. this file includes server reloads, error reporting, logs get and post requests and debugger pins. POST and GET logs are timestamped, but others are not
Data Files
Data files from the webservice will be downloaded to a data/ directory created at runtime in the directory the server is started from. In that directory, all files downloaded from the webservice will be browseable.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file patella-0.1.12.tar.gz
.
File metadata
- Download URL: patella-0.1.12.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0a1146f0de9f1cb052dfc9153b21f927f32b5dcf78dba840bb5e782b833f49a |
|
MD5 | ea16167b6cafb2bca9c3663d4e12fa1d |
|
BLAKE2b-256 | ef422de780296f580e21acdb0191473e40f5f2e8d3b4c0baf8b6529f1a2bdd87 |