project-utils-2023


Nameproject-utils-2023 JSON
Version 0.3.18 PyPI version JSON
download
home_pagehttps://gitee.com/mylx2014/project-utils.git
Summarypython project_utils tools
upload_time2024-01-15 14:05:15
maintainer
docs_urlNone
authormylx2014
requires_python
licenseMIT
keywords python utils project utils aiofiles
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # project-utils

#### 介绍
project-utils 基于python3 的工具包

#### 软件架构
使用时继承相应类即可


#### 安装教程
```shell
pip3 install project-project_utils-2023
```

#### 使用说明
1. 安装以下格式创建工程
   - config
     - config.ini
       ```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 =
       ```

   - data
   - logs
   - output
   - src
   - tmp
## example

```python
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")

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitee.com/mylx2014/project-utils.git",
    "name": "project-utils-2023",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,utils,project utils,aiofiles",
    "author": "mylx2014",
    "author_email": "mylx2014@163.com",
    "download_url": "https://files.pythonhosted.org/packages/04/8a/bb4b638513b6216f29604d9de40947a01bb2c95bb6ebb623fe29c25f23ab/project-utils-2023-0.3.18.tar.gz",
    "platform": null,
    "description": "# project-utils\n\n#### \u4ecb\u7ecd\nproject-utils \u57fa\u4e8epython3 \u7684\u5de5\u5177\u5305\n\n#### \u8f6f\u4ef6\u67b6\u6784\n\u4f7f\u7528\u65f6\u7ee7\u627f\u76f8\u5e94\u7c7b\u5373\u53ef\n\n\n#### \u5b89\u88c5\u6559\u7a0b\n```shell\npip3 install project-project_utils-2023\n```\n\n#### \u4f7f\u7528\u8bf4\u660e\n1. \u5b89\u88c5\u4ee5\u4e0b\u683c\u5f0f\u521b\u5efa\u5de5\u7a0b\n   - config\n     - config.ini\n       ```ini\n       [BASE]\n       data_url = data\n       log_url = logs\n       output_url = output\n       tmp_url = tmp\n       [MYSQL]\n       host = \n       port = \n       user = \n       password = \n       database = \n       \n       [REDIS]\n       host = \n       port = \n       password = \n       db = \n       \n       [SYSTEM]\n       path =\n       ```\n\n   - data\n   - logs\n   - output\n   - src\n   - tmp\n## example\n\n```python\nimport asyncio\n\nfrom project_utils.web.django import CeleryConfig\n\nfrom new_utils import settings\n\n\nclass Config(CeleryConfig):\n    settings = settings\n    max_length = 256\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.loop = asyncio.get_event_loop()\n\n    def django_setting_init(self):\n        super().django_setting_init()\n        # self.settings.DEBUG = False\n        self.add_allowed_hosts(\"*\")\n        self.add_app(\"rest_framework\")\n        self.add_app(\"user\")\n        self.add_middleware(\"middleware.my_middle.MyMiddleware\")\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "python project_utils tools",
    "version": "0.3.18",
    "project_urls": {
        "Homepage": "https://gitee.com/mylx2014/project-utils.git"
    },
    "split_keywords": [
        "python",
        "utils",
        "project utils",
        "aiofiles"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "66352a6205457878816d81ece76d4810de0c24aed7580682665d238a4dc039eb",
                "md5": "32aefd8f66e8b1895d78055fce807645",
                "sha256": "7adde157e1f1cd1eccb064f033b068047ae3aeeb051623df214fc6b89d993abe"
            },
            "downloads": -1,
            "filename": "project_utils_2023-0.3.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32aefd8f66e8b1895d78055fce807645",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 56173,
            "upload_time": "2024-01-15T14:05:26",
            "upload_time_iso_8601": "2024-01-15T14:05:26.426280Z",
            "url": "https://files.pythonhosted.org/packages/66/35/2a6205457878816d81ece76d4810de0c24aed7580682665d238a4dc039eb/project_utils_2023-0.3.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "048abb4b638513b6216f29604d9de40947a01bb2c95bb6ebb623fe29c25f23ab",
                "md5": "d333ecde27b3bf9f90f8829fa419a781",
                "sha256": "6567329a512730e17ed4e89c01ab6fd9b039fae12d4a7f7a7c778def40d1a80e"
            },
            "downloads": -1,
            "filename": "project-utils-2023-0.3.18.tar.gz",
            "has_sig": false,
            "md5_digest": "d333ecde27b3bf9f90f8829fa419a781",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28883,
            "upload_time": "2024-01-15T14:05:15",
            "upload_time_iso_8601": "2024-01-15T14:05:15.913285Z",
            "url": "https://files.pythonhosted.org/packages/04/8a/bb4b638513b6216f29604d9de40947a01bb2c95bb6ebb623fe29c25f23ab/project-utils-2023-0.3.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-15 14:05:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "project-utils-2023"
}
        
Elapsed time: 0.25959s