python-postman 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-postman-0.2.0 → python-postman-0.3.0}/.gitignore +131 -131
- {python-postman-0.2.0 → python-postman-0.3.0}/LICENSE +21 -21
- {python-postman-0.2.0/python_postman.egg-info → python-postman-0.3.0}/PKG-INFO +73 -73
- python-postman-0.3.0/examples/collections/Coinmarketcap.postman_collection.json +180 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/examples/collections/PokeAPI.postman_collection.json +65 -65
- {python-postman-0.2.0 → python-postman-0.3.0}/examples/models/coinmarketcap_example.py +63 -61
- {python-postman-0.2.0 → python-postman-0.3.0}/examples/models/pokeapi_example.py +66 -66
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/__main__.py +17 -17
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/auth.py +77 -77
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/body.py +8 -8
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/collection.py +36 -36
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/config.py +108 -108
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/environment.py +101 -101
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/event.py +30 -30
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/header.py +18 -18
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/item.py +28 -28
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/modules/file.py +203 -203
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/modules/http.py +126 -126
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/modules/logger.py +49 -49
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/postman.py +143 -143
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/request.py +17 -17
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/template.py +5 -5
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/url.py +94 -94
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/utils/cli.py +42 -42
- python-postman-0.3.0/pypostman/utils/load_dotenvc.py +99 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/variable.py +62 -62
- {python-postman-0.2.0 → python-postman-0.3.0}/pyproject.toml +22 -22
- {python-postman-0.2.0 → python-postman-0.3.0/python_postman.egg-info}/PKG-INFO +73 -73
- {python-postman-0.2.0 → python-postman-0.3.0}/python_postman.egg-info/SOURCES.txt +1 -1
- {python-postman-0.2.0 → python-postman-0.3.0}/setup.cfg +4 -4
- python-postman-0.2.0/examples/collections/Coinmarketcap.postman_collection.json +0 -107
- python-postman-0.2.0/pypostman/utils/.gitkeep +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/README.md +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/pypostman/__init__.py +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/python_postman.egg-info/dependency_links.txt +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/python_postman.egg-info/entry_points.txt +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/python_postman.egg-info/requires.txt +0 -0
- {python-postman-0.2.0 → python-postman-0.3.0}/python_postman.egg-info/top_level.txt +0 -0
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
pip-wheel-metadata/
|
|
24
|
-
share/python-wheels/
|
|
25
|
-
*.egg-info/
|
|
26
|
-
.installed.cfg
|
|
27
|
-
*.egg
|
|
28
|
-
MANIFEST
|
|
29
|
-
|
|
30
|
-
# PyInstaller
|
|
31
|
-
# Usually these files are written by a python script from a template
|
|
32
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
-
*.manifest
|
|
34
|
-
*.spec
|
|
35
|
-
|
|
36
|
-
# Installer logs
|
|
37
|
-
pip-log.txt
|
|
38
|
-
pip-delete-this-directory.txt
|
|
39
|
-
|
|
40
|
-
# Unit test / coverage reports
|
|
41
|
-
htmlcov/
|
|
42
|
-
.tox/
|
|
43
|
-
.nox/
|
|
44
|
-
.coverage
|
|
45
|
-
.coverage.*
|
|
46
|
-
.cache
|
|
47
|
-
nosetests.xml
|
|
48
|
-
coverage.xml
|
|
49
|
-
*.cover
|
|
50
|
-
*.py,cover
|
|
51
|
-
.hypothesis/
|
|
52
|
-
.pytest_cache/
|
|
53
|
-
|
|
54
|
-
# Translations
|
|
55
|
-
*.mo
|
|
56
|
-
*.pot
|
|
57
|
-
|
|
58
|
-
# Django stuff:
|
|
59
|
-
*.log
|
|
60
|
-
local_settings.py
|
|
61
|
-
db.sqlite3
|
|
62
|
-
db.sqlite3-journal
|
|
63
|
-
|
|
64
|
-
# Flask stuff:
|
|
65
|
-
instance/
|
|
66
|
-
.webassets-cache
|
|
67
|
-
|
|
68
|
-
# Scrapy stuff:
|
|
69
|
-
.scrapy
|
|
70
|
-
|
|
71
|
-
# Sphinx documentation
|
|
72
|
-
docs/_build/
|
|
73
|
-
|
|
74
|
-
# PyBuilder
|
|
75
|
-
target/
|
|
76
|
-
|
|
77
|
-
# Jupyter Notebook
|
|
78
|
-
.ipynb_checkpoints
|
|
79
|
-
|
|
80
|
-
# IPython
|
|
81
|
-
profile_default/
|
|
82
|
-
ipython_config.py
|
|
83
|
-
|
|
84
|
-
# pyenv
|
|
85
|
-
.python-version
|
|
86
|
-
|
|
87
|
-
# pipenv
|
|
88
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
-
# install all needed dependencies.
|
|
92
|
-
#Pipfile.lock
|
|
93
|
-
|
|
94
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
-
__pypackages__/
|
|
96
|
-
|
|
97
|
-
# Celery stuff
|
|
98
|
-
celerybeat-schedule
|
|
99
|
-
celerybeat.pid
|
|
100
|
-
|
|
101
|
-
# SageMath parsed files
|
|
102
|
-
*.sage.py
|
|
103
|
-
|
|
104
|
-
# Environments
|
|
105
|
-
.env
|
|
106
|
-
.venv
|
|
107
|
-
env/
|
|
108
|
-
venv/
|
|
109
|
-
ENV/
|
|
110
|
-
env.bak/
|
|
111
|
-
venv.bak/
|
|
112
|
-
|
|
113
|
-
# Spyder project settings
|
|
114
|
-
.spyderproject
|
|
115
|
-
.spyproject
|
|
116
|
-
|
|
117
|
-
# Rope project settings
|
|
118
|
-
.ropeproject
|
|
119
|
-
|
|
120
|
-
# mkdocs documentation
|
|
121
|
-
/site
|
|
122
|
-
|
|
123
|
-
# mypy
|
|
124
|
-
.mypy_cache/
|
|
125
|
-
.dmypy.json
|
|
126
|
-
dmypy.json
|
|
127
|
-
|
|
128
|
-
# Pyre type checker
|
|
129
|
-
.pyre/
|
|
130
|
-
|
|
131
|
-
.DS_Store
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
.python-version
|
|
86
|
+
|
|
87
|
+
# pipenv
|
|
88
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
+
# install all needed dependencies.
|
|
92
|
+
#Pipfile.lock
|
|
93
|
+
|
|
94
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
+
__pypackages__/
|
|
96
|
+
|
|
97
|
+
# Celery stuff
|
|
98
|
+
celerybeat-schedule
|
|
99
|
+
celerybeat.pid
|
|
100
|
+
|
|
101
|
+
# SageMath parsed files
|
|
102
|
+
*.sage.py
|
|
103
|
+
|
|
104
|
+
# Environments
|
|
105
|
+
.env
|
|
106
|
+
.venv
|
|
107
|
+
env/
|
|
108
|
+
venv/
|
|
109
|
+
ENV/
|
|
110
|
+
env.bak/
|
|
111
|
+
venv.bak/
|
|
112
|
+
|
|
113
|
+
# Spyder project settings
|
|
114
|
+
.spyderproject
|
|
115
|
+
.spyproject
|
|
116
|
+
|
|
117
|
+
# Rope project settings
|
|
118
|
+
.ropeproject
|
|
119
|
+
|
|
120
|
+
# mkdocs documentation
|
|
121
|
+
/site
|
|
122
|
+
|
|
123
|
+
# mypy
|
|
124
|
+
.mypy_cache/
|
|
125
|
+
.dmypy.json
|
|
126
|
+
dmypy.json
|
|
127
|
+
|
|
128
|
+
# Pyre type checker
|
|
129
|
+
.pyre/
|
|
130
|
+
|
|
131
|
+
.DS_Store
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Yudiell
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Yudiell
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: python-postman
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Pypostman allows users to parse postman environments and postman collections.
|
|
5
|
-
License: MIT
|
|
6
|
-
Keywords: postman,python-postman,pypostman,api,requests
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Requires-Python: >=3.8
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
|
-
Provides-Extra: mypy
|
|
11
|
-
Provides-Extra: black
|
|
12
|
-
License-File: LICENSE
|
|
13
|
-
|
|
14
|
-
# Python Postman
|
|
15
|
-
|
|
16
|
-
**pypostman** is a command-line interface that allows to `automate` multiple api calls from postman collections, additionally it also allow you to `compress` and `save` the response to a local directory or to an AWS S3 bucket.
|
|
17
|
-
Thereby allowing you to manage your api calls using postman, then `automate` and `process` their response using python.
|
|
18
|
-
|
|
19
|
-
Example:
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
from pypostman.postman import Postman
|
|
23
|
-
from pypostman.modules.http import Request
|
|
24
|
-
|
|
25
|
-
postman = Postman()
|
|
26
|
-
|
|
27
|
-
collections_dir = "../collections"
|
|
28
|
-
collections = postman._get_collections(dir=collections_dir)
|
|
29
|
-
pokeapi_collection = postman._get_collection(name="PokeAPI", collections=collections)
|
|
30
|
-
pokeapi_requests = postman._get_requests(collection=pokeapi_collection)
|
|
31
|
-
|
|
32
|
-
def pokemon(self, **kwargs):
|
|
33
|
-
# Make an API request.
|
|
34
|
-
# The request name should match the Postman request name.
|
|
35
|
-
name = "/pokemon"
|
|
36
|
-
pokemon = postman._get_request(name=name, requests=pokeapi_requests)
|
|
37
|
-
prepared_request: Request = Request(request=pokemon)
|
|
38
|
-
prepared_request.set_path_vars(kwargs)
|
|
39
|
-
prepared_request.set_params(kwargs)
|
|
40
|
-
response = prepared_request.send
|
|
41
|
-
return response
|
|
42
|
-
```
|
|
43
|
-
## What is Included?
|
|
44
|
-
|
|
45
|
-
- The **pypostman** source code.
|
|
46
|
-
- collections
|
|
47
|
-
- Coinmarketcap.postman_collection.json
|
|
48
|
-
- PokeAPI.postman_collection.json
|
|
49
|
-
- models
|
|
50
|
-
- coinmarketcap_example.py
|
|
51
|
-
- pokeapi_example.py
|
|
52
|
-
|
|
53
|
-
### Included Modules
|
|
54
|
-
- file.py
|
|
55
|
-
- http.py
|
|
56
|
-
- logger.py
|
|
57
|
-
|
|
58
|
-
## Installation
|
|
59
|
-
|
|
60
|
-
### Python >= 3.8
|
|
61
|
-
|
|
62
|
-
Pypi Test:
|
|
63
|
-
```
|
|
64
|
-
pip install -i https://test.pypi.org/simple/ python-postman
|
|
65
|
-
```
|
|
66
|
-
Pypi (Not implemented Yet):
|
|
67
|
-
```
|
|
68
|
-
pip install python-postman
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## How to Use It
|
|
72
|
-
|
|
73
|
-
See examples.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: python-postman
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Pypostman allows users to parse postman environments and postman collections.
|
|
5
|
+
License: MIT
|
|
6
|
+
Keywords: postman,python-postman,pypostman,api,requests
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Provides-Extra: mypy
|
|
11
|
+
Provides-Extra: black
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
|
|
14
|
+
# Python Postman
|
|
15
|
+
|
|
16
|
+
**pypostman** is a command-line interface that allows to `automate` multiple api calls from postman collections, additionally it also allow you to `compress` and `save` the response to a local directory or to an AWS S3 bucket.
|
|
17
|
+
Thereby allowing you to manage your api calls using postman, then `automate` and `process` their response using python.
|
|
18
|
+
|
|
19
|
+
Example:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
from pypostman.postman import Postman
|
|
23
|
+
from pypostman.modules.http import Request
|
|
24
|
+
|
|
25
|
+
postman = Postman()
|
|
26
|
+
|
|
27
|
+
collections_dir = "../collections"
|
|
28
|
+
collections = postman._get_collections(dir=collections_dir)
|
|
29
|
+
pokeapi_collection = postman._get_collection(name="PokeAPI", collections=collections)
|
|
30
|
+
pokeapi_requests = postman._get_requests(collection=pokeapi_collection)
|
|
31
|
+
|
|
32
|
+
def pokemon(self, **kwargs):
|
|
33
|
+
# Make an API request.
|
|
34
|
+
# The request name should match the Postman request name.
|
|
35
|
+
name = "/pokemon"
|
|
36
|
+
pokemon = postman._get_request(name=name, requests=pokeapi_requests)
|
|
37
|
+
prepared_request: Request = Request(request=pokemon)
|
|
38
|
+
prepared_request.set_path_vars(kwargs)
|
|
39
|
+
prepared_request.set_params(kwargs)
|
|
40
|
+
response = prepared_request.send
|
|
41
|
+
return response
|
|
42
|
+
```
|
|
43
|
+
## What is Included?
|
|
44
|
+
|
|
45
|
+
- The **pypostman** source code.
|
|
46
|
+
- collections
|
|
47
|
+
- Coinmarketcap.postman_collection.json
|
|
48
|
+
- PokeAPI.postman_collection.json
|
|
49
|
+
- models
|
|
50
|
+
- coinmarketcap_example.py
|
|
51
|
+
- pokeapi_example.py
|
|
52
|
+
|
|
53
|
+
### Included Modules
|
|
54
|
+
- file.py
|
|
55
|
+
- http.py
|
|
56
|
+
- logger.py
|
|
57
|
+
|
|
58
|
+
## Installation
|
|
59
|
+
|
|
60
|
+
### Python >= 3.8
|
|
61
|
+
|
|
62
|
+
Pypi Test:
|
|
63
|
+
```
|
|
64
|
+
pip install -i https://test.pypi.org/simple/ python-postman
|
|
65
|
+
```
|
|
66
|
+
Pypi (Not implemented Yet):
|
|
67
|
+
```
|
|
68
|
+
pip install python-postman
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## How to Use It
|
|
72
|
+
|
|
73
|
+
See examples.
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "d55e8f48-1461-407a-ba5a-854675da762f",
|
|
4
|
+
"name": "Coinmarketcap",
|
|
5
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
6
|
+
"_exporter_id": "3009653",
|
|
7
|
+
"_collection_link": "https://rubrics.postman.co/workspace/Team-Training-Workspace~68679b56-1339-48c0-8b13-a4f0937a9c15/collection/3009653-d55e8f48-1461-407a-ba5a-854675da762f?action=share&creator=3009653&source=collection_link"
|
|
8
|
+
},
|
|
9
|
+
"item": [
|
|
10
|
+
{
|
|
11
|
+
"name": "/v1/cryptocurrency/map",
|
|
12
|
+
"request": {
|
|
13
|
+
"method": "GET",
|
|
14
|
+
"header": [
|
|
15
|
+
{
|
|
16
|
+
"key": "Accept",
|
|
17
|
+
"value": "application/json",
|
|
18
|
+
"type": "text"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"url": {
|
|
22
|
+
"raw": "{{base_path}}/v1/cryptocurrency/map?listing_status={{LISTING_STATUS}}&limit={{LIMIT}}&sort={{SORT}}&symbol={{SYMBOL}}",
|
|
23
|
+
"host": [
|
|
24
|
+
"{{base_path}}"
|
|
25
|
+
],
|
|
26
|
+
"path": [
|
|
27
|
+
"v1",
|
|
28
|
+
"cryptocurrency",
|
|
29
|
+
"map"
|
|
30
|
+
],
|
|
31
|
+
"query": [
|
|
32
|
+
{
|
|
33
|
+
"key": "listing_status",
|
|
34
|
+
"value": "{{LISTING_STATUS}}",
|
|
35
|
+
"description": "string\nDefault: \"active\"\nOnly active cryptocurrencies are returned by default. Pass inactive to get a list of cryptocurrencies that are no longer active. Pass untracked to get a list of cryptocurrencies that are listed but do not yet meet methodology requirements to have tracked markets available. You may pass one or more comma-separated values."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "start",
|
|
39
|
+
"value": "{{START}}",
|
|
40
|
+
"description": "integer >= 1\nDefault: 1\nOptionally offset the start (1-based index) of the paginated list of items to return.",
|
|
41
|
+
"disabled": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "limit",
|
|
45
|
+
"value": "{{LIMIT}}",
|
|
46
|
+
"description": "integer [ 1 .. 5000 ]\nOptionally specify the number of results to return. Use this parameter and the \"start\" parameter to determine your own pagination size."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "sort",
|
|
50
|
+
"value": "{{SORT}}",
|
|
51
|
+
"description": "string\nDefault: \"id\"\nValid Values: \"cmc_rank\"\"id\"\nWhat field to sort the list of cryptocurrencies by."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "symbol",
|
|
55
|
+
"value": "{{SYMBOL}}",
|
|
56
|
+
"description": "string\nOptionally pass a comma-separated list of cryptocurrency symbols to return CoinMarketCap IDs for. If this option is passed, other options will be ignored."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "aux",
|
|
60
|
+
"value": "",
|
|
61
|
+
"description": "string\nDefault: \"platform,first_historical_data,last_historical_data,is_active\"\nOptionally specify a comma-separated list of supplemental data fields to return. Pass platform,first_historical_data,last_historical_data,is_active,status to include all auxiliary fields.",
|
|
62
|
+
"disabled": true
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"response": []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "/listings/latest",
|
|
71
|
+
"request": {
|
|
72
|
+
"method": "GET",
|
|
73
|
+
"header": [],
|
|
74
|
+
"url": {
|
|
75
|
+
"raw": "{{base_path}}/v1/cryptocurrency/listings/latest?circulating_supply_max=1000000000&limit=100&price_max=.065&price_min=.04",
|
|
76
|
+
"host": [
|
|
77
|
+
"{{base_path}}"
|
|
78
|
+
],
|
|
79
|
+
"path": [
|
|
80
|
+
"v1",
|
|
81
|
+
"cryptocurrency",
|
|
82
|
+
"listings",
|
|
83
|
+
"latest"
|
|
84
|
+
],
|
|
85
|
+
"query": [
|
|
86
|
+
{
|
|
87
|
+
"key": "circulating_supply_max",
|
|
88
|
+
"value": "1000000000"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "limit",
|
|
92
|
+
"value": "100"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "price_max",
|
|
96
|
+
"value": ".065"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "price_min",
|
|
100
|
+
"value": ".04"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "sort",
|
|
104
|
+
"value": null,
|
|
105
|
+
"disabled": true
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"response": []
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"auth": {
|
|
114
|
+
"type": "apikey",
|
|
115
|
+
"apikey": [
|
|
116
|
+
{
|
|
117
|
+
"key": "value",
|
|
118
|
+
"value": "{{X-CMC_PRO_API_KEY}}",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "key",
|
|
123
|
+
"value": "X-CMC_PRO_API_KEY",
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"event": [
|
|
129
|
+
{
|
|
130
|
+
"listen": "prerequest",
|
|
131
|
+
"script": {
|
|
132
|
+
"type": "text/javascript",
|
|
133
|
+
"exec": [
|
|
134
|
+
""
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"listen": "test",
|
|
140
|
+
"script": {
|
|
141
|
+
"type": "text/javascript",
|
|
142
|
+
"exec": [
|
|
143
|
+
""
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"variable": [
|
|
149
|
+
{
|
|
150
|
+
"key": "PROD_BASE_URL",
|
|
151
|
+
"value": "https://pro-api.coinmarketcap.com",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "SANDBOX_BASE_URL",
|
|
156
|
+
"value": "https://sandbox-api.coinmarketcap.com",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"key": "base_path",
|
|
161
|
+
"value": "https://pro-api.coinmarketcap.com",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"key": "api_tags",
|
|
166
|
+
"value": "crypto,bitcoin,daily,cryptocurrency,grouped,coinmarketcap",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"key": "model_name",
|
|
171
|
+
"value": "coinmarketcap",
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"key": "s3_prefix",
|
|
176
|
+
"value": "{{ENV}}/business_systems/coinmarketcap/latest/snapshots/{{DATE_PARTITION}}",
|
|
177
|
+
"type": "string"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|