python-parse 1.6.6-0.1 source package in Ubuntu
Changelog
python-parse (1.6.6-0.1) unstable; urgency=low * Non-maintainer upload. * Adds python3 support (closes: #849937). [ Gianfranco Costamagna ] * New upstream release. * Bump compat level to 10 * Bump std-version to 3.9.8 * Add homepage field * Add watch file * Add upstream signing key * Convert copyright file in dep-5 format -- Daniel Manila <email address hidden> Thu, 12 Jan 2017 16:57:30 +0600
Upload details
- Uploaded by:
- Cyril Bouthors
- Uploaded to:
- Sid
- Original maintainer:
- Cyril Bouthors
- Architectures:
- all
- Section:
- misc
- Urgency:
- Low Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Bionic | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-parse_1.6.6-0.1.dsc | 1.9 KiB | a67be3dffcffacb06df91b90f03b93121b50134639703cdf0c77c9f5d0938481 |
python-parse_1.6.6.orig.tar.gz | 24.1 KiB | 71435aaac494e08cec76de646de2aab8392c114e56fe3f81c565ecc7eb886178 |
python-parse_1.6.6-0.1.debian.tar.xz | 4.4 KiB | d4de062bb5e7141983044a0e0d0ac876b5607eee6535f22f9134c25514d9c6e8 |
Available diffs
No changes file available.
Binary packages built by this source
- python-parse: No summary available for python-parse in ubuntu focal.
No description available for python-parse in ubuntu focal.
- 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