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-2023-0.3.17.tar.gz
(28.8 kB
view hashes)
Built Distribution
Close
Hashes for project-utils-2023-0.3.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a65f4c0fb707d7fa26a4221f987912ae2a272bb532fb55baca1d589741f9c44 |
|
MD5 | c1465d2074ed3b8ef3e04ead5f46a32a |
|
BLAKE2b-256 | 991ca5bc38a8312474d39bac24e917ed5e2e58ae64f1d651c3e849eff63c61d1 |
Close
Hashes for project_utils_2023-0.3.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f73653101a7a00f033fd810ffd1343d173849e16f496406caa83f6546638987 |
|
MD5 | 2af25e3a1c9d00b5303721ed8ed32b6c |
|
BLAKE2b-256 | 3f8cc87fff96aacf51a1f523a6414f592835e78918546e82742d0a702d4776dc |