rsclib is a small Python library designed with configuration file parsing, HTML and PDF parsing.
The library includes various utility modules used in other projects:
· ast_call: A simple call manager using asterisk: This can be used to originate a call and log all event associated to that call. So you can find out the status of the call and optionally the dialstatus.
· ast_cdr: parser for CDR records in asterisk.
· Autosuper magic: For refactoring it's a good idea that each class knows its parents (that the parent is not hardcoded in the upcall), achieved by adding a the __super attribute. Use as, e.g., self.__super.method for calling method in the parent.
· bero: A configurator for the bero*fos failover switch.
· Config_File for Python-syntax configuration files.
· execute: module for executing commands and handling IO, this also has a Lock and a Log mixin. Now there is also a framework for executing processes in a pipeline, there can be fork-points in the pipeline where the output of one process feeds several pipelines.
· Firstname: given a string-candidate of a first name, check with popular web-site if it is really considered a first name.
· grepmime: search for pattern in email attachments (even if these are encoded)
· HTML_Parse for opening and parsing URLs
· IP4_Address: IP v4 Addresses with subnet masking
· iter_recipes: magic with iterators
· lcr: model the status of Linux Call Router ISDN lines.
· Math implements Euclids algorithm for greatest common divisor and as a by-product the least common multiple
· nmap: A parser for output of nmap scans to (e.g. to generate tables in TeX)
· ocf: small framework for writing OCF scripts for the heartbeat cluster resource manager.
· PDF_Parse for opening and parsing PDFs, needs pdftotext installed
· PDF_Signature: experimental code for checking signatures on adobe PDF documents
· PM_Value: Possibly missing value, encapsulate a number which may be missing and associated arithmetics.
· Rational: Implementation of Rational numbers
· stateparser: Simple state-machine parser class
· timeout: A simple timeout mechanism using SIGALRM
· Tex_CSV_Writer: Write CVS files in a syntax that can be parsed by TeX. Implements same interface as the csv module. Only implements writing.
· trafficshape: Simple traffic shaping configuration.
What's New in This Release:
· Sort order of IP_Address objects (both v4 and v6) now reverses the order of the netmask: If the IP-Address part of the objects to compare are the same, we used to sort by *inverse* netmask (putting smaller networks with higher netmask first). We now reversed this to be compatible with PostgrSQL cidr type objects.
· All attributes of IP_Address objects are now implemented as properties to return the '_' variant of the attribute. Thus IP_Address objects are (when using the public interface) immutable. Since we already had a __hash__ method this effectively fixes the interface to not allow mutation of objects that are in a dictionary.
· Allow calling the IP_Address constructors with another IP_Address object. Since IP_Address objects are now immutable we use metaclass trickery to return the passed object itself (instead of generating a copy).