A library for monitoring files and directories for changes
Project description
TurboREST
TurboREST is a REST API framework for Python 3.7+.
Installation
pip install turborest
Usage
from turborest import Client
def main():
client = Client(format="json")
client.get("https://api.bytesentinel.io/test")
Authentication
from turborest import Client
def main():
auth = ("Bearer", "xyz")
client = Client(format="json", auth=auth)
client.get("https://api.bytesentinel.io/test")
Proxy
from turborest import Client
def main():
proxy = "http://localhost:8080"
client = Client(format="json", proxy=proxy)
client.get("https://api.bytesentinel.io/test")
Advanced Options
from turborest import Client
def main():
proxy = "http://localhost:8080"
endpoint = "https://api.bytesentinel.io/test"
auth = ("Bearer", "xyz")
client = Client(format="json", proxy=proxy, auth=auth)
client.set_user_agent("TestAgent/1.0.0")
client.set_success(print)
client.set_header("X-Test", "Test")
res = client.get(endpoint)
print(res.status_code)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT License
MIT License
TurboREST - A REST API framework for Python 3.7+.
...
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
turborest-0.1.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for turborest-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d743cd01b0d40cb4164df5b02d5c3a228af58cec0280099536d88af1db353492 |
|
MD5 | fdbe36039e8500dafe12e3c6ba44a685 |
|
BLAKE2b-256 | a9fdda0bb41cc802e348d613f5335ddd0bf26bb13c05a52aedefad9027e32481 |