Skip to main content

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+.

...
    

Release files for turborest 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turborest 0.1.7
File Size Uploaded
turborest-0.1.7.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for turborest 0.1.7
File Interpreter ABI Platform
turborest-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / turborest-0.1.7.tar.gz

Download URL turborest-0.1.7.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15b8d007e15b01cf827c93bd87c646c2d6309fea9ce4d2fd1bf107e4432b3e05
BLAKE2b-256 checksum
How to use checksums
007ba333d1d3eab4756f641d87160abfad7bd07cbd44e645a63c6f836a57689f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / turborest-0.1.7-py3-none-any.whl

Download URL turborest-0.1.7-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6062867d92b3381f9bbe34c092455f6a44a7cf7081b385f2f1bbde20dc818833
BLAKE2b-256 checksum
How to use checksums
792f66fe391f5e04c483ece06f4e4530569435925233dc959e97e3a3415a50ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page