跳转到主要内容

SlimURL - 快速解析和构建URL地址的库

项目描述

https://travis-ci.org/mosquito/slimurl.svg Latest Version https://img.shields.io/pypi/wheel/slimurl.svg https://img.shields.io/pypi/pyversions/slimurl.svg https://img.shields.io/pypi/l/slimurl.svg

此模块已弃用。请使用YARL代替。

Slim URL - 是构造或/和解析URL组件的快速包装器。解析基于正则表达式。

示例

from slimurl import URL

url = URL('http://example.net')
print("%r" % url)
# <URL "http://example.net/">

print((url.host, url.port, url.scheme))
# ('example.net', 80, 'http')

URL('http://example.net') == URL('http://example.net/')
# True

URL('http://example.net:80') == URL('http://example.net/')
# True

URL('http://example.net') == URL('http://example.net/?foo=bar')
# False

项目详情


下载文件

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

源分发

slimurl-0.7.8.tar.gz (4.3 kB 查看哈希值)

上传时间:

由以下机构支持

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