yarl 0.16.0-1 source package in Ubuntu
Changelog
yarl (0.16.0-1) unstable; urgency=medium * New upstream release -- Piotr Ożarowski <email address hidden> Wed, 20 Dec 2017 11:55:31 +0100
Upload details
- Uploaded by:
- Piotr Ożarowski
- Uploaded to:
- Sid
- Original maintainer:
- Piotr Ożarowski
- Architectures:
- any all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
yarl_0.16.0-1.dsc | 2.1 KiB | fa4f6518d4ffd4be8c3f3a17db456914e73bd0fcf5da49d61a5fe0319ef7511d |
yarl_0.16.0.orig.tar.gz | 132.8 KiB | 47622985ecd9b15335d65c1acd54aeb3ba449e6d09b36e37ecfe334c7e7b8d0b |
yarl_0.16.0-1.debian.tar.xz | 3.8 KiB | 762982f53b9b84e6fbdc8e72e184e3bf86362ce8ae50b514155d5a2f073e5db3 |
Available diffs
- diff from 0.13.0-1 to 0.16.0-1 (31.7 KiB)
No changes file available.
Binary packages built by this source
- python-yarl-doc: documentation for the yarl Python library
This package provides documentation for yarl
- python3-yarl: yet another URL library for Python
URL is constructed from `str`:
.
>>> from yarl import URL
>>> url = URL('https://www.python. org/~guido? arg=1#frag')
>>> url
URL('https://www.python. org/~guido? arg=1#frag')
.
All URL parts: scheme, user, passsword, host, port, path, query and fragment
are accessible by properties:
.
>>> url.scheme
'https'
>>> url.host
'www.python.org'
>>> url.path
'/~guido'
>>> url.query_string
'arg=1'
>>> url.query
<MultiDictProxy('arg' : '1')>
>>> url.fragment
'frag'
.
All URL manipulations produces a new URL object:
.
>>> url.parent / 'downloads/source'
URL('https://www.python. org/downloads/ source')
.
Strings passed to constructor and modification methods are automatically
encoded giving canonical representation as result::
.
>>> url = URL('https://www.python. org/путь')
>>> url
URL('https://www.python. org/%D0% BF%D1%83% D1%82%D1% 8C')
.
Regular properties are percent-decoded, use `raw_` versions for getting
encoded strings:
.
>>> url.path
'/путь'
.
>>> url.raw_path
'/%D0%BF%D1%83% D1%82%D1% 8C'
.
Human readable representation of URL is available as `.human_repr()`:
.
>>> url.human_repr()
'https://www.python. org/путь'
- python3-yarl-dbgsym: debug symbols for python3-yarl