Exemple #1
0
    def parse(self):
        '''Parses the given application arguments.'''
        args = self._parser.parse_args()

        Logger.setup(args.verbose)

        return args
Exemple #2
0
    def parse(self):
        '''Parses the given application arguments.'''
        args = self._parser.parse_args()

        Logger.setup(args.verbose)

        return args
Exemple #3
0
from builtins import range

# External dependencies

import xlrd

# Package dependencies

from places.core.logging import Logger
from places.databases.entities import DatabaseRow
from places.formats.xls import XlsFormat
from places.parsers import Parser

# Module logging

logger = Logger.instance(__name__)

# Classes


class XlsParser(Parser):
    '''
    Microsoft Excel Spreadsheet file parser class.
    '''

    # Parser format
    _format = XlsFormat

    def __init__(self, base):
        '''
        Constructor.
Exemple #4
0
Build documentation command module
'''
# Imports

# Package dependencies

from places.commands import Command
from places.core.constants import DATA_DIR
from places.core.helpers.documentation import ProjectReadme, DatasetReadme
from places.core.helpers.filesystem import File
from places.core.logging import Logger
from places.databases import DatabaseRepository

# Module logging

logger = Logger.instance(__name__)

# Classes


class DocumentationBuilderCommand(Command):
    '''
    The documentation builder command.
    '''

    @property
    def name(self):
        '''
        Defines the command name.
        '''
        return 'build:docs'