Typed Argument Parser 项目教程

Typed Argument Parser 项目教程

typed-argument-parserTyped argument parser for Python项目地址:https://gitcode.com/gh_mirrors/ty/typed-argument-parser

项目的目录结构及介绍

typed-argument-parser/
├── docs/
│   ├── ...
│   └── ...
├── examples/
│   ├── ...
│   └── ...
├── src/
│   ├── tap/
│   │   ├── ...
│   │   └── ...
│   └── ...
├── tests/
│   ├── ...
│   └── ...
├── .gitignore
├── LICENSE
├── README.md
├── setup.py
└── ...
  • docs/: 包含项目的文档文件。
  • examples/: 包含使用示例代码。
  • src/tap/: 包含项目的主要源代码。
  • tests/: 包含测试代码。
  • .gitignore: Git 忽略文件配置。
  • LICENSE: 项目许可证。
  • README.md: 项目介绍和使用说明。
  • setup.py: 项目安装脚本。

项目的启动文件介绍

项目的启动文件通常是 setup.py,它负责项目的安装和配置。以下是 setup.py 的基本内容:

from setuptools import setup, find_packages

setup(
    name='typed-argument-parser',
    version='1.10.1',
    description='A typed modernization of Python\'s argparse library',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    author='Jesse Michel and Kyle',
    author_email='example@example.com',
    url='https://github.com/swansonk14/typed-argument-parser',
    packages=find_packages(where='src'),
    package_dir={'': 'src'},
    install_requires=[
        # 依赖列表
    ],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
)

项目的配置文件介绍

项目的配置文件通常是 setup.py.gitignoresetup.py 已经在上一部分介绍过,下面是 .gitignore 的基本内容:

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don't work, or not
#   install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-

typed-argument-parserTyped argument parser for Python项目地址:https://gitcode.com/gh_mirrors/ty/typed-argument-parser

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农烁颖Land

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值