# -*- coding: utf-8 -*- ''' Provides the default implementation of :class:`ArrowFactory ` methods for use as a module API. ''' from __future__ import absolute_import from arrow.factory import ArrowFactory # internal default factory. _factory = ArrowFactory() def get(*args, **kwargs): ''' Calls the default :class:`ArrowFactory ` ``get`` method. ''' return _factory.get(*args, **kwargs) def utcnow(): ''' Calls the default :class:`ArrowFactory ` ``utcnow`` method. ''' return _factory.utcnow() def now(tz=None): ''' Calls the default :class:`ArrowFactory ` ``now`` method. ''' return _factory.now(tz) def factory(type): ''' Returns an :class:`.ArrowFactory` for the specified :class:`Arrow ` or derived type. :param type: the type, :class:`Arrow ` or derived. ''' return ArrowFactory(type) __all__ = ['get', 'utcnow', 'now', 'factory']