rsclib 0.65__py3-none-any.whl → 0.66__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.
@@ -0,0 +1,700 @@
1
+ Metadata-Version: 2.1
2
+ Name: rsclib
3
+ Version: 0.66
4
+ Summary: Misc. basic stuff needed by RSCs tools
5
+ Home-page: http://rsclib.sourceforge.net/
6
+ Download-URL: http://downloads.sourceforge.net/project/rsclib/rsclib/0.66/rsclib-0.66.tar.gz
7
+ Author: Ralf Schlatterbeck
8
+ Author-email: Ralf Schlatterbeck <rsc@runtux.com>
9
+ License: GNU Library or Lesser General Public License (LGPL)
10
+ Project-URL: Homepage, https://github.com/schlatterbeck/rsclib
11
+ Project-URL: Bug Tracker, https://github.com/schlatterbeck/rsclib/issues
12
+ Platform: Any
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Programming Language :: Python :: 2
19
+ Classifier: Programming Language :: Python :: 2.7
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.5
22
+ Classifier: Programming Language :: Python :: 3.6
23
+ Classifier: Programming Language :: Python :: 3.7
24
+ Classifier: Programming Language :: Python :: 3.8
25
+ Classifier: Programming Language :: Python :: 3.9
26
+ Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
+ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
29
+ Description-Content-Type: text/x-rst
30
+
31
+ rsclib: Utility Routines
32
+ ========================
33
+
34
+ :Author: Ralf Schlatterbeck <rsc@runtux.com>
35
+
36
+ The library includes various utility modules used in other projects.
37
+
38
+ - ast_call: A simple call manager using asterisk: This can be used to
39
+ originate a call and log all event associated to that call. So you
40
+ can find out the status of the call and optionally the dialstatus.
41
+ - ast_cdr: parser for CDR records in asterisk. We currently use
42
+ text-files only, this might be later extended for database use.
43
+ - ast_probe: Methods for checking for running asterisk
44
+ - Autosuper magic (originally from Guido van Rossums announcement of
45
+ Python 2.2): For refactoring it's a good idea that each class knows
46
+ its parents (that the parent is not hardcoded in the upcall),
47
+ achieved by adding a the __super attribute. Use as, e.g.,
48
+ self.__super.method for calling method in the parent.
49
+ - base_pickler: Allow to specify a dictionary of pickle exceptions, if
50
+ the value in the dictionary is in __dict__ when pickle is called, the
51
+ value in __dict__ is replaced with the value in the exception
52
+ dictionary.
53
+ - bero: A configurator for the `bero*fos`_ failover switch. See my
54
+ `blogpost`_ why I wrote that (short summary: to work around bugs in
55
+ the firmware of the device which are not addressed by the
56
+ configurator code that comes with the device).
57
+ - Config_File for python-syntax configuration files used in several of
58
+ my projects.
59
+ - crm: Tools for the cluster resource manager of the pacemaker high
60
+ availability project. We allow querying of nodes, resources and
61
+ errors for resources as well as resetting errors and migration of
62
+ resources.
63
+ - execute: module for executing commands and handling IO, this also
64
+ has a Lock and a Log mixin. Now there is also a framework for
65
+ executing processes in a pipeline, there can be fork-points in the
66
+ pipeline where the output of one process feeds several pipelines.
67
+ See test_exec.py, test2_exec.py and test3_exec.py.
68
+ - grepmime: search for pattern in email attachments (even if these are
69
+ encoded)
70
+ - inductance: Inductance calculation of air-cored cylindrical
71
+ flat-winded coil according to Robert Weaver
72
+ http://electronbunker.ca/CalcMethods3b.html
73
+ - IP_Address: IP v4 and v6 Addresses with subnet masking
74
+ - iter_recipes: magic with iterators
75
+ With some backwards-compatible implementations of Python's itertools
76
+ for earlier Python versions.
77
+ - isdn: model the status of Asterisk ISDN lines, either Linux Call
78
+ Router (LCR) ISDN lines or lines managed by DAHDI. Special case for
79
+ Xorcom modules which provide more information using Xorcom-specific
80
+ files in /proc than native DAHDI modules.
81
+ - lc_resonator: Frequency calculation for L-C resonator
82
+ - Math implements Euclids algorithm for greatest common divisor and as
83
+ a by-product the least common multiple
84
+ - nmap: A parser for output of nmap scans to (e.g. to generate tables
85
+ in TeX)
86
+ - ocf: small framework for writing OCF scripts for the heartbeat
87
+ cluster resource manager (probably also usable for the newer version
88
+ called pacemaker but for now only tested with the version in Debian
89
+ stable aka lenny).
90
+ - PDF_Signature: experimental code for checking signatures on adobe PDF
91
+ documents
92
+ - Phone: Parse phone numbers (Austria-specific)
93
+ - PM_Value: Possibly missing value, encapsulate a number which may be
94
+ missing and associated arithmetics.
95
+ - pycompat: Utilities for running under different python versions
96
+ - Rational: Implementation of Rational numbers
97
+ - stateparser: Simple state-machine parser class, this is used for
98
+ writing line-based parsers using a state machine. For an example
99
+ usage see nmap. After parsing the result can be pickled but we lose
100
+ the ability to continue parsing after reading from the pickled
101
+ result.
102
+ - sqlparser: Parse SQL dumps from postgreSQL and mysql and optionally
103
+ create an new (e.g. anonymized) sql dump
104
+ - timeout: A simple timeout mechanism using SIGALRM
105
+ - Tex_CSV_Writer: Write CVS files in a syntax that can be parsed by
106
+ TeX. Implements same interface as the csv module. Only implements
107
+ writing.
108
+ - trafficshape: Simple traffic shaping configuration: Currently
109
+ generates Linux tc commands for a traffic shaping config using hfsc
110
+ for shaping and sfq or red for the leaf qdiscs. We also provide a
111
+ translator from iptables mangle rules (for traffic marking) to tc
112
+ commands for filtering. This is needed if we want to do inbound
113
+ shaping. The Linux kernel doesn't support inbound shaping, so we need
114
+ to redirect all traffic to an ifb device. On that device we do
115
+ *outbound* shaping. Unfortunately when sending traffic to an ifb
116
+ device with a tc filter + action mirred command this occurs *before*
117
+ the PREROUTING chain. This means packets are not yet marked. So we
118
+ provide a parser to translate mangle rules in the PREROUTING chain to
119
+ appropriate tc commands. For implementing this we mark packets (using
120
+ the tc action xt (formerly known as ipt used for iptables marking, a
121
+ backward-compatibility option can be used) in the original device and
122
+ then use the marked information in the ifb device to send the traffic
123
+ to appropriate qdiscs. This supports a two-level approach: Rules in
124
+ iptables that match on a packet mark (using --mark) are translated to
125
+ tc commands in the ifb device (they depend on the mark already
126
+ present). All other rules are translated to a tc action xt (using -j
127
+ MARK) and a tc action mirred redirect (for sending the traffic to the
128
+ ifb device) for the *original* device (e.g. eth0 redirecting to
129
+ ifb0). The PREROUTING commands by default are directly taken from the
130
+ running kernel by default (using "iptables -t mangle -S -v")
131
+
132
+ .. _`bero*fos`: https://shop.beronet.com/product_info.php/cPath/56/products_id/159
133
+ .. _`blogpost`: http://blog.runtux.com/2009/04/09/81/
134
+
135
+ Resources
136
+ ---------
137
+
138
+ Download the source at https://sourceforge.net/projects/rsclib/
139
+ and install using the standard python setup, e.g.::
140
+
141
+ python setup.py install --prefix=/usr/local
142
+
143
+ Alternatively get it from pypi and/or install via pip.
144
+
145
+
146
+ Changes
147
+ -------
148
+
149
+ Version 0.66: Hexdump parsing, iter_recipes.batched
150
+
151
+ - Add iter_recipes.batched which appears in Python 3.12
152
+ - Hexdump parsing is more tolerant now
153
+ - Some overlooked Python3 changes
154
+
155
+ Version 0.65: Use pyproject.toml
156
+
157
+ - Use new-style packaging with pyproject.toml, old-style setup.py is
158
+ still available
159
+ - Use console script entry points instead of explicit scripts in
160
+ directory bin
161
+
162
+ Version 0.64: Small execute.Log updates
163
+
164
+ - Add add_stderr_handler method to also log to stderr
165
+
166
+ Version 0.63: Python3 fixes
167
+
168
+ - Fix bytes_ord to also deal with a bytes object in python3
169
+
170
+ Version 0.62: Python3 fixes
171
+
172
+ - More Python3 fixes
173
+ - Update of stateparser
174
+ - hexdump/unhexdump
175
+
176
+ Version 0.61: sqlparser
177
+
178
+ - Allow filtering during reading of sql dump
179
+
180
+ Version 0.60: Python3 fixes
181
+
182
+ - hexdump
183
+ - xrange
184
+ - compatibility for bytes iterator
185
+
186
+ Version 0.59: sqlparser
187
+
188
+ - Support older postgresql versions, tested 9.6
189
+
190
+ Version 0.58: sqlparser
191
+
192
+ - Fix python3 string handling for sqlparser
193
+ - Small fix in stateparser
194
+
195
+ Version 0.57: isdn
196
+
197
+ - Add parsing of beronet GSM modules
198
+ - Support multiple bero devices with same numbering
199
+
200
+ Version 0.56: ast_call, isdn
201
+
202
+ - The ast_call now is brought to latest version of pyst and asterisk
203
+ - isdn module now supports remote isdn via isdn gateway
204
+ - various python3 fixes
205
+
206
+ Version 0.55: LOCKDIR
207
+
208
+ - Now it's possible to set the locking directory (default is still
209
+ /var/lock which is a symlink to /run/lock on modern systems) via
210
+ the environment variable LOCKDIR.
211
+
212
+ Version 0.54: inductance, sqlparser
213
+
214
+ - The sqlparser now can do round-tripping (some items are in
215
+ different order)
216
+ - More inductance formulae
217
+
218
+ Version 0.53: inductance, IPv4 address
219
+
220
+ - Bring inductance to metric units (output in F, input in m)
221
+ - Fix IPv4 address parsing when address contains less than 3 dots
222
+
223
+ Version 0.52: Small fixes
224
+
225
+ - Fix unicode problem in sqlparser
226
+
227
+ Version 0.51: Small fixes
228
+
229
+ - Fix IP addresses in boolean context
230
+ - Add supported python versions to setup.py
231
+
232
+ Version 0.50: Small additions
233
+
234
+ - Change Rational to no longer print mixed fractions by default
235
+ - Allow setting the locking filename for Lock_Mixin in execute
236
+
237
+ Version 0.49: Python3 compatibility
238
+
239
+ - Remove ETree, HTML_Parse, PDF_Parse, multipart_form: These are
240
+ better handled by libraries like BeautifulSoup or specific PDF
241
+ handling libs or the requests library
242
+ - Remove ldap_lib.py: This is now nicely supported by ldap3 which
243
+ also has a native iterator for paged search
244
+ - Remove Freshmeat.py: Freshmeat is more or less dead now and they
245
+ don't support an API-Test so it is very hard to get this right
246
+ - Put Firstname (with all the history) into its own package, note
247
+ that this needs more work to run against the latest version of the
248
+ website
249
+ - Lots of fixes for python3 compatibility: Where doctests existed
250
+ these pass now but there is still untested code and some code where
251
+ libaries are missing for python3 (pyst asterisk bindings and
252
+ openssl wrappers)
253
+
254
+ Version 0.48: Fixes for execute
255
+
256
+ - Now we really close all relevant ends of pipes in other processes
257
+ which avoids hangs
258
+ - Add logging to Process
259
+
260
+ Version 0.47: Fixes for IP_Address; pypi
261
+
262
+ - IP_Address: Relax inheritance checks when comparing IP_Address
263
+ instances
264
+ - Version uploaded to pypi and documented in README
265
+
266
+ Version 0.46: Additions to ast_probe; Bug-fix
267
+
268
+ - ast_probe now has methods for checking sip registry and reloading
269
+ the sip subsystem in asterisk
270
+ - Add a small script, ast_sip_check for checking sip registration on
271
+ an asterisk server and restart sip if some registrations are
272
+ missing.
273
+ - Config_File fixes the __getattr_ method to return an
274
+ AttributeError in case of failure
275
+
276
+ Version 0.45: Fix ISDN ports
277
+
278
+ String reprentation had leading unicode 'u'
279
+
280
+ - Fix string representation in ISDN ports
281
+
282
+ Version 0.44: Make line-waiting for bero configurable
283
+
284
+ For cluster resource berofos we make waiting for the L1 and L2 of the
285
+ ISDN line configurable. The hard-coded default was too low.
286
+
287
+ - New config-item ISDN_WAIT_UP
288
+
289
+ Version 0.43: Support new berofos firmware
290
+
291
+ The new berofos (failover switch) firmware has some new low-level
292
+ commands which we now accept when getting the device status.
293
+
294
+ - Fix bero.py to accept new low-level commands
295
+ - Add some more documentation to bero.py
296
+ - Add description of ast_probe in this README
297
+
298
+ Version 0.42: Feature enhancements
299
+
300
+ Add crm for pacemaker cluster management, new ast_probe for checking of
301
+ asterisk status. Fixes to ocf and ast_call.
302
+
303
+ - Add crm.py
304
+ - Add ast_probe.py
305
+ - Allow specification of parsed config (cfg) for Call_Manager in
306
+ ast_call.py
307
+ - Better resource monitoring for asterisk and dahdi in ocf.py
308
+ - fix ocf.py to use new classes in isdn.py
309
+ - isdn.py now doesn't probe asterisk for the isdn stack in use if it
310
+ finds a hint in the config-file
311
+
312
+ Version 0.41: Minor feature enhancements
313
+
314
+ Fixes to Freshmeat, pycompat, sql-dump parser.
315
+
316
+ - Fix parsing of escaped quotes in mysql dumps
317
+ - Freshmeat
318
+ - pycompat fixes
319
+
320
+ Version 0.40: Distribution bug-fix
321
+
322
+ Renaming of README lead to the missing file README.rst in the distro.
323
+
324
+ - Fix MANIFEST.in
325
+
326
+ Version 0.39: Minor feature enhancements
327
+
328
+ Fixes to hexdump, unicode issues (elementtree wrapper, stateparser).
329
+ Add some fixes to IP_Address comparison. The nmap output has changed in
330
+ recent versions, adapt to new format.
331
+
332
+ - Make address in hexdump configurable
333
+ - Bug-fix with comparison of sub-classes in IP_Address
334
+ - Unicode support in ETree
335
+ - Unicode support in stateparser
336
+ - Fix for trailing empty attributes in CSV output of PostgreSQL dumps
337
+ in sqlparser
338
+ - Unicode support in sqlparser (uses stateparser)
339
+ - Parse new nmap format
340
+ - Fix for configurable Releasetools location
341
+
342
+ Version 0.38: Minor feature enhancements
343
+
344
+ Fix boolean conversion of IP6_Address (and IP4_Address).
345
+
346
+ - IP6_Address would throw an error when trying a truth-test. Add
347
+ __nonzero__ (which always returns True even for the 0 Address)
348
+
349
+ Version 0.37: Minor feature enhancements
350
+
351
+ Change sort-order of IP_Address, make IP_Address immutable, use
352
+ metaclass magic to allow copy-constructor semantics.
353
+
354
+ - Sort order of IP_Address objects (both v4 and v6) now reverses the
355
+ order of the netmask: If the IP-Address part of the objects to
356
+ compare are the same, we used to sort by *inverse* netmask (putting
357
+ smaller networks with higher netmask first). We now reversed this to
358
+ be compatible with PostgrSQL cidr type objects.
359
+ - All attributes of IP_Address objects are now implemented as
360
+ properties to return the '_' variant of the attribute. Thus
361
+ IP_Address objects are (when using the public interface) immutable.
362
+ Since we already had a __hash__ method this effectively fixes the
363
+ interface to not allow mutation of objects that are in a dictionary.
364
+ - Allow calling the IP_Address constructors with another IP_Address
365
+ object. Since IP_Address objects are now immutable we use metaclass
366
+ trickery to return the passed object itself (instead of generating a
367
+ copy).
368
+
369
+ Version 0.36: Minor feature enhancements
370
+
371
+ Allow auto-coercion of comparison parameters. Add parent property and
372
+ is_sibling test.
373
+
374
+ - Now comparison operators and 'in' do auto coercion.
375
+ - Add parent property (next bigger network)
376
+ - Add is_sibling test (same parent)
377
+
378
+ Version 0.35: Minor feature enhancements
379
+
380
+ Add 'mask_len' as an alias of 'mask' to IP_Address.
381
+
382
+ - Need the network mask length (aka prefix length) sometimes as
383
+ mask_len (e.g. for FFM on github).
384
+
385
+ Version 0.34: Minor feature enhancements
386
+
387
+ Fix trafficshape to use new tc syntax. Add label to hexdump.
388
+
389
+ - The tc command has renamed the ``ipt`` action to ``xt`` (Linux
390
+ introduced xtables as a refactoring of iptables), the old ``ipt`` is
391
+ still available in ``iproute2`` but we make ``xt`` the default now.
392
+ A backward-compatibility parameter can be used to get the old
393
+ behavior.
394
+ - Add save-mark to iptables action parser.
395
+ - The hexdump class now can generate labels.
396
+
397
+ Version 0.33: Minor feature enhancements
398
+
399
+ More fixes for ast_call.
400
+
401
+ - Add parser for events from asterisk wireshark trace
402
+ - Add fail.log for 'real' test
403
+ - Don't double-register call with Call_Manager
404
+ - Allow explicit matching by account-code
405
+
406
+ Version 0.32: Minor feature enhancements
407
+
408
+ More fixes for ast_call.
409
+
410
+ - Regression test with pyst asterisk emulator
411
+ - Fix case where OriginateResponse immediately returns Failure
412
+ - Tests for cases where Hangup comes before or after the
413
+ OriginateResponse
414
+
415
+ Version 0.31: Minor feature enhancements
416
+
417
+ Fix ast_call for immediately failing calls. Fix dahdi channel
418
+ computation in isdn.py.
419
+
420
+ - Fix OriginateResponse handling in ast_call
421
+ - Fix dahdi channel computation, can't directly use the span, use the
422
+ basechan attribute
423
+
424
+ Version 0.30: Minor feature enhancements
425
+
426
+ Fix how dahdi vs. mISDN interpret what is called an interface and what
427
+ is called a port. In mISDN we can combine several ports (physical lines)
428
+ to an interface. In dahdi both are the same (a port is a span in dahdi).
429
+
430
+ - Remove parsing of B- and C- channels from dahdi isdn parser
431
+
432
+ Version 0.29: Minor feature enhancements
433
+
434
+ The lcr module is now named isdn. It can now handle isdn interfaces
435
+ managed by Asterisk DAHDI in addition to Linux Call Router (LCR).
436
+
437
+ Version 0.28: Minor feature enhancements
438
+
439
+ Fix inductance formula of Robert Weaver, thanks Robert for pointing me
440
+ to the correction you did on your new site! For most doctests in the
441
+ inductance module the error was in the lower percentage points.
442
+ Add an xxrange iterator to the iter_recipes that can replace pythons
443
+ native xrange iterator but works with long integers. Needed for some
444
+ operations on IPv6 addresses in the IP_Address module.
445
+
446
+ - Fix inductance calculation according to patch from Robert Weaver
447
+ - Add xxrange iterator to iter_recipes
448
+ - Use new xxrange instead of xrange in IP_Address module, add a test
449
+ that failed with large numbers for IPv6
450
+
451
+ Version 0.27: Minor feature enhancements
452
+
453
+ Add pageurl and pageinfo attributes to HTML_Parser.Page_Tree, other
454
+ enhancements to HTML_Parser. Add pickle support to parser classes.
455
+ Fix comparison of IP_Address classes.
456
+
457
+ - Add pageurl and pageinfo attributes to HTML_Parser.Page_Tree storing
458
+ information retrieved via geturl and info calls from urllib2.
459
+ - Parser classes in stateparser.py and HTML_Parse.py where not
460
+ pickleable, fixed by removing parser-specific attributes when calling
461
+ pickle. Note that the parsing cannot be continued after reading class
462
+ from a pickle.
463
+ - Add base_pickler module to allow pickle exceptions
464
+ - HTML_Parse: Make Parse_Error a ValueError
465
+ - HTML_Parse: Raise line number with exception
466
+ - HTML_Parse: Add a timeout
467
+ - HTML_Parse: raise Retries_Exceeded with url
468
+ - HTML_Parse: url parameter may now be None, not joined with site
469
+ parameter
470
+ - Add pageurl and pageinfo to HTML_Parse
471
+ - IP_Address: Fix comparison
472
+ - Slight refactoring of NMAP_Parser class
473
+
474
+ Version 0.26: Minor feature enhancements
475
+
476
+ Fix double-utf-8-encoding option for sqlparser. Enhance stderr handling
477
+ for exec_pipe.
478
+
479
+ - More detected broken encodings for fix_double_encode option
480
+ - execute.py: add error message from executed command to message raised
481
+ by exec_pipe, make stderr output available in non-failing case.
482
+
483
+ Version 0.25: Minor feature enhancements
484
+
485
+ Add sqlparser for parsing SQL dumps of PostgreSQL and mysql, add Phone
486
+ to parse phone numbers.
487
+
488
+ - sqlparser added
489
+ - Phone added for parsing phone numbers
490
+
491
+ Version 0.24: Minor feature enhancements
492
+
493
+ Better syntax checks and comparison operators for IP_Address, bug fixes
494
+ for parser and __str__ for IP_Address.IP6_Address
495
+
496
+ - IP_Address better syntax checks
497
+ - IP_Address __cmp__ and __eq__ improved for comparison with other types
498
+ - more regression tests for IP6_Address
499
+ - bug fixes in __str__ and parser of IP6_Address
500
+ - support for strict checking of netmask (all bits at right of netmask
501
+ must be zero if strict_mask is True)
502
+
503
+ Version 0.23: Minor feature enhancements
504
+
505
+ IP4_Address can now be put in a dict, add a subnets iterator for
506
+ IP4_Address. Factor IP_Address and add IP6_Address
507
+
508
+ - Add __hash__ for IP_Address
509
+ - The new subnets iterator for IP_Address iterates over all IPs in a
510
+ subnet. Optionally a netmask can be specified.
511
+ - Support for IPv6 addresses
512
+ - rename IP4_Address to IP_Address
513
+
514
+ Version 0.22: Minor feature enhancements
515
+
516
+ Allow unicode ip address input, hopefully make rsclib installable via pip.
517
+
518
+ - Address given to IP4_Address constructor now may be unicode
519
+ - Add download_url to setup.py to make installable via pip
520
+
521
+ Version 0.21: Minor feature enhancements
522
+
523
+ Fix autosuper: allow to inherit from non-autosuper classes, some small
524
+ fixes to ast_call and lcr parser. Fix ETree pretty-printing. Update
525
+ Freshmeat to new hostname. Add dotted netmaks parsing to IP4_Address.
526
+
527
+ - Since python2.6 constructor of "object" do not allow parameters, so
528
+ we need to strip these when doing the upcall from autosuper. This
529
+ fails when e.g. inheriting from a non-autosuper enabled class, e.g.,
530
+ class (With_Autosuper, dict)
531
+ in that case dict would get empty parameters. New implementation
532
+ finds out if our upcall is to "object", only in that case strip
533
+ parameters.
534
+ - ast_call now processes all queued unhandled events when a call is
535
+ matched.
536
+ - update regression test for ast_call.Call
537
+ - lcr parser: fix regex, port can have an empty name.
538
+ - Optimize call matching in ast_call: mark call as closed once we are
539
+ sure about the uniqueid. Add matching of Account-Code.
540
+ - Fix ETree pretty-printing: don't print unicode strings when arguments
541
+ are already converted
542
+ - freshmeat.net now is freecode.com (and the API redirects there),
543
+ update Freshmeat.py to new hostname (including .netrc credentials
544
+ with compatibility for old name).
545
+ - explicit mask paramter of IP4_Address can now be a dotted netmask.
546
+
547
+ Version 0.20: Not announced on freshmeat
548
+
549
+ Database value output for ast_cdr, added inductance calculation.
550
+
551
+ - ast_cdr: Add methods for database values of CDR records -- database
552
+ values of CDRs are different, they don't include start, end, answer
553
+ time-stamps but instead only a calldate, in addition the amaflags are
554
+ numerical in the database.
555
+ - added inductance calculation
556
+
557
+ Version 0.19: Not announced on freshmeat
558
+
559
+ Extend ETree with a walk method and implement small ldap library
560
+
561
+ - ETree: add walk method to walk the tree and call an optional pre- and
562
+ post-hook function
563
+ - ldap_lib: common ldap tasks for user and group search, and an
564
+ iterator for paged search (used with active directory).
565
+
566
+ Version 0.18: Not announced on freshmeat
567
+
568
+ Bugfix of ast_call and update for asterisk 1.6, small extension to
569
+ IP4_Address.
570
+
571
+ - ast_call: match calls via (unique) account code
572
+ - ast_call: State vs ChannelState parameter in Newstate event
573
+ - ast_call: handle immediate error from asterisk (e.g. Permission Denied)
574
+ - IP4_Address: add netblk (start and end address for address with
575
+ netmask)
576
+
577
+ Version 0.17: Not announced on freshmeat
578
+
579
+ Factor ETree (extended ElementTree) from HTML_Parse. New Freshmeat
580
+ module to get project information and submit new releases via the new
581
+ freshmeat REST API. New simple hexdump module.
582
+
583
+ - New ETree.py (extended ElementTree)
584
+ - New Freshmeat.py
585
+ - New hexdump.py
586
+ - adapt lcr module to new version of Linux Call Router
587
+
588
+ Version 0.16: Not announced on freshmeat
589
+
590
+ Add an iptables to tc translator for translating mangle rules in the
591
+ iptables PREROUTING chain to appropriate tc commands (using an ipt
592
+ action and mirred redirect actions).
593
+
594
+ - Add iptables to tc translator to trafficshape.py
595
+
596
+ Version 0.15: Not announced on freshmeat
597
+
598
+ Add a framework for traffic shaping with linux iproute (tc). Minor
599
+ updates to iter_recipes.
600
+
601
+ - Initial implementation of trafficshape.py
602
+ - Add iter_recipes.combinations from python2.6 manpage of itertools
603
+ for backward compatibility
604
+
605
+ Version 0.14: Not announced on freshmeat
606
+
607
+ Add a framework for process pipeline execution, processes can either be
608
+ python methods or external programs (with parameter list). They can be
609
+ connected in a pipe and there may be T-points in the pipe, where the
610
+ pipe forks into two or more pipelines fed by the output of one process.
611
+
612
+ - Add process pipeline framework
613
+ - HTML_Parse now has an explicit translate hook for preprocessing the
614
+ html page before parsing it. This defaults to the old behaviour of
615
+ filtering out common characters in broken HTML.
616
+ - Add nmap parser (e.g. to generate TeX tables from an nmap scan)
617
+ - Fix Lock_Mixin in execute module to remove lockfile at exit,
618
+ this used to rely on __del__ which breaks in certain cases.
619
+ - add file upload to HTML_Parse
620
+
621
+ Version 0.13: Not announced on freshmeat
622
+
623
+ Bug-Fix Release: Fix signal handler in timeout.py
624
+
625
+ - fix signal handler timeout.py
626
+
627
+ Version 0.12: Not announced on freshmeat
628
+
629
+ Add a simple timeout mechanism using SIGALRM.
630
+
631
+ - add timeout.py
632
+
633
+ Version 0.11: Not announced on freshmeat
634
+
635
+ Add a parser for CDR records in asterisk. We currently use text-files
636
+ only, this might be later extended for database use. Some fixes for
637
+ ast_call, make call-handling more robust (some race conditions would
638
+ identify events of other calls as belonging to our initiated call).
639
+ Add an execute module for executing commands and handling IO, this also
640
+ has a Lock and a Log mixin. Add ocf.py, a small framework for writing
641
+ OCF scripts for the heartbeat cluster resource manager (probably also
642
+ usable for the newer version called pacemaker but for now only tested
643
+ with the version in Debian stable aka lenny). Add lcr.py to model the
644
+ status of Linux Call Router ISDN lines.
645
+
646
+ - add ast_cdr.py
647
+ - fix ast_call.py
648
+ - fix up-chaining in stateparser.py
649
+ - add execute.py
650
+ - add ocf.py
651
+ - add lcr.py
652
+
653
+ Version 0.10: Not announced on freshmeat
654
+
655
+ add ast_call for asterisk auto-dialling, small fixes to IP4_Address, add
656
+ bero*fos configurator, experimental code for checking PDF signature
657
+
658
+ - add ast_call.py
659
+ - Firstname: don't look up names with len < 2
660
+ - IP4_Address: some aliases for common functions
661
+ - IP4_Address: add __cmp__
662
+ - bero.py: bero*fos configurator
663
+ - HTML_Parse updated for python 2.5
664
+ - stateparser update: use self.matrix by default
665
+ - PDF_Signature: experimental code for checking signatures on adobe PDF
666
+ documents
667
+ - iter_recipes: some magic with iterators
668
+
669
+ Version 0.9: Not announced on freshmeat
670
+
671
+ Add binom to the Math package, add Firstname, Bug-Fix Release Rational
672
+
673
+ - binom (n, m) computes the binomial coefficient of n, m.
674
+ - Firstname: check if candidate is a first name candidate according to
675
+ popular web site.
676
+ - Rational: On division we could get a negative denominator -- fixed
677
+ - make Config_File a descendent of autosuper
678
+
679
+ Version 0.8: Not announced on freshmeat
680
+
681
+ Added more documentation.
682
+ State-machine parser stateparser implemented. Rational number arithmetic
683
+ package added.
684
+
685
+ - stateparser implemented (simple state-machine line-oriented
686
+ configurable parser)
687
+ - usage-example of IP4_Address prints debian /etc/network/interfaces
688
+ entry.
689
+ - Math added (Euclids algorithm, gcd, lcm)
690
+ - Rational number arithmetics
691
+ - cookie processing for HTML_Parse
692
+ - basic HTML auth for HTML_Parse
693
+ - HTML_Parse: move to urllib2
694
+
695
+ Version 0.7: Not announced on freshmeat
696
+
697
+ Small Python library with various things such as Configuration file
698
+ parsing (in Python syntax), HTML and PDF parsing.
699
+
700
+ - First Release version