Skip to main content

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 hashes)

Uploaded Source

Built Distribution

turborest-0.1.7-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page