Metadata-Version: 2.4
Name: unfazed
Version: 0.0.13
Summary: Production ready async python web framework
Author-email: "xin.zhou" <zhouxin576@gmail.com>
License: Copyright (c) 2024, unfazed-eco
        All rights reserved.
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        * Redistributions of source code must retain the above copyright notice, this
          list of conditions and the following disclaimer.
        
        * Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation
          and/or other materials provided with the distribution.
        
        * Neither the name of the {organization} nor the names of its
          contributors may be used to endorse or promote products derived from
          this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: aerich>=0.8.1
Requires-Dist: anyio>=4.7.0
Requires-Dist: asgiref>=3.8.1
Requires-Dist: click>=8.1.8
Requires-Dist: httpx>=0.28.1
Requires-Dist: itsdangerous>=2.2.0
Requires-Dist: jinja2>=3.1.5
Requires-Dist: openapi-pydantic>=0.5.1
Requires-Dist: orjson>=3.10.13
Requires-Dist: pydantic>=2.8.0
Requires-Dist: python-multipart>=0.0.20
Requires-Dist: redis>=5.2.1
Requires-Dist: starlette>=0.45.1
Requires-Dist: tortoise-orm>=0.23.0
Requires-Dist: uvicorn>=0.34.0
Provides-Extra: shell
Requires-Dist: ipython>=9.4.0; extra == 'shell'
Description-Content-Type: text/markdown


![unfazed](docs/images/unfazed-title.png)

<p align="center">
    <em>Production Ready ASGI web framework</em>
</p>


-----

**Documentation**: [unfazed](https://unfazed-eco.github.io/)

-----


Unfazed
----

Unfazed is a production-oriented ASGI web framework focused on building enterprise-grade applications. 100% test coverage, with a robust architecture inspired by Django, it provides high performance、scalability、maintainability、testability web application.


Unfazed offers powerful features:

Core Features:
- pluggable app system
- Built-in command line interface
- Flexible middleware system
- Robust ORM with Tortoise-ORM integration
- Caching for high performance
- Lifespan protocol support

API Development:
- Focus only on correct business logic
- Full OpenAPI/Swagger support
- Serializer framework built on Tortoise-ORM
- Request argument parsing and validation
- Comprehensive test client
- Static files service

Security & Sessions:
- Role-based access control (RBAC)
- Secure session management
- Production-ready admin interface (coming soon)


## Installation

```shell

pip install unfazed


```

## Quick start

1、create a new project

```shell
unfazed-cli startproject -n myproject

cd myproject/src/backend

docker-compose up -d
docker-compose exec unfazed bash


```

2. create a new app

```shell

# add app to project
unfazed-cli startapp -n myapp

```


3. runserver

```shell

uvicorn asgi:application --host 0.0.0.0 --port 9527

```

4. follow tutorial

[unfazed-tutorial](https://unfazed-eco.github.io/)


