Update requirements, formating.
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -2,6 +2,7 @@ import argparse
|
||||
import logging
|
||||
|
||||
import mondrian
|
||||
|
||||
from bonobo import settings
|
||||
from bonobo.commands.base import BaseCommand, BaseGraphCommand
|
||||
|
||||
|
||||
@ -7,8 +7,8 @@ configurable transformations, either class-based or function-based.
|
||||
from bonobo.config.configurables import Configurable
|
||||
from bonobo.config.functools import transformation_factory
|
||||
from bonobo.config.options import Method, Option
|
||||
from bonobo.config.processors import ContextProcessor, use_context, use_context_processor, use_raw_input, use_no_input
|
||||
from bonobo.config.services import Container, Exclusive, Service, use, create_container
|
||||
from bonobo.config.processors import ContextProcessor, use_context, use_context_processor, use_no_input, use_raw_input
|
||||
from bonobo.config.services import Container, Exclusive, Service, create_container, use
|
||||
from bonobo.util import deprecated_alias
|
||||
|
||||
requires = deprecated_alias('requires', use)
|
||||
|
||||
@ -6,7 +6,7 @@ This module contains all tools for Bonobo and Django to interract nicely.
|
||||
|
||||
"""
|
||||
|
||||
from .utils import create_or_update
|
||||
from .commands import ETLCommand
|
||||
from .utils import create_or_update
|
||||
|
||||
__all__ = ['ETLCommand', 'create_or_update']
|
||||
|
||||
@ -2,13 +2,13 @@ from logging import getLogger
|
||||
from types import GeneratorType
|
||||
|
||||
from colorama import Back, Fore, Style
|
||||
from django.core.management import BaseCommand
|
||||
from django.core.management.base import OutputWrapper
|
||||
from mondrian import term
|
||||
|
||||
import bonobo
|
||||
from bonobo.plugins.console import ConsoleOutputPlugin
|
||||
from bonobo.util.term import CLEAR_EOL
|
||||
from django.core.management import BaseCommand
|
||||
from django.core.management.base import OutputWrapper
|
||||
|
||||
from .utils import create_or_update
|
||||
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
import os
|
||||
|
||||
# https://developers.google.com/api-client-library/python/guide/aaa_oauth
|
||||
# pip install google-api-python-client (1.6.4)
|
||||
|
||||
import httplib2
|
||||
from apiclient import discovery
|
||||
from oauth2client import client, tools
|
||||
from oauth2client.file import Storage
|
||||
from oauth2client.tools import argparser
|
||||
|
||||
# https://developers.google.com/api-client-library/python/guide/aaa_oauth
|
||||
# pip install google-api-python-client (1.6.4)
|
||||
|
||||
|
||||
HOME_DIR = os.path.expanduser('~')
|
||||
GOOGLE_SECRETS = os.path.join(HOME_DIR, '.cache/secrets/client_secrets.json')
|
||||
|
||||
|
||||
@ -3,8 +3,8 @@ from urllib.parse import urlencode
|
||||
import requests # todo: make this a service so we can substitute it ?
|
||||
|
||||
from bonobo.config import Option
|
||||
from bonobo.config.processors import ContextProcessor
|
||||
from bonobo.config.configurables import Configurable
|
||||
from bonobo.config.processors import ContextProcessor
|
||||
from bonobo.util.objects import ValueHolder
|
||||
|
||||
|
||||
|
||||
@ -6,17 +6,9 @@ and inspect transformations, graphs, and nodes.
|
||||
from bonobo.util.collections import cast, ensure_tuple, sortedlist, tuplize
|
||||
from bonobo.util.compat import deprecated, deprecated_alias
|
||||
from bonobo.util.inspect import (
|
||||
inspect_node,
|
||||
isconfigurable,
|
||||
isconfigurabletype,
|
||||
iscontextprocessor,
|
||||
isdict,
|
||||
ismethod,
|
||||
isoption,
|
||||
istuple,
|
||||
istype,
|
||||
inspect_node, isconfigurable, isconfigurabletype, iscontextprocessor, isdict, ismethod, isoption, istuple, istype
|
||||
)
|
||||
from bonobo.util.objects import get_name, get_attribute_or_create, ValueHolder
|
||||
from bonobo.util.objects import ValueHolder, get_attribute_or_create, get_name
|
||||
|
||||
# Bonobo's util API
|
||||
__all__ = [
|
||||
|
||||
@ -18,9 +18,9 @@ class ApiHelper:
|
||||
assert (
|
||||
len(parameters) > 0 and parameters[0] == 'graph'
|
||||
), 'First parameter of a graph api function must be "graph".'
|
||||
assert required_parameters.intersection(parameters) == required_parameters, (
|
||||
'Graph api functions must define the following parameters: ' + ', '.join(sorted(required_parameters))
|
||||
)
|
||||
assert (
|
||||
required_parameters.intersection(parameters) == required_parameters
|
||||
), 'Graph api functions must define the following parameters: ' + ', '.join(sorted(required_parameters))
|
||||
|
||||
self.__all__.append(get_name(x))
|
||||
return x
|
||||
|
||||
Reference in New Issue
Block a user