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.

Source Distribution

parseoncolon-0.09.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file parseoncolon-0.09.tar.gz.

File metadata

File hashes

Hashes for parseoncolon-0.09.tar.gz
Algorithm Hash digest
SHA256 fe6d000493871f66535cb77b473b50d154145296cdc0ba69fc8db79eaf92916e
MD5 a4c32738b13a510db1bfd9d9e33bb361
BLAKE2b-256 ce6bcc075c2144638b7313e5cf7ea49d66ab96e8e891362c9c0a84dd1582a250

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page