Skip to content

Commit

Permalink
Merge pull request #1 from MStarmans91/development
Browse files Browse the repository at this point in the history
Update to Version 2.1.0. See changelog.
  • Loading branch information
MStarmans91 authored Aug 13, 2018
2 parents ec74560 + 8f08cb9 commit 12d9214
Show file tree
Hide file tree
Showing 1,330 changed files with 698,036 additions and 177,715 deletions.
2 changes: 1 addition & 1 deletion .coverage
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!coverage.py: This is a private format, don't read it directly!{"lines":{"/home/martijn/git/WORC/WORC/IOparser/config_segmentix.py":[],"/home/martijn/git/WORC/WORC/WORC.py":[485,76,47,49,18,19,20,21,22,23,408,26,159],"/home/martijn/git/WORC/WORC/addexceptions.py":[33,93,86,71,74,82,78,79,18,20,21,22,89,92,29,85],"/home/martijn/git/WORC/WORC/IOparser/config_general.py":[],"/home/martijn/git/WORC/WORC/processing/segstatistics.py":[],"/home/martijn/git/WORC/WORC/processing/ExtractNLargestBlobsn.py":[],"/home/martijn/git/WORC/WORC/__init__.py":[1,2],"/home/martijn/git/WORC/WORC/IOparser/__init__.py":[1],"/home/martijn/git/WORC/WORC/IOparser/config_WORC.py":[19,20,23],"/home/martijn/git/WORC/WORC/processing/__init__.py":[1],"/home/martijn/git/WORC/WORC/processing/classes.py":[]}}
!coverage.py: This is a private format, don't read it directly!{"lines":{"/home/martijn/git/WORC/WORC/processing/RTStructReader.py":[],"/home/martijn/git/WORC/WORC/WORC.py":[976,304,99,324,101,842,972,301,845,144,977,18,19,20,21,22,23,24,25,28,965],"/home/martijn/git/WORC/WORC/IOparser/config_segmentix.py":[],"/home/martijn/git/WORC/WORC/addexceptions.py":[35,73,95,76,80,81,20,87,88,84,91,94,31],"/home/martijn/git/WORC/WORC/tools/Evaluate.py":[203,204,205,61,18,19,20,25,26,27,28,29,255],"/home/martijn/git/WORC/WORC/processing/ExtractNLargestBlobsn.py":[],"/home/martijn/git/WORC/WORC/__init__.py":[1,2],"/home/martijn/git/WORC/WORC/IOparser/__init__.py":[1],"/home/martijn/git/WORC/WORC/IOparser/config_WORC.py":[19,22],"/home/martijn/git/WORC/WORC/processing/__init__.py":[1],"/home/martijn/git/WORC/WORC/IOparser/config_preprocessing.py":[],"/home/martijn/git/WORC/WORC/tools/Elastix.py":[194,212,46,240,18,19,20,21,22,87,25,26],"/home/martijn/git/WORC/WORC/tools/Transformix.py":[],"/home/martijn/git/WORC/WORC/processing/classes.py":[],"/home/martijn/git/WORC/WORC/tools/__init__.py":[1]}}
153 changes: 153 additions & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/EGG-INFO/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
Metadata-Version: 1.1
Name: boto3
Version: 1.7.75
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email: UNKNOWN
License: Apache License 2.0
Description: ===============================
Boto 3 - The AWS SDK for Python
===============================

|Build Status| |Docs| |Version| |Gitter|

Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
Python, which allows Python developers to write software that makes use
of services like Amazon S3 and Amazon EC2. You can find the latest, most
up to date, documentation at `Read the Docs`_, including a list of
services that are supported. To see only those features which have been
released, check out the `stable docs`_.


.. _boto: https://docs.pythonboto.org/
.. _`stable docs`: https://boto3.readthedocs.io/en/stable/
.. _`Read the Docs`: https://boto3.readthedocs.io/en/latest/
.. |Build Status| image:: http://img.shields.io/travis/boto/boto3/develop.svg?style=flat
:target: https://travis-ci.org/boto/boto3
:alt: Build Status
.. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg
:target: https://gitter.im/boto/boto3
:alt: Gitter
.. |Docs| image:: https://readthedocs.org/projects/boto3/badge/?version=latest&style=flat
:target: https://boto3.readthedocs.io/en/latest/
:alt: Read the docs
.. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat
:target: https://pypi.python.org/pypi/boto3/
:alt: Downloads
.. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
:target: https://pypi.python.org/pypi/boto3/
:alt: Version
.. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
:target: https://github.com/boto/boto3/blob/develop/LICENSE
:alt: License

Quick Start
-----------
First, install the library and set a default region:

.. code-block:: sh

$ pip install boto3

Next, set up credentials (in e.g. ``~/.aws/credentials``):

.. code-block:: ini

[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET

Then, set up a default region (in e.g. ``~/.aws/config``):

.. code-block:: ini

[default]
region=us-east-1

Then, from a Python interpreter:

.. code-block:: python

>>> import boto3
>>> s3 = boto3.resource('s3')
>>> for bucket in s3.buckets.all():
print(bucket.name)

Development
-----------

Getting Started
~~~~~~~~~~~~~~~
Assuming that you have Python and ``virtualenv`` installed, set up your
environment and install the required dependencies like this instead of
the ``pip install boto3`` defined above:

.. code-block:: sh

$ git clone https://github.com/boto/boto3.git
$ cd boto3
$ virtualenv venv
...
$ . venv/bin/activate
$ pip install -r requirements.txt
$ pip install -e .

Running Tests
~~~~~~~~~~~~~
You can run tests in all supported Python versions using ``tox``. By default,
it will run all of the unit and functional tests, but you can also specify your own
``nosetests`` options. Note that this requires that you have all supported
versions of Python installed, otherwise you must pass ``-e`` or run the
``nosetests`` command directly:

.. code-block:: sh

$ tox
$ tox -- unit/test_session.py
$ tox -e py26,py33 -- integration/

You can also run individual tests with your default Python version:

.. code-block:: sh

$ nosetests tests/unit

Generating Documentation
~~~~~~~~~~~~~~~~~~~~~~~~
Sphinx is used for documentation. You can generate HTML locally with the
following:

.. code-block:: sh

$ pip install -r requirements-docs.txt
$ cd docs
$ make html


Getting Help
------------

We use GitHub issues for tracking bugs and feature requests and have limited
bandwidth to address them. Please use these community resources for getting
help:

* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
* Come join the AWS Python community chat on `gitter <https://gitter.im/boto/boto3>`__
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__

Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
65 changes: 65 additions & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/EGG-INFO/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
CONTRIBUTING.rst
LICENSE
MANIFEST.in
README.rst
requirements.txt
setup.cfg
setup.py
boto3/__init__.py
boto3/compat.py
boto3/exceptions.py
boto3/session.py
boto3/utils.py
boto3.egg-info/PKG-INFO
boto3.egg-info/SOURCES.txt
boto3.egg-info/dependency_links.txt
boto3.egg-info/requires.txt
boto3.egg-info/top_level.txt
boto3/data/cloudformation/2010-05-15/resources-1.json
boto3/data/cloudwatch/2010-08-01/resources-1.json
boto3/data/dynamodb/2012-08-10/resources-1.json
boto3/data/ec2/2014-10-01/resources-1.json
boto3/data/ec2/2015-03-01/resources-1.json
boto3/data/ec2/2015-04-15/resources-1.json
boto3/data/ec2/2015-10-01/resources-1.json
boto3/data/ec2/2016-04-01/resources-1.json
boto3/data/ec2/2016-09-15/resources-1.json
boto3/data/ec2/2016-11-15/resources-1.json
boto3/data/glacier/2012-06-01/resources-1.json
boto3/data/iam/2010-05-08/resources-1.json
boto3/data/opsworks/2013-02-18/resources-1.json
boto3/data/s3/2006-03-01/resources-1.json
boto3/data/sns/2010-03-31/resources-1.json
boto3/data/sqs/2012-11-05/resources-1.json
boto3/docs/__init__.py
boto3/docs/action.py
boto3/docs/attr.py
boto3/docs/base.py
boto3/docs/client.py
boto3/docs/collection.py
boto3/docs/docstring.py
boto3/docs/method.py
boto3/docs/resource.py
boto3/docs/service.py
boto3/docs/subresource.py
boto3/docs/utils.py
boto3/docs/waiter.py
boto3/dynamodb/__init__.py
boto3/dynamodb/conditions.py
boto3/dynamodb/table.py
boto3/dynamodb/transform.py
boto3/dynamodb/types.py
boto3/ec2/__init__.py
boto3/ec2/createtags.py
boto3/ec2/deletetags.py
boto3/resources/__init__.py
boto3/resources/action.py
boto3/resources/base.py
boto3/resources/collection.py
boto3/resources/factory.py
boto3/resources/model.py
boto3/resources/params.py
boto3/resources/response.py
boto3/s3/__init__.py
boto3/s3/inject.py
boto3/s3/transfer.py
3 changes: 3 additions & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/EGG-INFO/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
botocore>=1.10.75,<1.11.0
jmespath>=0.7.1,<1.0.0
s3transfer>=0.1.10,<0.2.0
1 change: 1 addition & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/EGG-INFO/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boto3
110 changes: 110 additions & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/boto3/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

import logging

from boto3.session import Session


__author__ = 'Amazon Web Services'
__version__ = '1.7.75'


# The default Boto3 session; autoloaded when needed.
DEFAULT_SESSION = None


def setup_default_session(**kwargs):
"""
Set up a default session, passing through any parameters to the session
constructor. There is no need to call this unless you wish to pass custom
parameters, because a default session will be created for you.
"""
global DEFAULT_SESSION
DEFAULT_SESSION = Session(**kwargs)


def set_stream_logger(name='boto3', level=logging.DEBUG, format_string=None):
"""
Add a stream handler for the given name and level to the logging module.
By default, this logs all boto3 messages to ``stdout``.
>>> import boto3
>>> boto3.set_stream_logger('boto3.resources', logging.INFO)
For debugging purposes a good choice is to set the stream logger to ``''``
which is equivalent to saying "log everything".
.. WARNING::
Be aware that when logging anything from ``'botocore'`` the full wire
trace will appear in your logs. If your payloads contain sensitive data
this should not be used in production.
:type name: string
:param name: Log name
:type level: int
:param level: Logging level, e.g. ``logging.INFO``
:type format_string: str
:param format_string: Log message format
"""
if format_string is None:
format_string = "%(asctime)s %(name)s [%(levelname)s] %(message)s"

logger = logging.getLogger(name)
logger.setLevel(level)
handler = logging.StreamHandler()
handler.setLevel(level)
formatter = logging.Formatter(format_string)
handler.setFormatter(formatter)
logger.addHandler(handler)


def _get_default_session():
"""
Get the default session, creating one if needed.
:rtype: :py:class:`~boto3.session.Session`
:return: The default session
"""
if DEFAULT_SESSION is None:
setup_default_session()

return DEFAULT_SESSION


def client(*args, **kwargs):
"""
Create a low-level service client by name using the default session.
See :py:meth:`boto3.session.Session.client`.
"""
return _get_default_session().client(*args, **kwargs)


def resource(*args, **kwargs):
"""
Create a resource service client by name using the default session.
See :py:meth:`boto3.session.Session.resource`.
"""
return _get_default_session().resource(*args, **kwargs)


# Set up logging to ``/dev/null`` like a library is supposed to.
# http://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
class NullHandler(logging.Handler):
def emit(self, record):
pass


logging.getLogger('boto3').addHandler(NullHandler())
43 changes: 43 additions & 0 deletions .eggs/boto3-1.7.75-py2.7.egg/boto3/compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
import sys
import os
import errno
import socket

from botocore.vendored import six

if six.PY3:
# In python3, socket.error is OSError, which is too general
# for what we want (i.e FileNotFoundError is a subclass of OSError).
# In py3 all the socket related errors are in a newly created
# ConnectionError
SOCKET_ERROR = ConnectionError
else:
SOCKET_ERROR = socket.error


if sys.platform.startswith('win'):
def rename_file(current_filename, new_filename):
try:
os.remove(new_filename)
except OSError as e:
if not e.errno == errno.ENOENT:
# We only want to a ignore trying to remove
# a file that does not exist. If it fails
# for any other reason we should be propagating
# that exception.
raise
os.rename(current_filename, new_filename)
else:
rename_file = os.rename
Loading

0 comments on commit 12d9214

Please sign in to comment.