isoc-ams 0.0.1__py2.py3-none-any.whl → 0.1.3__py2.py3-none-any.whl

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,186 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: isoc-ams
3
- Version: 0.0.1
4
- Summary: A Python 3 module to cope with ISOC-AMS.
5
- Author-email: Klaus Birkenbihl <klaus.birkenbihl@isoc.de>
6
- Maintainer: Klaus Birkenbihl
7
- Description-Content-Type: text/markdown
8
- Classifier: License :: OSI Approved :: MIT License
9
- License-File: LICENSE
10
- Requires-Dist: selenium>4
11
- Project-URL: Home, https://github.com/birkenbihl/isoc-ams
12
-
13
-
14
- # isoc-ams
15
-
16
- A Python Interface to access the 'Advanced Members Administration System' (AMS) of the 'Internet Society' (ISOC). This especially usefulfor ISOC Chapter Admins who want to synchronize their Chapter Database with AMS (semi)automatically.
17
-
18
- After 10 years+ of sorrow, millions minutes of waiting for answers from the AMS web interface, tons of useless clicks, many (in fact) rejected requests to provide an API access: the author decided to build an API himself. Even if it might not be more than a demonstrator for the functionality needed. Anyhow (see below): for now it is running on a weekly basis doing a great job in avoiding manual work.
19
-
20
- Unfortunately the constraints are severe:
21
- - access had to be through the web interface since this is the only interface provided. As a consequence it is slow, sometimes unreliable and hard to implement. At least there are working implementations of the "W3C webdriver" recommendtion. One of them is Selenium used for this project.
22
- - the existing web interface is far from being stable or guarateed. So changes to the web interface might spoil the whole project. There is great chance that few weeks from now a new "super dooper" AMS will be announced and as always after these announcements things will get worse.
23
- - tests are close to impossible. There is no such thing as a TEST AMS.
24
-
25
- Is there a possible good exit? Well, maybe some day soon - in 10 or 20 years if ISOC still exists - there will be an API provided by ISOC that makes this project obsolete. Or at least may be an all-mighty AI will step in. Let's dream on!
26
-
27
- ## Features
28
- ISOC maintains two main Lists that are relevant for the operation of this interface:
29
- - a list of ISOC members registered as members of the Chapter
30
- - a list of ISOC members that applied for a Chapter membership.
31
-
32
- Consequently isoc-ams provides methods for the following tasks:
33
- 1. read list of ISOC members registered as Chapter members
34
- 1. read list of ISOC members that applied for a Chapter membership
35
- 1. approve ISOC AMS applications
36
- 1. deny ISOC AMS applications
37
- 1. delete members from ISOC AMS Chapters Member list
38
- 1. add members to ISOC AMS Chapters Member list (Chapter admins are not authorized to do this. So the author suggest to write a mail to ams-support.)
39
-
40
- Don't forget: it takes time and you may see many kinds of errors. Often the cure is "try again later". Any expectation of flawless is not appropriate.
41
-
42
- So here we go:
43
-
44
- ## Installation
45
-
46
- Install isoc-ams with pip.
47
-
48
- ```bash
49
- python -m pip install -U isoc-ams
50
- ```
51
-
52
- Best would be to use a virtual environment (venv).
53
-
54
- ## Running isoc_ams
55
-
56
- You may select a webdriver of your choice (provided it is one of "firefox" or "chrome") by setting an environment variable ISOC_AMS_WEBDRIVER e.g.:
57
- ```bash
58
- ISOC_AMS_WEBDRIVER=firefox
59
- ```
60
- Recommended (and default) is "firefox".
61
-
62
- Since crazy things may happen it is important to keep track of what is going on. So ISOC_AMS lets you know what it is doing.
63
- by providing a logfile (goes to stdout by default).
64
-
65
- So this happens if we call the module with:
66
- ```bash
67
- python -m isoc_ams
68
- ```
69
-
70
- ```
71
- Username: xxx
72
- Password:
73
-
74
- AMS 2025-07-03 10:49:07 logging in
75
- AMS 2025-07-03 10:49:11 log in started
76
- AMS 2025-07-03 10:49:20 now on community portal
77
- AMS 2025-07-03 10:49:25 waiting for Chapter Leader portal
78
- AMS 2025-07-03 10:49:27 Chapter Leader portal OK
79
-
80
-
81
- AMS 2025-07-03 10:49:27 start build members list
82
- AMS 2025-07-03 10:49:27 Creating page for Members
83
- AMS 2025-07-03 10:49:33 Members page created
84
- AMS 2025-07-03 10:49:33 Loading Members
85
- AMS 2025-07-03 10:49:39 got list of Members
86
- AMS 2025-07-03 10:49:39 collecting the following fields: "ISOC-ID", "first name", "last name", "email"
87
- AMS 2025-07-03 10:49:39 Total (records expected): 38
88
- AMS 2025-07-03 10:49:39 Waiting for Total to stabilise
89
- AMS 2025-07-03 10:49:42 Total (records expected): 59
90
- AMS 2025-07-03 10:49:45 calling reader with 31 table rows, (collected records so far: 0 )
91
- AMS 2025-07-03 10:49:50 calling reader with 32 table rows, (collected records so far: 29 )
92
- AMS 2025-07-03 10:49:54 calling reader with 24 table rows, (collected records so far: 53 )
93
- AMS 2025-07-03 10:49:55 records collected / total 59 / 59
94
- AMS 2025-07-03 10:49:55 Creating page for Member Contacts
95
- AMS 2025-07-03 10:50:00 Member Contacts page created
96
- AMS 2025-07-03 10:50:00 Loading Member Contacts
97
- AMS 2025-07-03 10:50:04 got list of Member Contacts
98
- AMS 2025-07-03 10:50:04 collecting the following fields: "action link" (for taking actions), "email" (to connect with members list)
99
- AMS 2025-07-03 10:50:04 Total (records expected): 8
100
- AMS 2025-07-03 10:50:04 Waiting for Total to stabilise
101
- AMS 2025-07-03 10:50:07 Total (records expected): 59
102
- AMS 2025-07-03 10:50:10 calling reader with 30 table rows, (collected records so far: 0 )
103
- AMS 2025-07-03 10:50:14 calling reader with 31 table rows, (collected records so far: 28 )
104
- AMS 2025-07-03 10:50:18 calling reader with 25 table rows, (collected records so far: 51 )
105
- AMS 2025-07-03 10:50:18 records collected / total 59 / 59
106
- AMS 2025-07-03 10:50:18 members list finished
107
-
108
-
109
- AMS 2025-07-03 10:50:18 start build pending applications
110
- AMS 2025-07-03 10:50:18 Creating page for Pending Applications
111
- AMS 2025-07-03 10:50:22 collecting the following fields: "name", "email", "action link", "date"
112
- AMS 2025-07-03 10:50:24 Total (records expected): 8
113
- AMS 2025-07-03 10:50:24 Waiting for Total to stabilise
114
- AMS 2025-07-03 10:50:27 Total (records expected): 8
115
- AMS 2025-07-03 10:50:30 calling reader with 8 table rows, (collected records so far: 0 )
116
- AMS 2025-07-03 10:50:31 records collected / total 8 / 8
117
- AMS 2025-07-03 10:50:31 pending application list finished
118
-
119
-
120
- MEMBERS
121
- 1 ...
122
- 2 ...
123
- ...
124
-
125
- PENDING APPLICATIONS
126
- 1 ...
127
- 2 ...
128
- ...
129
- ```
130
-
131
- Normally isoc_ams wont show any browser output - running headless. To do debugging it might useful to follow the activities in the browser. If you call isoc_ams with a -h option the browser will open.
132
-
133
- ## Using the API
134
-
135
- isoc_ams unleashes its full power when used as API to make things happen without human intervention. Check the file "isoc_de_ams_main.py" as an example for fully automatic synchronizing of local membership administration with AMS.
136
-
137
- Here an excerpt of the output:
138
- ```
139
- Pending Applications:
140
-
141
- the following pending applications will be approved:
142
- ...
143
- the following pending applications will be denied:
144
- ...
145
- the following pending applications will be invited:
146
- ...
147
- the following pending applications will be waiting:
148
- ...
149
-
150
- Members:
151
- the following members will be deleted from AMS:
152
- ...
153
- for the following members a nagging mail will be sent to AMS-support (we are not authorized to fix it!):
154
- ...
155
- the following members are in sync
156
- ...
157
-
158
- AMS 2025-07-03 12:00:32 start delete ... from AMS Chapter members list
159
- ...
160
-
161
- Dear MAS-support team,
162
- this is an automatic, complimentary Message from the ISOC German Chapter
163
- Members Administration System (ISOC.DE MAS).
164
-
165
- The following individuals are legally registered paying members
166
- of ISOC.DE - many of them for more than 25 years.
167
- ...
168
- Uwe Mayer, xxx@yyy.com (ISOC-ID=1234567)
169
- ...
170
-
171
- Thank you,
172
- Your ISOC.DE MAS support team
173
- ...
174
-
175
- DEVIATIONS FROM EXPECTED RESULTS
176
- not deleted from members
177
- ...
178
- not approved from pending applicants list
179
- ...
180
- not removed from pending applicants list
181
- ...
182
- ```
183
- See file isoc_ams.doc for doc on the API interface.
184
-
185
- Have fun!
186
-
@@ -1,5 +0,0 @@
1
- isoc_ams.py,sha256=_856QxwvSovWra0iOyOafpYm6K_aVVg_D14X4drq62M,31231
2
- isoc_ams-0.0.1.dist-info/licenses/LICENSE,sha256=BJcMew_kvBWHjs-_Hd_OMHnxOLmeczeT88V4gFCT21U,1067
3
- isoc_ams-0.0.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
4
- isoc_ams-0.0.1.dist-info/METADATA,sha256=nfcgOmUP9GbfkcXdb4UIJtqoYy-dRFkdT-PFxLOG8eQ,7746
5
- isoc_ams-0.0.1.dist-info/RECORD,,