semvec/pypi-packages huggingface dataset:
mwxml 0.3.6
A set of utilities for processing MediaWiki XML dump data.
License: MIT

# MediaWiki XML
        
        This library contains a collection of utilities for efficiently 
        processing MediaWiki’s XML database dumps. There are two 
        important concerns that this module intends to address: 
        complexity and performance of streaming XML parsing.  This library
        enables memory efficent stream processing of XML dumps with 
        a simple [`iterator`](https://pythonhosted.org/mwxml/iteration.html) 
        strategy.  This library also implements a distributed
        processing strategy (see 
        [`map()`](https://pythonhosted.org/mwxml/map.html)) that enables parallel
        processing of many XML dump files at the same time. 
        
        * **Installation:** ``pip install mwxml``
        * **Documentation:** https://pythonhosted.org/mwxml
        * **Repositiory:** https://github.com/mediawiki-utilities/python-mwxml
        * **License:** MIT
        
        ## Example
        
            >>> import mwxml
            >>>
            >>> dump = mwxml.Dump.from_file(open("dump.xml"))
            >>> print(dump.site_info.name, dump.site_info.dbname)
            Wikipedia enwiki
            >>>
            >>> for page in dump:
            ...     for revision in page:
            ...        print(revision.id)
            ...
            1
            2
            3
            
        ## Author
        * Aaron Halfaker -- https://github.com/halfak
        
        ## See also 
        * http://dumps.wikimedia.org/
        * http://community.wikia.com/wiki/Help:Database_download
autopwlf 0.9.2
Automated piecewise linear fitting
License: MIT
Requires Python: >=3.7

# Auto PWLF
Piecewise Linear Fit with ability to automatically find the optimal number of line segments.
In addition outliers can be detected and avoided during the fitting process.

Full Documentation can be found here: [Documentation](https://autopwlf.readthedocs.io/en/latest/#)


Installation available through pip: https://pypi.org/project/autopwlf/
```
pip install autopwlf
```

![image](https://github.com/user-attachments/assets/c4f8bc1c-5287-431e-a3ea-abb289ca7fcb)



The piecewise fitting uses the [pwlf module](https://github.com/cjekel/piecewise_linear_fit_py) with full credit to all contributors to this package.

## How it works
The currently available Piecewise Linear Fit models in Python do not have a method to determine the optimal number of break points to use. To do so this package performs the following steps:

1. Smooth the data using a rolling median function
2. Fit a linear interpolation function on the smoothened data
3. Use scipy find_peaks function to find the number of extrema points
4. Filter by primenence to return an estimate on the number of break points