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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for hebill_html-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f5d9c3353ceb1659f1398822525daeaa1eb13e3014b7f8ec04d58d4215c11e |
|
MD5 | 9539433d3be0b645eac83d1e056e387a |
|
BLAKE2b-256 | cc8941a52a114df4ba443ad24fb5e4a72ffc0a79aa8e895e722ea25bbd67e712 |