all options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: yarl  ]

Package: python3-yarl (1.13.1-1 and others)

Links for python3-yarl

Screenshot

Debian Resources:

Download Source Package yarl:

Maintainers:

External Resources:

Similar packages:

Endnu et URL-bibliotek for Python

Adresse konstrueres fra `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')

Alle adressedele: scheme, user, passsword, host, port, path, query og fragment kan tilgås via egenskaber:

 >>> url.scheme
 'https'
 >>> url.host
 'www.python.org'
 >>> url.path
 '/~guido'
 >>> url.query_string
 'arg=1'
 >>> url.query
 <MultiDictProxy('arg': '1')>
 >>> url.fragment
 'frag'

Alle adressemanipuleringer fremstiller et nyt adresseobjekt:

 >>> url.parent / 'downloads/source'
 URL('https://www.python.org/downloads/source')

Strenge sendt til konstruktøren og ændringsmetoder kodes automatisk med kanonisk repræsentation som resultat:

 >>> url = URL('https://www.python.org/путь')
 >>> url
 URL('https://www.python.org/%D0%BF%D1%83%D1%82%D1%8C')

Regulære egenskaber er procentafkodede, brug `raw_` versioner for kodede strenge:

 >>> url.path
 '/путь'

 >>> url.raw_path
 '/%D0%BF%D1%83%D1%82%D1%8C'

Læsevenlig repræsentation af adresse er tilgængelig som `.human_repr()`:

 >>> url.human_repr()
 'https://www.python.org/путь'

Other Packages Related to python3-yarl

  • depends
  • recommends
  • suggests
  • enhances

Download python3-yarl

Download for all available architectures
Architecture Version Package Size Installed Size Files
alpha (unofficial port) 1.13.1-1 90.8 kB354.0 kB [list of files]
amd64 1.13.1-1 95.8 kB343.0 kB [list of files]
arm64 1.13.1-1 88.3 kB351.0 kB [list of files]
armel 1.13.1-1 87.2 kB315.0 kB [list of files]
armhf 1.13.1-1 89.5 kB275.0 kB [list of files]
hppa (unofficial port) 1.13.1-1 92.2 kB340.0 kB [list of files]
i386 1.13.1-1 97.2 kB351.0 kB [list of files]
ia64 (unofficial port) 1.9.4-1 113.4 kB581.0 kB [list of files]
m68k (unofficial port) 1.13.1-1 85.2 kB315.0 kB [list of files]
mips64el 1.13.1-1 86.3 kB359.0 kB [list of files]
ppc64 (unofficial port) 1.13.1-1 95.0 kB479.0 kB [list of files]
ppc64el 1.13.1-1 95.2 kB479.0 kB [list of files]
riscv64 1.13.1-1 95.3 kB299.0 kB [list of files]
s390x 1.13.1-1 91.7 kB343.0 kB [list of files]
sh4 (unofficial port) 1.13.1-1 101.8 kB348.0 kB [list of files]
sparc64 (unofficial port) 1.13.1-1 84.6 kB2,214.0 kB [list of files]
x32 (unofficial port) 1.13.1-1 96.8 kB331.0 kB [list of files]