|
1 | | -# -*- coding: utf-8 -*- |
2 | | - |
3 | | -# __init__.py |
4 | | -# Contentstack |
5 | | -# Created by Shailesh on 22/06/19. |
6 | | -# Copyright (c) 2012 - 2019 Contentstack. All rights reserved. |
7 | | - |
8 | | -# [MIT License] :: Permission is hereby granted, free of charge, to any person |
9 | | -# obtaining a copy of this software and associated documentation files (the "Software"), |
10 | | -# to deal in the Software without restriction, including without limitation the rights |
11 | | -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
12 | | -# copies of the Software, and to permit persons to whom the Software is |
13 | | -# furnished to do so, subject to the following conditions: |
14 | | - |
15 | | -# The above copyright notice and this permission notice shall be included in all |
16 | | -# copies or substantial portions of the Software. |
17 | | - |
18 | | -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
19 | | -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
20 | | -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
21 | | -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
22 | | -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23 | | -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
24 | | -# SOFTWARE. |
| 1 | +""" contentstack python sdk. """ |
| 2 | + |
| 3 | +__author__ = 'Shailesh Mishra' |
| 4 | +__status__ = 'debug' |
| 5 | +__version__ = '1.0.0' |
| 6 | +__package__ = 'contentstack' |
| 7 | +__endpoint__ = 'cdn.contentstack.io' |
25 | 8 |
|
26 | 9 | # from .stack import Stack |
27 | 10 | from .entry import Entry |
|
34 | 17 | from .group import Group |
35 | 18 | from .http_request import HTTPRequestConnection |
36 | 19 |
|
37 | | -__author__ = "Shailesh Mishra <mshaileshr@gmail.com>" |
38 | | -__status__ = "debug" |
39 | | -__date__ = "01 July 2019" |
40 | | -__version__ = "1.0.0" |
41 | | -__package__ = "contentstack.python" |
42 | | -__endpoint__ = "cdn.contentstack.io" |
| 20 | + |
| 21 | +# Set a default logger to prevent "No handler found" warnings |
| 22 | +import logging |
| 23 | +try: # Python >=2.7 |
| 24 | + from logging import NullHandler |
| 25 | +except ImportError: |
| 26 | + class NullHandler(logging.Handler): |
| 27 | + def emit(self, record): |
| 28 | + pass |
| 29 | + |
| 30 | +logging.getLogger(__name__).addHandler(NullHandler()) |
| 31 | + |
| 32 | + |
43 | 33 |
|
0 commit comments