Package: python3-yarl (1.22.0-1 and others) [debports]
Links for python3-yarl
Debian Resources:
Download Source Package :
Not foundMaintainers:
External Resources:
- Homepage [github.com]
Similar packages:
un'altra libreria per URL per Python
L'URL viene costruito da "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')
Tutte le parti dell'URL come schemi, parti, password, host, porte, percorsi, interrogazioni e frammenti sono accessibili tramite proprietà:
>>> url.scheme
'https'
>>> url.host
'www.python.org'
>>> url.path
'/~guido'
>>> url.query_string
'arg=1'
>>> url.query
<MultiDictProxy('arg': '1')>
>>> url.fragment
'frag'
Tutte le manipolazioni dell'URL producono un nuovo oggetto URL:
>>> url.parent / 'downloads/source'
URL('https://www.python.org/downloads/source')
Le stringhe passate al costruttore e ai metodi di modifica vengono automaticamente codificate fornendo come risultato una rappresentazione canonica:
>>> url = URL('https://www.python.org/путь')
>>> url
URL('https://www.python.org/%D0%BF%D1%83%D1%82%D1%8C')
Le proprietà regolari sono decodificate con simbolo di percentuale, utilizzare le versioni "raw_" per ottenere stringhe codificate:
>>> url.path '/путь'
>>> url.raw_path '/%D0%BF%D1%83%D1%82%D1%8C'
La rappresentazione dell'URL in forma comprensibile dalle persone è disponibile come ".human_repr()":
>>> url.human_repr() 'https://www.python.org/путь'
Other Packages Related to python3-yarl
|
|
|
|
-
- dep: libc6 (>= 2.16)
- Libreria C GNU: librerie condivise
also a virtual package provided by libc6-udeb
-
- dep: python3
- linguaggio interattivo di alto livello orientato agli oggetti (versione python3 predefinita)
- dep: python3 (<< 3.15)
- dep: python3 (>= 3.13~)
-
- dep: python3-idna
- gestione Python di IDNA2008 (RFC 5891) (Python 3)
-
- dep: python3-multidict
- implementazione di multidict (libreria Python)
-
- dep: python3-propcache
- veloce cache per proprietà (Python)
Download python3-yarl
| Architecture | Version | Package Size | Installed Size | Files |
|---|---|---|---|---|
| x32 (unofficial port) | 1.22.0-1+b1 | 101.9 kB | 420.0 kB | [list of files] |
