http server for claimchain blocks
Project description
Simple http-server for “claimchain” blocks. It uses Flask to serve HTTP GET and authenticated PUT requests.
getting started
checkout the repository and edit config.py to sets users/passwords and to set the database directory.
run pip install -e .
run python cchttpserver.py
Then open another terminal and open a python prompt with “python” and type something like:
import requests requests.put("http://USER:PASSWORD@localhost:5000/key1", "data1") r = requests.get("http://localhost:5000/key1") assert r.status_code == 200 requests.delete("http://USER:PASSWORD@localhost:5000/USER/") r = requests.get("http://localhost:5000/key1") assert r.status_code == 404
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
cchttpserver-0.6.1.tar.gz
(5.0 kB
view details)
File details
Details for the file cchttpserver-0.6.1.tar.gz
.
File metadata
- Download URL: cchttpserver-0.6.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: devpi-server/4.7.1 (py2.7.13; linux2)
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552bf480adcb5fbeb009c6f4227d86e44514a235f2e009b6e52c2661fcd09f0d |
|
MD5 | be88434ccfbe3a88c98d77055551db23 |
|
BLAKE2b-256 | e6094442dcf016aae777ce3588c1f86c7be7756cf5dc42a99e970668477be0b8 |