cjapy 0.3.1__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.
Files changed (45) hide show
  1. cjapy-0.3.2/MANIFEST.in +3 -0
  2. {cjapy-0.3.1/cjapy.egg-info → cjapy-0.3.2}/PKG-INFO +47 -24
  3. {cjapy-0.3.1 → cjapy-0.3.2}/README.md +37 -8
  4. cjapy-0.3.2/cjapy/__version__.py +1 -0
  5. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/cjapy.py +293 -40
  6. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/requestCreator.py +1 -1
  7. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/workspace.py +2 -2
  8. {cjapy-0.3.1 → cjapy-0.3.2/cjapy.egg-info}/PKG-INFO +47 -24
  9. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy.egg-info/SOURCES.txt +12 -3
  10. cjapy-0.3.2/cjapy.egg-info/requires.txt +6 -0
  11. {cjapy-0.3.1 → cjapy-0.3.2}/docs/cja.md +1 -1
  12. cjapy-0.3.2/docs/packaging.md +69 -0
  13. {cjapy-0.3.1 → cjapy-0.3.2}/docs/releases.md +9 -0
  14. {cjapy-0.3.1 → cjapy-0.3.2}/pyproject.toml +16 -9
  15. cjapy-0.3.2/requirements-build.txt +1 -0
  16. cjapy-0.3.2/requirements.txt +3 -0
  17. cjapy-0.3.2/scripts/check_distributions.py +97 -0
  18. cjapy-0.3.2/tests/test_api_contracts.py +297 -0
  19. cjapy-0.3.2/tests/test_connector.py +123 -0
  20. cjapy-0.3.2/tests/test_fixtures.py +48 -0
  21. cjapy-0.3.2/tests/test_loading.py +210 -0
  22. cjapy-0.3.2/tests/test_pagination.py +156 -0
  23. cjapy-0.3.2/tests/test_reports.py +156 -0
  24. cjapy-0.3.2/tests/test_request_creator.py +153 -0
  25. cjapy-0.3.1/.gitignore +0 -15
  26. cjapy-0.3.1/cjapy/__version__.py +0 -1
  27. cjapy-0.3.1/cjapy.egg-info/requires.txt +0 -9
  28. cjapy-0.3.1/requirements.txt +0 -6
  29. cjapy-0.3.1/setup.py +0 -65
  30. {cjapy-0.3.1 → cjapy-0.3.2}/LICENSE +0 -0
  31. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/__init__.py +0 -0
  32. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/config.py +0 -0
  33. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/configs.py +0 -0
  34. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/connector.py +0 -0
  35. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy/projects.py +0 -0
  36. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy.egg-info/dependency_links.txt +0 -0
  37. {cjapy-0.3.1 → cjapy-0.3.2}/cjapy.egg-info/top_level.txt +0 -0
  38. {cjapy-0.3.1 → cjapy-0.3.2}/docs/authenticating_without_config_json.md +0 -0
  39. {cjapy-0.3.1 → cjapy-0.3.2}/docs/getting_started.md +0 -0
  40. {cjapy-0.3.1 → cjapy-0.3.2}/docs/logging.md +0 -0
  41. {cjapy-0.3.1 → cjapy-0.3.2}/docs/main.md +0 -0
  42. {cjapy-0.3.1 → cjapy-0.3.2}/docs/projects.md +0 -0
  43. {cjapy-0.3.1 → cjapy-0.3.2}/docs/requestCreator.md +0 -0
  44. {cjapy-0.3.1 → cjapy-0.3.2}/docs/workspace.md +0 -0
  45. {cjapy-0.3.1 → cjapy-0.3.2}/setup.cfg +0 -0
@@ -0,0 +1,3 @@
1
+ include requirements.txt requirements-build.txt
2
+ recursive-include docs *.md
3
+ recursive-include scripts *.py
@@ -1,38 +1,32 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjapy
3
- Version: 0.3.1
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 License 2.0
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.8
18
- Classifier: Programming Language :: Python :: 3.9
19
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
20
20
  Classifier: Development Status :: 4 - Beta
21
- Requires-Python: >=3.6
21
+ Requires-Python: >=3.10
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  Requires-Dist: pandas
25
- Requires-Dist: pathlib2
26
- Requires-Dist: pathlib
27
25
  Requires-Dist: requests
28
26
  Requires-Dist: deprecation
29
- Requires-Dist: pytest
30
- Provides-Extra: dynamic
31
- Requires-Dist: version; extra == "dynamic"
32
- Dynamic: author
33
- Dynamic: home-page
27
+ Provides-Extra: test
28
+ Requires-Dist: pytest>=9.0.3; extra == "test"
34
29
  Dynamic: license-file
35
- Dynamic: requires-python
36
30
 
37
31
  # Adobe Customer Journey API
38
32
 
@@ -95,19 +89,42 @@ There is a proper documentation in place to understand how you can add the loggi
95
89
 
96
90
  ## Dependencies
97
91
 
98
- In order to use this API in python, you would need to have those libraries installed :
92
+ Runtime dependencies are declared in `pyproject.toml`:
99
93
 
100
94
  * pandas
101
95
  * requests
102
- * json
103
- * PyJWT
104
- * PyJWT[crypto]
105
- * pathlib
106
- * pytest
96
+ * deprecation
107
97
 
108
- ## Test
98
+ ## Tests
109
99
 
110
- TBW
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.
111
128
 
112
129
  ## Others Sources
113
130
 
@@ -117,3 +134,9 @@ You can find information about the CJA API here :
117
134
  * [https://www.adobe.io/cja-apis/docs/use-cases/]
118
135
 
119
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
- In order to use this API in python, you would need to have those libraries installed :
62
+ Runtime dependencies are declared in `pyproject.toml`:
63
63
 
64
64
  * pandas
65
65
  * requests
66
- * json
67
- * PyJWT
68
- * PyJWT[crypto]
69
- * pathlib
70
- * pytest
66
+ * deprecation
71
67
 
72
- ## Test
68
+ ## Tests
73
69
 
74
- TBW
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"