isoc-ams 0.1.0__tar.gz → 0.1.1__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.

Potentially problematic release.


This version of isoc-ams might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: isoc-ams
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python 3 module to cope with ISOC-AMS.
5
5
  Author-email: Klaus Birkenbihl <klaus.birkenbihl@isoc.de>
6
6
  Maintainer: Klaus Birkenbihl
@@ -13,7 +13,7 @@ Project-URL: Home, https://github.com/birkenbihl/isoc-ams
13
13
 
14
14
  # isoc-ams
15
15
 
16
- A Python Interface to access the 'Advanced Members Administration System' (AMS) of the 'Internet Society' (ISOC). This is especially useful for ISOC Chapter Admins who want to synchronize their Chapter Database with AMS (semi)automatically.
16
+ A Python Interface to access the 'Advanced Members Administration System' (AMS) of the 'Internet Society' (ISOC). This is especially useful for ISOC Chapter Admins who want to synchronize their own Chapter Database with AMS (semi)automatically.
17
17
 
18
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
19
 
@@ -43,8 +43,17 @@ Don't forget: it takes time and you may see many kinds of errors. Often the cure
43
43
  Anyhow, after running it some time now it seems to work better than expected.
44
44
  So here we go:
45
45
 
46
- ## Installation
46
+ ## Preparing
47
+ ### Prerequisites
48
+ isoc-ams was tested under Linux (Ubuntu 22.04) and Windows 11.
47
49
 
50
+ Firefox or Chrome Webbrowser with Webdriver (usually included) required.
51
+
52
+ **Known issue: under Windows the Webdriver for Firefox may produce errors esp. when running headless. No problems encountered using the Chrome Webdriver (see below "Choosing a Webdriver). So on Windows - for now - the default Webdriver is Chrome**
53
+
54
+ A full installation of Python 3.9+ is required.
55
+
56
+ ### Installation
48
57
  Install (or update) isoc-ams with pip.
49
58
 
50
59
  ```bash
@@ -60,7 +69,7 @@ You may select a Webdriver of your choice (provided it is one of "firefox" or "c
60
69
  ```bash
61
70
  ISOC_AMS_WEBDRIVER=firefox
62
71
  ```
63
- Recommended (and default) is "firefox".
72
+ Recommended (and default) is "firefox". Because of Windows problems default on Windows for now is chrome.
64
73
  ### Start execution of the module
65
74
  So this happens if we call the module with:
66
75
  ```bash
@@ -286,6 +295,6 @@ Thank you,
286
295
 
287
296
  Your ISOC.DE MAS support team
288
297
 
289
- See file [isoc_ams.html](https://github.com/birkenbihl/isoc-ams/blob/main/isoc_ams.html) for doc on the API interface.
298
+ See file [isoc_ams.html](https://html-preview.github.io/?url=https://github.com/birkenbihl/isoc-ams/blob/main/isoc_ams.html) for doc on the API interface.
290
299
 
291
300
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  # isoc-ams
3
3
 
4
- A Python Interface to access the 'Advanced Members Administration System' (AMS) of the 'Internet Society' (ISOC). This is especially useful for ISOC Chapter Admins who want to synchronize their Chapter Database with AMS (semi)automatically.
4
+ A Python Interface to access the 'Advanced Members Administration System' (AMS) of the 'Internet Society' (ISOC). This is especially useful for ISOC Chapter Admins who want to synchronize their own Chapter Database with AMS (semi)automatically.
5
5
 
6
6
  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.
7
7
 
@@ -31,8 +31,17 @@ Don't forget: it takes time and you may see many kinds of errors. Often the cure
31
31
  Anyhow, after running it some time now it seems to work better than expected.
32
32
  So here we go:
33
33
 
34
- ## Installation
34
+ ## Preparing
35
+ ### Prerequisites
36
+ isoc-ams was tested under Linux (Ubuntu 22.04) and Windows 11.
35
37
 
38
+ Firefox or Chrome Webbrowser with Webdriver (usually included) required.
39
+
40
+ **Known issue: under Windows the Webdriver for Firefox may produce errors esp. when running headless. No problems encountered using the Chrome Webdriver (see below "Choosing a Webdriver). So on Windows - for now - the default Webdriver is Chrome**
41
+
42
+ A full installation of Python 3.9+ is required.
43
+
44
+ ### Installation
36
45
  Install (or update) isoc-ams with pip.
37
46
 
38
47
  ```bash
@@ -48,7 +57,7 @@ You may select a Webdriver of your choice (provided it is one of "firefox" or "c
48
57
  ```bash
49
58
  ISOC_AMS_WEBDRIVER=firefox
50
59
  ```
51
- Recommended (and default) is "firefox".
60
+ Recommended (and default) is "firefox". Because of Windows problems default on Windows for now is chrome.
52
61
  ### Start execution of the module
53
62
  So this happens if we call the module with:
54
63
  ```bash
@@ -274,5 +283,5 @@ Thank you,
274
283
 
275
284
  Your ISOC.DE MAS support team
276
285
 
277
- See file [isoc_ams.html](https://github.com/birkenbihl/isoc-ams/blob/main/isoc_ams.html) for doc on the API interface.
286
+ See file [isoc_ams.html](https://html-preview.github.io/?url=https://github.com/birkenbihl/isoc-ams/blob/main/isoc_ams.html) for doc on the API interface.
278
287
 
@@ -85,8 +85,10 @@ CHANGELOG
85
85
  Version 0.1.0
86
86
  Improved logging
87
87
  minor bug fixes
88
+ Version 0.1.1
89
+ minor bug fixes
88
90
  """
89
- __version__ = "0.1.0"
91
+ __version__ = "0.1.1"
90
92
 
91
93
  from selenium import webdriver
92
94
  from selenium.webdriver.common.by import By
@@ -232,9 +234,9 @@ ARGUMENTS
232
234
  _init_logging(logfile, debuglog)
233
235
  self._ams = _ISOC_AMS()
234
236
  if self._dryrun:
235
- strong_msg("START DRYRUN")
237
+ strong_msg("START DRYRUN:", "Webdriver is", _dr)
236
238
  else:
237
- strong_msg("START")
239
+ strong_msg("START:", "Webdriver is", _dr)
238
240
  self._ams.login((user, password))
239
241
  self._members_list = self._ams.build_members_list()
240
242
  self._pending_applications_list = self._ams.build_pending_applicants_list()
@@ -943,8 +945,8 @@ if __name__ == "__main__":
943
945
  password,
944
946
  headless=headless,
945
947
  dryrun=dryrun,
946
- logfile=None,
947
- debuglog=sys.stderr,
948
+ logfile=sys.stdout,
949
+ debuglog=NoneHh,
948
950
  )
949
951
  else:
950
952
  ams = ISOC_AMS(
File without changes
File without changes