コード例 #1
0
ファイル: constants.py プロジェクト: Axik/boto3
import os
import sys

from boto3 import get_version


# TODO: Assert if this is egg-safe (or if that matters to us)?
BOTO3_ROOT = os.path.dirname(os.path.dirname(__file__))

USER_AGENT_NAME = 'Boto3'
USER_AGENT_VERSION = get_version(full=True)

DEFAULT_REGION = 'us-east-1'

DEFAULT_DOCSTRING = """
Please make an instance of this class to inspect the docstring.

No underlying connection is yet available.
"""

DEFAULT_DATA_DIR = os.path.join(BOTO3_ROOT, 'data', 'aws')
DEFAULT_RESOURCE_JSON_DIR = os.path.join(DEFAULT_DATA_DIR, 'resources')


class NOTHING_PROVIDED(object):
    """
    An identifier for no data provided.

    Never meant to be instantiated.
    """
    pass
コード例 #2
0
import os
import sys

from boto3 import get_version

# TODO: Assert if this is egg-safe (or if that matters to us)?
BOTO3_ROOT = os.path.dirname(__file__)

USER_AGENT = 'Boto3/{0} ({1})'.format(get_version(full=True), sys.platform)

DEFAULT_REGION = 'us-east-1'

DEFAULT_DOCSTRING = """
Please make an instance of this class to inspect the docstring.

No underlying connection is yet available.
"""


class NOTHING_PROVIDED(object):
    """
    An identifier for no data provided.

    Never meant to be instantiated.
    """
    pass


class NO_NAME(object):
    """
    An identifier to indicate a method instance hasn't been given a name.
コード例 #3
0
ファイル: conf.py プロジェクト: Axik/boto3
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'boto3'
copyright = u'2013, Amazon Web Services'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = boto3.get_version()
# The full version, including alpha/beta/rc tags.
release = boto3.get_version(full=True)

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
コード例 #4
0
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'boto3'
copyright = u'2013, Amazon Web Services'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = boto3.get_version()
# The full version, including alpha/beta/rc tags.
release = boto3.get_version(full=True)

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.