<commit_before># -*- coding: ascii -*-

'''
    pystmark
    --------

    Postmark API library built on :mod:`requests`

    :copyright: 2013, see AUTHORS for more details
    :license: MIT, see LICENSE for more details

    :TODO:
        Support for bounce and inbound hooks? These should be mostly handled
        in a framework specific manner but there might be some common utilities
        to provide.
        Optionally verify attachment size <=10MB
        Wrapper class for Message attachments and headers?
'''

from collections import Mapping
from base64 import b64encode
import requests
import mimetypes
import os.path
import sys
if sys.version_info[0] >= 3:    # pragma: no cover
    from urllib.parse import urljoin
    basestring = str

    def iteritems(obj):
        return obj.items()

else:                           # pragma: no cover
    from urlparse import urljoin

    def iteritems(obj):
        return obj.iteritems()


try:                            # pragma: no cover
    import simplejson as json
except ImportError:             # pragma: no cover
    import json


__title__ = 'pystmark'
__version__ = '0.2'
__license__ = 'MIT'

# Constant defined in the Postmark docs:
#   http://developer.postmarkapp.com/developer-build.html
POSTMARK_API_URL = 'http://api.postmarkapp.com/'
POSTMARK_API_URL_SECURE = 'https://api.postmarkapp.com/'
POSTMARK_API_TEST_KEY = 'POSTMARK_API_TEST'
MAX_RECIPIENTS_PER_MESSAGE = 20
MAX_BATCH_MESSAGES = 500

bounce_types = {
    'HardBounce': 1,<commit_msg>bump version<commit_after># -*- coding: ascii -*-

'''
    pystmark
    --------

    Postmark API library built on :mod:`requests`

    :copyright: 2013, see AUTHORS for more details
    :license: MIT, see LICENSE for more details

    :TODO:
        Support for bounce and inbound hooks? These should be mostly handled
        in a framework specific manner but there might be some common utilities
        to provide.
        Optionally verify attachment size <=10MB
        Wrapper class for Message attachments and headers?
'''

from collections import Mapping
from base64 import b64encode
import requests
import mimetypes
import os.path
import sys
if sys.version_info[0] >= 3:    # pragma: no cover
    from urllib.parse import urljoin
    basestring = str

    def iteritems(obj):
        return obj.items()

else:                           # pragma: no cover
    from urlparse import urljoin

    def iteritems(obj):
        return obj.iteritems()


try:                            # pragma: no cover
    import simplejson as json
except ImportError:             # pragma: no cover
    import json


__title__ = 'pystmark'
__version__ = '0.3'
__license__ = 'MIT'

# Constant defined in the Postmark docs:
#   http://developer.postmarkapp.com/developer-build.html
POSTMARK_API_URL = 'http://api.postmarkapp.com/'
POSTMARK_API_URL_SECURE = 'https://api.postmarkapp.com/'
POSTMARK_API_TEST_KEY = 'POSTMARK_API_TEST'
MAX_RECIPIENTS_PER_MESSAGE = 20
MAX_BATCH_MESSAGES = 500

bounce_types = {
    'HardBounce': 1,
{'fraction_non_alphanumeric': 0.08176722716782064, 'fraction_numerical': 0.013188262446422684, 'mean_word_length': 2.77363184079602, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '703763', 'n_tokens_mistral': 939, 'n_tokens_neox': 878, 'n_words': 294}