From 4bdd50d25c3557663f2523c5ac4d6d9902b047b8 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 23 Jan 2026 15:24:51 +0800 Subject: [PATCH] add LICENSE --- .gitignore | 1 + LICENSE | 21 +++++++++++++++++++++ README.md | 10 +++++----- pyproject.toml | 2 +- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 LICENSE diff --git a/.gitignore b/.gitignore index 505a3b1..1b0f857 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ wheels/ # Virtual environments .venv +.python-version \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..639ddb1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 chakcy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 81fa487..1e85d6a 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ ### 从源码安装 ```bash -git clone -cd python-module-bank +git clone http://124.71.68.6:3000/chakcy/module_bank.git +cd module-bank pip install -e . ``` @@ -71,13 +71,13 @@ my_package.package_module.hello() ```python # 打包模块或目录 -python -m module_bank.cli pack my_package --db modules.db +mb pack my_package --db modules.db # 列出数据库中的模块 -python -m module_bank.cli list --db modules.db +mb list --db modules.db # 安装导入器并进入交互模式 -python -m module_bank.cli install --db modules.db +mb install --db modules.db ``` ### 编程接口 diff --git a/pyproject.toml b/pyproject.toml index 402e879..83728a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "module_bank" version = "0.1.0" description = "Add your description here" readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.7" dependencies = [] [[tool.uv.index]]