readme.md

    tool-api

    提供数据库的API支持,包括增删查改

    安装工具

    1. pip换源
    pip config --global set global.index-url http://mirrors.aliyun.com/pypi/simple/
    pip config --global set install.trusted-host mirrors.aliyun.com
    1. 使用Pipenv管理依赖
    pip install pipenv
    1. 创建虚拟环境

    指定创建环境版本:pipenv --python 3.10 或者 python -m pipenv --python 3.10(如果找不到pipenv,就加该前缀)

    在项目根目录下使用命令pipenv install可以创建一个虚拟的环境

    1. 轻松的去管理依赖, 示例
    # 安装命令
    pipenv install beautifulsoup4   #在项目所在虚拟环境中安装beautifulsoup4
    pipenv install parsel==1.3.1    #安装parsel并指定其版本
    pipenv install --dev nose2      #安装nose2包并将其关联为只在开发环境中需要的包
    
    # 卸载命令
    pipenv uninstall beautifulsoup4 #在项目所在虚拟环境中卸载beautifulsoup4
    pipenv uninstall --all          #从虚拟环境中移除所有已安装的包,但Pipfile.lock文件不受影响
    pipenv uninstall --all--dev     #从虚拟环境中卸载所有开发包,并从Pipfile文件中移除这些包
    
    # 更新命令
    pipenv update requests          #在项目中更新requests包
    pipenv update                   #更新项目中所有的包
    pipenv update --outdated        #查看现有包哪些已经过期
    
    #查看命令
    pipenv grash                    #显示现有的依赖包
    pipenv lock                     #更新Pipfile.lock文件锁定当前环境的依赖版本
    
    #支持requirements.txt
    pipenv install -r requirements.txt

    项目简介

    当前项目暂无项目简介

    发行版本

    当前项目没有发行版本

    贡献者 1

    M MAGICPIG @MAGICPIG

    开发语言

    • Python 100.0 %