Skip to content

Commit 8b405d7

Browse files
Merge pull request #14 from contentstack/retrypolicy
Retry Policy & Timeout
2 parents 5c60d6c + 326cc6a commit 8b405d7

20 files changed

+359
-281
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5-
5+
config.py
6+
__pycache__
7+
.ipynb_checkpoints
68
# C extensions
79
*.so
10+
.env
11+
keys.py
12+
keys.py/
13+
config.py/
14+
.env/
815
/reports
916
/tests/reports
1017
# Distribution / packaging
@@ -31,7 +38,6 @@ MANIFEST
3138
.idea
3239
.vscode
3340
.report.log
34-
3541
# PyInstaller
3642
# Usually these files are written by a python script from a template
3743
# before PyInstaller builds the exe, so as to inject date/other infos into it.

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# CHANGELOG
2+
3+
## _v1.3.0_
4+
5+
============
6+
7+
Date: 26-Feb-2021
8+
9+
- Retry policy and timeout support included
10+
- Set default timeout 30 sec
11+
12+
-----------------------------
13+
14+
## _v1.2.0_
15+
16+
============
17+
18+
Date: 08-Dec-2020
19+
20+
- include_fallback Support Added
21+
- Timeout support included
22+
23+
- Entry
24+
- added support for include_fallback.
25+
- Asset
26+
- added support for include_fallback.
27+
- AssetQueryable
28+
- added support for include_fallback.
29+
- Query
30+
- added support for include_fallback.
31+
32+
-----------------------------
33+
34+
## _v1.1.0_
35+
36+
Date: 10-Aug-2020 - include_reference issue fixed
37+
38+
EntryQueryable
39+
40+
- updated include_reference function.
41+
42+
-----------------------------
43+
44+
## _v1.0.0_
45+
46+
Date: 17-Jun-2020 - initial release
47+
48+
Stack
49+
50+
- Initialisation of stack has been modified
51+
- External config support moved to stack initialisation optional paramters
52+
- Added support for whereIn(String key) and whereNotIn(String key) methods in Query
53+
54+
Assets
55+
56+
- Changes incorporated in Asset class.
57+
58+
Entry
59+
60+
- Changes incorporated in the entry class.
61+
62+
Query
63+
64+
- Changes incorporated in the Query class.
65+
66+
-----------------------------
67+
68+
## _v0.1.0_
69+
70+
November-18, 2019 -beta release
71+
72+
Initial release for the contentstack-python-sdk for Content Delivery API
73+
74+
-----------------------------

CHANGELOGS.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

INSTALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ To install the package simply run the below command on your terminal:
44
python setup.py install
55

66
Don't forget to file bugs and let me know about them.
7-
Also, don't hasitate to ask for new features. Happy coding.
7+
Also, don't hesitate to ask for new features. Happy coding.

changelog.rst

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,75 @@
1-
=========
2-
CHANGELOG
3-
=========
1+
================
2+
**CHANGELOG**
3+
================
44

5-
*Date: 17-Jun-2020 - initial release*
5+
*v1.3.0*
6+
============
7+
8+
**Date: 26-Feb-2021**
9+
10+
- Retry policy and timeout support included
11+
- Set default timeout to 30 sec
12+
13+
============
14+
15+
ENHANCEMENT, NEW FEATURE, BUG RESOLVE
16+
17+
*v1.2.0*
18+
============
19+
20+
**Date: 20-Oct-2020**
21+
22+
- **include_fallback support added**
23+
entry
24+
- added support for include_fallback.
25+
asset
26+
- added support for include_fallback.
27+
assetquery
28+
- added support for include_fallback.
29+
query
30+
- added support for include_fallback.
31+
32+
- **Timeout support included**
33+
34+
============
635

7-
**v1.0.0**
36+
37+
38+
*v1.1.0*
839
============
940

10-
- **Stack**
11-
- Initialisation of stack has been modified
12-
- External config support moved to stack initialisation optional paramters
13-
- Added support for whereIn(String key) and whereNotIn(String key) methods in Query
41+
**Date: 10-Aug-2020 :: include_reference issue fixed**
1442

15-
- **Asset**
43+
**EntryQueryable**
44+
- updated include_reference function.
45+
46+
============
47+
48+
49+
*v1.0.0*
50+
============
51+
52+
**Date: 17-Jun-2020 :: Initial Release**
53+
54+
**Stack**
55+
- Initialization of the stack has been modified
56+
- External config support moved to stack initialization optional parameters
57+
58+
**Asset**
1659
- changes incorporated in Asset class.
1760

18-
- **Entry**
61+
**Entry**
1962
- changes incorporated in the entry class.
2063

21-
- **Query**
64+
**Query**
2265
- Changes incorporated in the Query class.
2366

24-
2567
-----------------------------
2668

27-
*Date: 18-Nov-2019 - beta release*
2869

29-
**v0.0.1**
70+
*v0.0.1*
3071
============
72+
73+
**Date: 18-Nov-2019 :: Beta Release**
74+
3175
- Beta release for the contentstack-python SDK for Content Delivery API

contentstack/__init__.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1+
"""
2+
The __init__.py files are required to make Python treat the directories as containing
3+
packages; this is done to prevent directories with a common name, such as string,
4+
from unintentionally hiding valid modules that occur later on the module search path
5+
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+
10+
"""
111
from .entry import Entry
212
from .asset import Asset
313
from .contenttype import ContentType
414
from .https_connection import HTTPSConnection
5-
from .stack import Stack
15+
from contentstack.stack import Stack
616
from .utility import Utils
7-
# from contentstack import *
817

18+
__title__ = 'contentstack-python'
919
__author__ = 'Contentstack'
1020
__status__ = 'debug'
11-
__version__ = '1.0.0'
21+
__version__ = '1.3.0'
1222
__endpoint__ = 'cdn.contentstack.io'
13-
__email__ = 'mshaileshr@gmail.com'
23+
__email__ = 'shailesh.mishra@contentstack.com'

0 commit comments

Comments
 (0)