python-parse 1.6.6-0.2build1 source package in Ubuntu
Changelog
python-parse (1.6.6-0.2build1) focal; urgency=medium * No-change rebuild to generate dependencies on python2. -- Matthias Klose <email address hidden> Tue, 17 Dec 2019 12:53:09 +0000
Upload details
- Uploaded by:
- Matthias Klose
- Uploaded to:
- Focal
- Original maintainer:
- Cyril Bouthors
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Focal | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-parse_1.6.6.orig.tar.gz | 24.1 KiB | 71435aaac494e08cec76de646de2aab8392c114e56fe3f81c565ecc7eb886178 |
python-parse_1.6.6-0.2build1.debian.tar.xz | 4.5 KiB | 447bfbf85b8670240104b955500a2c0bb599851f77afdf8f010fd512465fc806 |
python-parse_1.6.6-0.2build1.dsc | 1.9 KiB | 2203b296761a122332d2680dcfc846a0f9bb345c744509cb1b970dba62cdba19 |
Available diffs
Binary packages built by this source
- python3-parse: Parse provides the reverse function for format(), Python3 package
Parse strings using a specification based on the Python format() syntax.
.
``parse()`` is the opposite of ``format()``
.
The module is set up to only export ``parse()``, ``search()`` and
``findall()`` when ``import *`` is used:
.
>>> from parse import *
.
From there it's a simple thing to parse a string:
.
>>> parse("It's {}, I love it!", "It's spam, I love it!")
<Result ('spam',) {}>
>>> _[0]
'spam'
.
Or to search a string for some pattern:
.
>>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n')
<Result (42,) {}>
.
This is the Python 3 package