How to Install and Uninstall python3-yarl Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 19,2024

1. Install "python3-yarl" package

Here is a brief guide to show you how to install python3-yarl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-yarl

2. Uninstall "python3-yarl" package

This is a short guide on how to uninstall python3-yarl on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-yarl $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-yarl package on Ubuntu 21.10 (Impish Indri)

Package: python3-yarl
Architecture: amd64
Version: 1.6.3-2
Priority: optional
Section: universe/python
Source: yarl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Piotr Ożarowski
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 157
Depends: python3 (<< 3.10), python3 (>= 3.9~), python3-idna (>= 2.0), python3-multidict (>= 4.0.0), python3:any, libc6 (>= 2.14)
Filename: pool/universe/y/yarl/python3-yarl_1.6.3-2_amd64.deb
Size: 43916
MD5sum: 3a52002da1c80d15b21f688952cc39c1
SHA1: 5614a56dc6d1ecaf5c9e10edaf2ef627432f97bc
SHA256: b24c237189dc1ab9ead9fc52605c1c69d277edfa214fcb8b9c6a9571f4aa7120
SHA512: 0ee7b37de3ef9d2fa77e4b2c8462d8cad1560d934f4d497667c688309315f13738cdc0b5e23ccc7b0c3d184866211f0a581097e13a1a2f86313790a4fa1acde6
Homepage: https://github.com/aio-libs/yarl/
Description-en: 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

>>> 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/путь'
Description-md5: c6ae3a2ef96a4bd5e4dceb9c2d630346