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.7.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file turborest-0.1.7.tar.gz
.
File metadata
- Download URL: turborest-0.1.7.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b8d007e15b01cf827c93bd87c646c2d6309fea9ce4d2fd1bf107e4432b3e05 |
|
MD5 | 956ca3f82094460b7c41abd9084ee3bf |
|
BLAKE2b-256 | 007ba333d1d3eab4756f641d87160abfad7bd07cbd44e645a63c6f836a57689f |
File details
Details for the file turborest-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: turborest-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6062867d92b3381f9bbe34c092455f6a44a7cf7081b385f2f1bbde20dc818833 |
|
MD5 | 1ead07b16f79ef5a0772d53592eb84ef |
|
BLAKE2b-256 | 792f66fe391f5e04c483ece06f4e4530569435925233dc959e97e3a3415a50ed |