Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install dosca

How to install dosca

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dosca
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
Windows (64-bit)
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
Mac OS X (10.5+)
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
Linux (32-bit)
1.2.6 Available View build log
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
Linux (64-bit)
1.2.6 Available View build log
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.5
1.2.6Never BuiltWhy not?
1.2.5 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
0.0.2 Available View build log
1.2.6 Available View build log
 
Author
License
MIT
Imports
Lastest release
version 1.2.6 on Jul 10th, 2013

About

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

Features

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

API

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.

FAQ

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 test_dosca.py for details.

Install

~/yourvirtualenv/python setup.py install

pip install dosca

License

The MIT License, in LICENSE file.

Subscribe to package updates

Last updated Jul 10th, 2013

Download Stats

Last month:7

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.