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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.16
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 `python4cpm-wheel.zip` asset from the latest [release](https://github.com/gonatienza/python4cpm/releases).
49
- - Copy the file to CPM and extract to a temporary location.
50
- - From the temporary location run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
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 TPC
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
- (*) a more realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
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 TPCHelper, Python4CPM
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 = TPCHelper.run(
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 TPCHelper.run() to Python4CPM("MyApp")
235
+ ## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
236
236
  ## remove any secrets prompting
237
- ## remove the TPCHelper import
237
+ ## remove the NETHelper import
238
238
  ```
239
239
 
240
240
  Remember for your final script:
241
- - Change the definition of `p4cpm` from `p4cpm = TPCHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
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 `TPCHelper`.
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 `python4cpm-wheel.zip` asset from the latest [release](https://github.com/gonatienza/python4cpm/releases).
17
- - Copy the file to CPM and extract to a temporary location.
18
- - From the temporary location run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
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 TPC
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
- (*) a more realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
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 TPCHelper, Python4CPM
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 = TPCHelper.run(
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 TPCHelper.run() to Python4CPM("MyApp")
203
+ ## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
204
204
  ## remove any secrets prompting
205
- ## remove the TPCHelper import
205
+ ## remove the NETHelper import
206
206
  ```
207
207
 
208
208
  Remember for your final script:
209
- - Change the definition of `p4cpm` from `p4cpm = TPCHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
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 `TPCHelper`.
211
+ - Remove the import of `NETHelper`.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python4cpm"
7
- version = "1.0.16"
7
+ version = "1.0.18"
8
8
  description = "Python for CPM"
9
9
  authors = [
10
10
  { name = "Gonzalo Atienza Rela", email = "gonatienza@gmail.com" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.16
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 `python4cpm-wheel.zip` asset from the latest [release](https://github.com/gonatienza/python4cpm/releases).
49
- - Copy the file to CPM and extract to a temporary location.
50
- - From the temporary location run `c:\venv\Scripts\pip install --no-index --find-links=.\python4cpm-wheel python4cpm`.
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 TPC
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
- (*) a more realistic examples can be found [here](https://github.com/gonatienza/python4cpm/blob/main/examples).
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 TPCHelper, Python4CPM
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 = TPCHelper.run(
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 TPCHelper.run() to Python4CPM("MyApp")
235
+ ## changing the definition of p4cpm from NETHelper.run() to Python4CPM("MyApp")
236
236
  ## remove any secrets prompting
237
- ## remove the TPCHelper import
237
+ ## remove the NETHelper import
238
238
  ```
239
239
 
240
240
  Remember for your final script:
241
- - Change the definition of `p4cpm` from `p4cpm = TPCHelper.run(**kwargs)` to `p4cpm = Python4CPM("MyApp")`.
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 `TPCHelper`.
243
+ - Remove the import of `NETHelper`.
File without changes
File without changes