Giter Site home page Giter Site logo

sleekify's Introduction

Sleekify

Sleekify is a minimalistic, highly-performant, asychronous Python REST API framework. It's been designed with simplicity as the main focus, aiming to provide a straightforward and efficient way to create robust Web API's, drawing inspiration from both Express.js and FastAPI.

Features

  • Simple & Expressive: Sleekify is easy to write, with simple expressive syntax.
  • Async-first: Built on the asynchronous server methodology, enabling high performance and speed in concurrency.
  • Flexible: Supports a wide range of request handling features from simple routes to complex parameter parsing.
  • Validated: Uses Python Type hints, typing to ensure your requests are properly validated and sanitised.
  • Easy Setup: You can get up and running in just a few lines of code!

Installation

Install using:

pip

pip install sleekify

conda

conda create --name my_env python=3.11 -y
conda activate sleekify
pip install sleekify

Quick Start

To get started with Sleekify, you can set up a basic web application with several routes as shown below:

from sleekify import App, Request

app = App()

@app.get("/")
async def endpoint():
    return {"message": "Welcome to Sleekify!"}

Running Your App

To run your Sleekify application, use an ASGI server such as Uvicorn:

pip install uvicorn

Then, replace module_name with the name of the Python file where your app is defined. For example: If your app is in the root directory of your project, use: uvicorn app:app --reload --port 8080

uvicorn module_name:app --reload

Running Tests

To run the Sleekify internal testing suite that uses pytest-asyncio and httpx, run the following command:

pytest test.py

Developer Start

  • pip install -r requirements.txt
  • uvicorn app:app --reload
  • curl http://localhost:8000/hello
  • pytest test.py

Documentation and Support

Documentation is currently being developed to better outline usage. If you need support, please contact the developer directly: [email protected] / https://x.com/0mjs_

sleekify's People

Contributors

0mjs avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.