Skip to main content

python生成HTML代码

Project description

## 说明

使用python生成HTML代码

## 步骤
1. 安装必要包
```
pip install setuptools
pip install wheel
pip install twine
```

2. 目录结构格式:
```text
/source_root
-- /myProject
-- /myProject/__init__.py
-- /myProject/constants.py
-- /myProject/core.py
-- pypi.py
-- README.MD
-- requirements.txt
```
3. 在constants.py中设定常量
```python
VERSION = '1.0.0'
NAME = 'myProject'
DESCRIPTION = 'Project Description'
LONG_DESCRIPTION = 'README.MD'
LONG_DESCRIPTION_TYPE = 'text/markdown'
URL = 'http://www.project.url/'
AUTHOR = 'Your Name'
AUTHOR_EMAIL = 'email@project.url'
AUTHOR_URL = 'http://www.project.url/'
```

4. 在__init__.py中加载
```python
from .core import MyModule
from .constants import *
```
5. 编写 pypi.py 内容
```python
from hebill_pypi import Pypi
import myProject

pypi = Pypi(myProject, r'D:\SDK\Environments\myProject\Scripts\python.exe')
pypi.pack()
```

6. 运行 pypi.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hebill_html-1.0.0.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

hebill_html-1.0.0-py3-none-any.whl (29.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page