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.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for turborest-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2bf7393564214a9479152d650ee1ff9d9ce0e90465ff9395609e3fef35c94b7 |
|
MD5 | fc7ab6953ab052546a3ab2d2888ce8b1 |
|
BLAKE2b-256 | 739e40389a135205cb24f30ee26c036d0a49c3072a0a0ebcade4ce8cd227b260 |