跳转到主要内容

生成XML/HTML的功能

项目描述

xmlist

xmlist是一个用于生成XML的模块,它使用列表和元组来表示。

使用xmlist

xml = xmlist.serialize(['html',
    ('xmlns', 'http://www.w3.org/1999/xhtml'),
    ['head', ['title', 'Hello, world!']],
    ['body',
        ['h1', 'Hello, world!'],
        ['p', 'xmlist is a module for generating XML']]])

xmlist的开发

[假设已经使用pip --user安装了setup_requires和test_requires]

virtualenv --python=python2.7 --system-site-packages env27 ;
env27/bin/pip2 install --editable .

测试xmlist

env27/bin/python -B setup.py -q test

项目详情


下载文件

为您的平台下载文件。如果您不确定要选择哪个,请了解安装包的更多信息。

源分布

xmlist-1.0.tar.gz (5.2 kB 查看哈希)

上传时间:

构建分布

xmlist-1.0-py2.py3-none-any.whl (8.6 kB 查看哈希)

上传时间: Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面