Skip to content

Commit 84ef3de

Browse files
azure-eu and include_metadata support added
1 parent 740dfce commit 84ef3de

File tree

12 files changed

+1
-48
lines changed

12 files changed

+1
-48
lines changed

contentstack/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
packages; this is done to prevent directories with a common name, such as string,
44
from unintentionally hiding valid modules that occur later on the module search path
55
6-
Used: Safety checks your installed dependencies for known security vulnerabilities
7-
file __init__.py contains package information like
8-
__author__, __status__, __version__, __endpoint__ and __email__
9-
106
"""
117
from .entry import Entry
128
from .asset import Asset

contentstack/asset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
These files can be attached and used in multiple entries.
55
"""
66

7-
# ************* Module asset **************
8-
# Your code has been rated at 10/10 by pylint
9-
107
import logging
118
from urllib import parse
129

contentstack/assetquery.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
You can also specify the environment of which you wish to get the assets.
44
"""
55

6-
# ************* Module asset_query **************
7-
# Your code has been rated at 10/10 by pylint
8-
96
import json
107
import logging
118

contentstack/basequery.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
log = logging.getLogger(__name__)
55

66

7-
# ************* Module base_query.py **************
8-
# Your code has been rated at 10.00/10
9-
107
class QueryOperation(enum.Enum):
118
"""
129
QueryOperation is enum that Provides Options to perform operation to query the result.

contentstack/controller.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __int__(self, error):
1414
def get_request(session, url, headers, timeout):
1515
try:
1616
response = session.get(url, verify=True, headers=headers, timeout=timeout)
17-
# encoding = guess_json_utf(response)
1817
if response.encoding is None:
1918
response.encoding = 'utf-8'
2019
except requests.exceptions.RequestException as e:
@@ -33,10 +32,3 @@ def get_request(session, url, headers, timeout):
3332
raise RequestError(error)
3433
else:
3534
return response.json()
36-
37-
# Example usage
38-
# try:
39-
# api_data = get_request("https://jsonplaceholder.typicode.com/posts")
40-
# print(api_data)
41-
# except Exception as e:
42-
# print("Caught exception:", e)

contentstack/entry.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
from contentstack.entryqueryable import EntryQueryable
1212

13-
# ************* Module Entry **************
14-
# Your code has been rated at 10/10 by pylint
15-
16-
1713
log = logging.getLogger(__name__)
1814

1915

contentstack/entryqueryable.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"""
55
import logging
66

7-
# ************* Module EntryQueryable **************
8-
# Your code has been rated at 10/10 by pylint
9-
107
log = logging.getLogger(__name__)
118

129

contentstack/https_connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ def get_api_data(response):
5050

5151

5252
class HTTPSConnection: # R0903: Too few public methods
53-
"""Make Https Request to fetch the result as per requested url"""
54-
5553
def __init__(self, endpoint, headers, timeout, retry_strategy, live_preview):
5654
if None not in (endpoint, headers):
5755
self.session = requests.Session()
5856
self.payload = None
5957
self.endpoint = endpoint
6058
self.headers = headers
61-
self.timeout = timeout # default timeout (period=30) seconds
59+
self.timeout = timeout
6260
self.retry_strategy = retry_strategy
6361
self.live_preview = live_preview
6462

contentstack/image_transform.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
import logging
1010

11-
# ************* Module image_transform **************
12-
# Your code has been rated at 10.00/10 by pylint
13-
1411
log = logging.getLogger(__name__)
1512

1613

contentstack/query.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
from urllib import parse
1010

1111
import empty
12-
from sphinx import deprecation
1312

1413
from contentstack.basequery import BaseQuery
1514
from contentstack.entryqueryable import EntryQueryable
1615

17-
# ************* Module query.py **************
18-
# Your code has been rated at 10.00/10 by pylint
19-
2016
log = logging.getLogger(__name__)
2117

2218

0 commit comments

Comments
 (0)