Skip to main content

Damn Simple Config File Parser.

Project description


Just parses ini-style file and return dict with values. Really simple.


  • Knows str, int, list, boolean and None types
  • Supports sections and subsections
  • Supports custom converters
  • Easy to use – one function!


parse function takes any iterable (fileobj, for example), which produces strings and returns filled dict or raises ParseError.

parse_file helper function takes path to file, opens it and passes fileobj to parse functino.


Q1: Does ‘dosca’ have validation capabilities?

A1: No, it’s not. If you want validate your config, use library designed for this task. Contract, Procrustes or, perhaps, Damn Simple Validation Library?

Q2: Does it support interpolation or some complex types?

A2: No, it’s not. When I say ‘simple’, I mean really simple. Dosca only support basic things, essential for parsing config files. If you want advanced features, use ConfigObj or ConfigParser. Or xml and dtd?

Q3: How to use this library? A3: Just pass fileobj to dosca.parse or see for details.


~/yourvirtualenv/python install

pip install dosca


The MIT License, in LICENSE file.

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

dosca-2.0.0.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

dosca-2.0.0.macosx-10.12-x86_64.tar.gz (7.1 kB view hashes)

Uploaded any

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page