python-parse 1.6.3-1 source package in Ubuntu

Changelog

python-parse (1.6.3-1) unstable; urgency=low


  * Initial release (closes: #726715).

 -- Cyril Bouthors <email address hidden>  Mon, 11 Nov 2013 15:37:03 +0100

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 Pocket Published Component Section
Trusty release universe misc

Builds

Trusty: [FULLYBUILT] i386

Downloads

File Size SHA-256 Checksum
python-parse_1.6.3-1.dsc 1.2 KiB 58b7dc66a48f44b6ca6cba018d84d6810b159af7cede97e179475f86169dec19
python-parse_1.6.3.orig.tar.gz 23.3 KiB a3881a39b21179fecaf754b9b822127d52db72b22e574eecb0fc2c5bc578b5bd
python-parse_1.6.3-1.debian.tar.gz 1.8 KiB a05aa97be66f1a492eb33dc55ea29b2fe70990da1a05660ee3d6744e4cd699a3

No changes file available.

Binary packages built by this source

python-parse: Parse provides the reverse function for format().

 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,) {}>