cjapy 0.3.0__tar.gz → 0.3.2__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.
- cjapy-0.3.2/MANIFEST.in +3 -0
- {cjapy-0.3.0/cjapy.egg-info → cjapy-0.3.2}/PKG-INFO +49 -28
- {cjapy-0.3.0 → cjapy-0.3.2}/README.md +37 -8
- cjapy-0.3.2/cjapy/__version__.py +1 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/cjapy.py +293 -40
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/requestCreator.py +1 -1
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/workspace.py +2 -2
- {cjapy-0.3.0 → cjapy-0.3.2/cjapy.egg-info}/PKG-INFO +49 -28
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy.egg-info/SOURCES.txt +12 -3
- cjapy-0.3.2/cjapy.egg-info/requires.txt +6 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/cja.md +1 -1
- cjapy-0.3.2/docs/packaging.md +69 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/releases.md +12 -1
- {cjapy-0.3.0 → cjapy-0.3.2}/pyproject.toml +19 -14
- cjapy-0.3.2/requirements-build.txt +1 -0
- cjapy-0.3.2/requirements.txt +3 -0
- cjapy-0.3.2/scripts/check_distributions.py +97 -0
- cjapy-0.3.2/tests/test_api_contracts.py +297 -0
- cjapy-0.3.2/tests/test_connector.py +123 -0
- cjapy-0.3.2/tests/test_fixtures.py +48 -0
- cjapy-0.3.2/tests/test_loading.py +210 -0
- cjapy-0.3.2/tests/test_pagination.py +156 -0
- cjapy-0.3.2/tests/test_reports.py +156 -0
- cjapy-0.3.2/tests/test_request_creator.py +153 -0
- cjapy-0.3.0/.gitignore +0 -15
- cjapy-0.3.0/cjapy/__version__.py +0 -1
- cjapy-0.3.0/cjapy.egg-info/requires.txt +0 -10
- cjapy-0.3.0/requirements.txt +0 -6
- cjapy-0.3.0/setup.py +0 -64
- {cjapy-0.3.0 → cjapy-0.3.2}/LICENSE +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/__init__.py +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/config.py +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/configs.py +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/connector.py +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy/projects.py +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy.egg-info/dependency_links.txt +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/cjapy.egg-info/top_level.txt +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/authenticating_without_config_json.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/getting_started.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/logging.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/main.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/projects.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/requestCreator.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/docs/workspace.md +0 -0
- {cjapy-0.3.0 → cjapy-0.3.2}/setup.cfg +0 -0
cjapy-0.3.2/MANIFEST.in
ADDED
|
@@ -1,40 +1,32 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cjapy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Adobe Customer Journey Analytics (CJA) wrapper
|
|
5
|
-
Home-page: https://github.com/pitchmuc/cjapy
|
|
6
|
-
Author: Julien Piccini
|
|
7
5
|
Author-email: Julien Piccini <piccini.julien@gmail.com>
|
|
8
|
-
License: Apache
|
|
6
|
+
License-Expression: Apache-2.0
|
|
9
7
|
Project-URL: homepage, https://github.com/pitchmuc/cjapy
|
|
10
8
|
Project-URL: changelog, https://github.com/pitchmuc/cjapy/blob/master/docs/releases.md
|
|
11
9
|
Keywords: adobe,analytics,API,python
|
|
12
10
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
14
11
|
Classifier: Operating System :: OS Independent
|
|
15
12
|
Classifier: Programming Language :: Python
|
|
16
13
|
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
21
20
|
Classifier: Development Status :: 4 - Beta
|
|
22
|
-
Requires-Python: >=3.
|
|
21
|
+
Requires-Python: >=3.10
|
|
23
22
|
Description-Content-Type: text/markdown
|
|
24
23
|
License-File: LICENSE
|
|
25
24
|
Requires-Dist: pandas
|
|
26
|
-
Requires-Dist: pathlib2
|
|
27
|
-
Requires-Dist: pathlib
|
|
28
25
|
Requires-Dist: requests
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
|
|
31
|
-
Requires-Dist: pytest
|
|
32
|
-
Provides-Extra: dynamic
|
|
33
|
-
Requires-Dist: version; extra == "dynamic"
|
|
34
|
-
Dynamic: author
|
|
35
|
-
Dynamic: home-page
|
|
26
|
+
Requires-Dist: deprecation
|
|
27
|
+
Provides-Extra: test
|
|
28
|
+
Requires-Dist: pytest>=9.0.3; extra == "test"
|
|
36
29
|
Dynamic: license-file
|
|
37
|
-
Dynamic: requires-python
|
|
38
30
|
|
|
39
31
|
# Adobe Customer Journey API
|
|
40
32
|
|
|
@@ -97,19 +89,42 @@ There is a proper documentation in place to understand how you can add the loggi
|
|
|
97
89
|
|
|
98
90
|
## Dependencies
|
|
99
91
|
|
|
100
|
-
|
|
92
|
+
Runtime dependencies are declared in `pyproject.toml`:
|
|
101
93
|
|
|
102
94
|
* pandas
|
|
103
95
|
* requests
|
|
104
|
-
*
|
|
105
|
-
* PyJWT
|
|
106
|
-
* PyJWT[crypto]
|
|
107
|
-
* pathlib
|
|
108
|
-
* pytest
|
|
96
|
+
* deprecation
|
|
109
97
|
|
|
110
|
-
##
|
|
98
|
+
## Tests
|
|
111
99
|
|
|
112
|
-
|
|
100
|
+
Use Python 3.10 or newer, create a virtual environment, and install the package
|
|
101
|
+
and test dependencies from the repository root:
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
python -m venv .venv
|
|
105
|
+
# Activate .venv using the command for your shell, e.g. source .venv/bin/activate
|
|
106
|
+
python -m pip install -r requirements-dev.txt
|
|
107
|
+
python -m pytest -q
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The connector tests use a local HTTP server on an ephemeral loopback port and
|
|
111
|
+
synthetic, non-expiring credentials. No Adobe account, configuration file, secrets,
|
|
112
|
+
or external network access is needed to run them after dependencies are installed.
|
|
113
|
+
External connections are blocked by a test fixture; local loopback sockets must
|
|
114
|
+
be permitted. The tests exercise the actual requests/urllib3 retry adapter and
|
|
115
|
+
replace only urllib3's clock and sleep functions to verify delays without waiting.
|
|
116
|
+
|
|
117
|
+
Coverage includes JSON responses, 429 and transient 500/502/503/504 responses,
|
|
118
|
+
Retry-After seconds and HTTP dates, exponential backoff, and retry exhaustion.
|
|
119
|
+
The tests characterize current behavior: `retry=0` still permits three retries,
|
|
120
|
+
POST/PATCH requests are retried too, and exhaustion returns the final JSON error
|
|
121
|
+
(or HTTP status for DELETE) instead of raising a status-retry exception.
|
|
122
|
+
|
|
123
|
+
GitHub Actions runs the suite on Python 3.10–3.14 for pushes and pull requests.
|
|
124
|
+
This follows `pyproject.toml`'s `requires-python = ">=3.10"`. The older
|
|
125
|
+
`setup.py` declaration (`>=3.6`) and the Python 3.6–3.9 classifiers across the
|
|
126
|
+
metadata files conflict with that minimum. Those declarations remain unchanged;
|
|
127
|
+
maintainers should reconcile the support policy separately.
|
|
113
128
|
|
|
114
129
|
## Others Sources
|
|
115
130
|
|
|
@@ -119,3 +134,9 @@ You can find information about the CJA API here :
|
|
|
119
134
|
* [https://www.adobe.io/cja-apis/docs/use-cases/]
|
|
120
135
|
|
|
121
136
|
[1]: https://www.datanalyst.info
|
|
137
|
+
|
|
138
|
+
## Packaging checks
|
|
139
|
+
|
|
140
|
+
See [packaging and release checks](./docs/packaging.md) for wheel/sdist builds,
|
|
141
|
+
fresh-install smoke checks, and test dependencies. The project requires
|
|
142
|
+
Python 3.10 or newer and is licensed under Apache License 2.0.
|
|
@@ -59,19 +59,42 @@ There is a proper documentation in place to understand how you can add the loggi
|
|
|
59
59
|
|
|
60
60
|
## Dependencies
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Runtime dependencies are declared in `pyproject.toml`:
|
|
63
63
|
|
|
64
64
|
* pandas
|
|
65
65
|
* requests
|
|
66
|
-
*
|
|
67
|
-
* PyJWT
|
|
68
|
-
* PyJWT[crypto]
|
|
69
|
-
* pathlib
|
|
70
|
-
* pytest
|
|
66
|
+
* deprecation
|
|
71
67
|
|
|
72
|
-
##
|
|
68
|
+
## Tests
|
|
73
69
|
|
|
74
|
-
|
|
70
|
+
Use Python 3.10 or newer, create a virtual environment, and install the package
|
|
71
|
+
and test dependencies from the repository root:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
python -m venv .venv
|
|
75
|
+
# Activate .venv using the command for your shell, e.g. source .venv/bin/activate
|
|
76
|
+
python -m pip install -r requirements-dev.txt
|
|
77
|
+
python -m pytest -q
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The connector tests use a local HTTP server on an ephemeral loopback port and
|
|
81
|
+
synthetic, non-expiring credentials. No Adobe account, configuration file, secrets,
|
|
82
|
+
or external network access is needed to run them after dependencies are installed.
|
|
83
|
+
External connections are blocked by a test fixture; local loopback sockets must
|
|
84
|
+
be permitted. The tests exercise the actual requests/urllib3 retry adapter and
|
|
85
|
+
replace only urllib3's clock and sleep functions to verify delays without waiting.
|
|
86
|
+
|
|
87
|
+
Coverage includes JSON responses, 429 and transient 500/502/503/504 responses,
|
|
88
|
+
Retry-After seconds and HTTP dates, exponential backoff, and retry exhaustion.
|
|
89
|
+
The tests characterize current behavior: `retry=0` still permits three retries,
|
|
90
|
+
POST/PATCH requests are retried too, and exhaustion returns the final JSON error
|
|
91
|
+
(or HTTP status for DELETE) instead of raising a status-retry exception.
|
|
92
|
+
|
|
93
|
+
GitHub Actions runs the suite on Python 3.10–3.14 for pushes and pull requests.
|
|
94
|
+
This follows `pyproject.toml`'s `requires-python = ">=3.10"`. The older
|
|
95
|
+
`setup.py` declaration (`>=3.6`) and the Python 3.6–3.9 classifiers across the
|
|
96
|
+
metadata files conflict with that minimum. Those declarations remain unchanged;
|
|
97
|
+
maintainers should reconcile the support policy separately.
|
|
75
98
|
|
|
76
99
|
## Others Sources
|
|
77
100
|
|
|
@@ -81,3 +104,9 @@ You can find information about the CJA API here :
|
|
|
81
104
|
* [https://www.adobe.io/cja-apis/docs/use-cases/]
|
|
82
105
|
|
|
83
106
|
[1]: https://www.datanalyst.info
|
|
107
|
+
|
|
108
|
+
## Packaging checks
|
|
109
|
+
|
|
110
|
+
See [packaging and release checks](./docs/packaging.md) for wheel/sdist builds,
|
|
111
|
+
fresh-install smoke checks, and test dependencies. The project requires
|
|
112
|
+
Python 3.10 or newer and is licensed under Apache License 2.0.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.2"
|