Metadata-Version: 2.1
Name: quickbe
Version: 3.2.2
Summary: Quick and simple back-end infrastructure
Home-page: https://github.com/eldad1221/quickbe
Author: Eldad Bishari
Author-email: eldad@1221tlv.org
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Quick back-end

## What is Quickbe

Quickbe is a Python library that enables you to deliver quick back-end components. 
If you are a technical founder or a developer, use this package to build everything you need to launch and grow high-quality SaaS application.
Every SaaS application needs these components
* Web-services or APIs

## Why Python

It has a strong community, it is fast to learn, it has lots of tools to process and analyze data ... and data is a major key for building a good app :-)

# Web server
Develop your endpoint as functions with annotations for routing and validation.
    
    from quickbe import endpoint, HttpSession

    
    @endpoint(path='hello', validation={'name': {'type': 'string', 'required': True}})
    def say_hello(session: HttpSession):
        name = session.get_parameter('name')
        if name is None:
            name = ''
        return f'Hello {name}'

Run them using Flask or as AWS Lambda function without any changes to your code.

## Build in endpoints
* `/health` - Returns 200 if every thing is OK (e.g: `{"status":"OK","timestamp":"2022-07-25 06:18:54.214674"}`)
* `/<access_key>/set_log_level/<level>` - Set log level
* `/<access_key>/quickbe-server-info` - Get verbose info on the server (endpoints and packages)
* `/<access_key>/quickbe-server-status` - Get server status (uptime, memory utilization, request per seconds and log info)
* `/<access_key>/quickbe-server-environ` - Get all environment variables keys and values
