python project_utils tools
Project description
project-utils
介绍
project-utils 基于python3 的工具包
软件架构
使用时继承相应类即可
安装教程
pip3 install project-project_utils-2023
使用说明
- 安装以下格式创建工程
-
config
- config.ini
[BASE] data_url = data log_url = logs output_url = output tmp_url = tmp [MYSQL] host = port = user = password = database = [REDIS] host = port = password = db = [SYSTEM] path =
- config.ini
-
data
-
logs
-
output
-
src
-
tmp
-
example
import asyncio
from project_utils.web.django import CeleryConfig
from new_utils import settings
class Config(CeleryConfig):
settings = settings
max_length = 256
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.loop = asyncio.get_event_loop()
def django_setting_init(self):
super().django_setting_init()
# self.settings.DEBUG = False
self.add_allowed_hosts("*")
self.add_app("rest_framework")
self.add_app("user")
self.add_middleware("middleware.my_middle.MyMiddleware")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
project-utils-flask-1.0.1.tar.gz
(29.8 kB
view hashes)
Built Distribution
Close
Hashes for project-utils-flask-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b80264372414ce60e4a786e3bf65179ea180ffa8d421f9a072cea2625c06a4c |
|
MD5 | 8fb45bceb187e2ae38a76a8d6bae18fc |
|
BLAKE2b-256 | e6507c6a606f1ea6cf13fd174813d0309d5e06f998281dd639ae4c30febe9b84 |
Close
Hashes for project_utils_flask-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4499f59b145745869a7a49f21dc0ed66afbf9c0de5e0b8fa14418a4c96bf5b |
|
MD5 | 9b4630a7e2584589ee80c08df352a8b4 |
|
BLAKE2b-256 | cf7cc6bc84a4db6c033ffa38b25cce3f94d5d2fa674f10369d6af89af1137d45 |