Skip to main content

Simple parser of a strings where would keys and values are separated by a colon(:)

Project description

A simple parser that will separate a string of would be arguments in the form of key:value
where key and value are strings separated by a colon. This should work for any number of pairs.

Example:

$ example.py key1:value1 key2:value2 key3:this is value3

Would result in a dictionary of:

d { 'key1' : 'value1'
'key2' : 'value2'
'value3 : 'this is value3'
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for parseoncolon, version 0.09
Filename, size File type Python version Upload date Hashes
Filename, size parseoncolon-0.09.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page