python4cpm 1.0.16__tar.gz → 1.0.18__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.
- {python4cpm-1.0.16/src/python4cpm.egg-info → python4cpm-1.0.18}/PKG-INFO +12 -12
- {python4cpm-1.0.16 → python4cpm-1.0.18}/README.md +11 -11
- {python4cpm-1.0.16 → python4cpm-1.0.18}/pyproject.toml +1 -1
- {python4cpm-1.0.16 → python4cpm-1.0.18/src/python4cpm.egg-info}/PKG-INFO +12 -12
- {python4cpm-1.0.16 → python4cpm-1.0.18}/LICENSE +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/setup.cfg +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/__init__.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/args.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/crypto.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/logger.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/nethelper.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/python4cpm.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm/secrets.py +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm.egg-info/SOURCES.txt +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm.egg-info/dependency_links.txt +0 -0
- {python4cpm-1.0.16 → python4cpm-1.0.18}/src/python4cpm.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python4cpm
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.18
|
|
4
4
|
Summary: Python for CPM
|
|
5
5
|
Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -45,9 +45,9 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
45
45
|
3. Install `python4cpm` in your venv:
|
|
46
46
|
- If your CPM can connect to the internet, install with `c:\venv\Scripts\pip install python4cpm`.
|
|
47
47
|
- If your CPM cannot connect to the internet:
|
|
48
|
-
- Download the `
|
|
49
|
-
- Copy the file to CPM and extract to a temporary
|
|
50
|
-
- From the
|
|
48
|
+
- Download the latest `*.whl` file from the [pypi project files](https://pypi.org/project/python4cpm/#files).
|
|
49
|
+
- Copy the file to CPM and extract to a temporary directory called `python4cpm-wheel`.
|
|
50
|
+
- From the parent directory of `python4cpm-wheel` run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
### Importing the platform
|
|
@@ -72,7 +72,7 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
72
72
|
from python4cpm import Python4CPM
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by
|
|
75
|
+
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by the .NET SDK
|
|
76
76
|
|
|
77
77
|
# These are the usable properties and related methods from the object:
|
|
78
78
|
p4cpm.args.action # action requested from CPM
|
|
@@ -166,7 +166,7 @@ if __name__ == "__main__":
|
|
|
166
166
|
p4cpm.log_error(f"{type(e).__name__}: {e}")
|
|
167
167
|
p4cpm.close_fail()
|
|
168
168
|
```
|
|
169
|
-
(*)
|
|
169
|
+
(*) More realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
|
|
170
170
|
|
|
171
171
|
When doing `verify`, `change` or `reconcile` from Privilege Cloud/PVWA:
|
|
172
172
|
1. Verify -> the sciprt will be executed once with the `p4cpm.args.action` as `Python4CPM.ACTION_VERIFY`.
|
|
@@ -202,7 +202,7 @@ pip install python4cpm
|
|
|
202
202
|
### Example:
|
|
203
203
|
|
|
204
204
|
```python
|
|
205
|
-
from python4cpm import
|
|
205
|
+
from python4cpm import NETHelper, Python4CPM
|
|
206
206
|
from getpass import getpass
|
|
207
207
|
|
|
208
208
|
# Get secrets for your password, logon account password, reconcile account password and new password
|
|
@@ -212,7 +212,7 @@ logon_password = getpass("logon_password: ") # password from linked logon accoun
|
|
|
212
212
|
reconcile_password = getpass("reconcile_password: ") # password from linked reconcile account
|
|
213
213
|
new_password = getpass("new_password: ") # new password for the rotation
|
|
214
214
|
|
|
215
|
-
p4cpm =
|
|
215
|
+
p4cpm = NETHelper.run(
|
|
216
216
|
action=Python4CPM.ACTION_LOGON, # use actions from Python4CPM.ACTION_*
|
|
217
217
|
address="myapp.corp.local", # populate with the address from your account properties
|
|
218
218
|
username="jdoe", # populate with the username from your account properties
|
|
@@ -232,12 +232,12 @@ p4cpm.log_info("success!")
|
|
|
232
232
|
p4cpm.close_success()
|
|
233
233
|
|
|
234
234
|
# Remember for your final script:
|
|
235
|
-
## changing the definition of p4cpm from
|
|
235
|
+
## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
|
|
236
236
|
## remove any secrets prompting
|
|
237
|
-
## remove the
|
|
237
|
+
## remove the NETHelper import
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
Remember for your final script:
|
|
241
|
-
- Change the definition of `p4cpm` from `p4cpm =
|
|
241
|
+
- Change the definition of `p4cpm` from `p4cpm = NETHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
|
|
242
242
|
- Remove any secrets prompting or interactive interruptions.
|
|
243
|
-
- Remove the import of `
|
|
243
|
+
- Remove the import of `NETHelper`.
|
|
@@ -13,9 +13,9 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
13
13
|
3. Install `python4cpm` in your venv:
|
|
14
14
|
- If your CPM can connect to the internet, install with `c:\venv\Scripts\pip install python4cpm`.
|
|
15
15
|
- If your CPM cannot connect to the internet:
|
|
16
|
-
- Download the `
|
|
17
|
-
- Copy the file to CPM and extract to a temporary
|
|
18
|
-
- From the
|
|
16
|
+
- Download the latest `*.whl` file from the [pypi project files](https://pypi.org/project/python4cpm/#files).
|
|
17
|
+
- Copy the file to CPM and extract to a temporary directory called `python4cpm-wheel`.
|
|
18
|
+
- From the parent directory of `python4cpm-wheel` run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
### Importing the platform
|
|
@@ -40,7 +40,7 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
40
40
|
from python4cpm import Python4CPM
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by
|
|
43
|
+
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by the .NET SDK
|
|
44
44
|
|
|
45
45
|
# These are the usable properties and related methods from the object:
|
|
46
46
|
p4cpm.args.action # action requested from CPM
|
|
@@ -134,7 +134,7 @@ if __name__ == "__main__":
|
|
|
134
134
|
p4cpm.log_error(f"{type(e).__name__}: {e}")
|
|
135
135
|
p4cpm.close_fail()
|
|
136
136
|
```
|
|
137
|
-
(*)
|
|
137
|
+
(*) More realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
|
|
138
138
|
|
|
139
139
|
When doing `verify`, `change` or `reconcile` from Privilege Cloud/PVWA:
|
|
140
140
|
1. Verify -> the sciprt will be executed once with the `p4cpm.args.action` as `Python4CPM.ACTION_VERIFY`.
|
|
@@ -170,7 +170,7 @@ pip install python4cpm
|
|
|
170
170
|
### Example:
|
|
171
171
|
|
|
172
172
|
```python
|
|
173
|
-
from python4cpm import
|
|
173
|
+
from python4cpm import NETHelper, Python4CPM
|
|
174
174
|
from getpass import getpass
|
|
175
175
|
|
|
176
176
|
# Get secrets for your password, logon account password, reconcile account password and new password
|
|
@@ -180,7 +180,7 @@ logon_password = getpass("logon_password: ") # password from linked logon accoun
|
|
|
180
180
|
reconcile_password = getpass("reconcile_password: ") # password from linked reconcile account
|
|
181
181
|
new_password = getpass("new_password: ") # new password for the rotation
|
|
182
182
|
|
|
183
|
-
p4cpm =
|
|
183
|
+
p4cpm = NETHelper.run(
|
|
184
184
|
action=Python4CPM.ACTION_LOGON, # use actions from Python4CPM.ACTION_*
|
|
185
185
|
address="myapp.corp.local", # populate with the address from your account properties
|
|
186
186
|
username="jdoe", # populate with the username from your account properties
|
|
@@ -200,12 +200,12 @@ p4cpm.log_info("success!")
|
|
|
200
200
|
p4cpm.close_success()
|
|
201
201
|
|
|
202
202
|
# Remember for your final script:
|
|
203
|
-
## changing the definition of p4cpm from
|
|
203
|
+
## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
|
|
204
204
|
## remove any secrets prompting
|
|
205
|
-
## remove the
|
|
205
|
+
## remove the NETHelper import
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
Remember for your final script:
|
|
209
|
-
- Change the definition of `p4cpm` from `p4cpm =
|
|
209
|
+
- Change the definition of `p4cpm` from `p4cpm = NETHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
|
|
210
210
|
- Remove any secrets prompting or interactive interruptions.
|
|
211
|
-
- Remove the import of `
|
|
211
|
+
- Remove the import of `NETHelper`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python4cpm
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.18
|
|
4
4
|
Summary: Python for CPM
|
|
5
5
|
Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -45,9 +45,9 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
45
45
|
3. Install `python4cpm` in your venv:
|
|
46
46
|
- If your CPM can connect to the internet, install with `c:\venv\Scripts\pip install python4cpm`.
|
|
47
47
|
- If your CPM cannot connect to the internet:
|
|
48
|
-
- Download the `
|
|
49
|
-
- Copy the file to CPM and extract to a temporary
|
|
50
|
-
- From the
|
|
48
|
+
- Download the latest `*.whl` file from the [pypi project files](https://pypi.org/project/python4cpm/#files).
|
|
49
|
+
- Copy the file to CPM and extract to a temporary directory called `python4cpm-wheel`.
|
|
50
|
+
- From the parent directory of `python4cpm-wheel` run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
### Importing the platform
|
|
@@ -72,7 +72,7 @@ This platform allows you to duplicate it multiple times, simply changing its set
|
|
|
72
72
|
from python4cpm import Python4CPM
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by
|
|
75
|
+
p4cpm = Python4CPM("MyApp") # this instantiates the object and grabs all arguments and secrets shared by the .NET SDK
|
|
76
76
|
|
|
77
77
|
# These are the usable properties and related methods from the object:
|
|
78
78
|
p4cpm.args.action # action requested from CPM
|
|
@@ -166,7 +166,7 @@ if __name__ == "__main__":
|
|
|
166
166
|
p4cpm.log_error(f"{type(e).__name__}: {e}")
|
|
167
167
|
p4cpm.close_fail()
|
|
168
168
|
```
|
|
169
|
-
(*)
|
|
169
|
+
(*) More realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
|
|
170
170
|
|
|
171
171
|
When doing `verify`, `change` or `reconcile` from Privilege Cloud/PVWA:
|
|
172
172
|
1. Verify -> the sciprt will be executed once with the `p4cpm.args.action` as `Python4CPM.ACTION_VERIFY`.
|
|
@@ -202,7 +202,7 @@ pip install python4cpm
|
|
|
202
202
|
### Example:
|
|
203
203
|
|
|
204
204
|
```python
|
|
205
|
-
from python4cpm import
|
|
205
|
+
from python4cpm import NETHelper, Python4CPM
|
|
206
206
|
from getpass import getpass
|
|
207
207
|
|
|
208
208
|
# Get secrets for your password, logon account password, reconcile account password and new password
|
|
@@ -212,7 +212,7 @@ logon_password = getpass("logon_password: ") # password from linked logon accoun
|
|
|
212
212
|
reconcile_password = getpass("reconcile_password: ") # password from linked reconcile account
|
|
213
213
|
new_password = getpass("new_password: ") # new password for the rotation
|
|
214
214
|
|
|
215
|
-
p4cpm =
|
|
215
|
+
p4cpm = NETHelper.run(
|
|
216
216
|
action=Python4CPM.ACTION_LOGON, # use actions from Python4CPM.ACTION_*
|
|
217
217
|
address="myapp.corp.local", # populate with the address from your account properties
|
|
218
218
|
username="jdoe", # populate with the username from your account properties
|
|
@@ -232,12 +232,12 @@ p4cpm.log_info("success!")
|
|
|
232
232
|
p4cpm.close_success()
|
|
233
233
|
|
|
234
234
|
# Remember for your final script:
|
|
235
|
-
## changing the definition of p4cpm from
|
|
235
|
+
## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
|
|
236
236
|
## remove any secrets prompting
|
|
237
|
-
## remove the
|
|
237
|
+
## remove the NETHelper import
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
Remember for your final script:
|
|
241
|
-
- Change the definition of `p4cpm` from `p4cpm =
|
|
241
|
+
- Change the definition of `p4cpm` from `p4cpm = NETHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
|
|
242
242
|
- Remove any secrets prompting or interactive interruptions.
|
|
243
|
-
- Remove the import of `
|
|
243
|
+
- Remove the import of `NETHelper`.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|