<commit_before>{{http://rkuska.fedorapeople.org/pyp2rpm.png}}

![Build Status](http://rkuska.fedorapeople.org/pyp2rpm.png)
=======
pyp2rpm
=======
Tool to convert a package from PyPI to RPM SPECFILE.
Under heavy development, see TODO file for list of planned features.
pyp2rpm currently ships with Fedora and Mageia specific templates.

Usage:

The most simple use case is running::

    pyp2rpm -n package_name

This downloads the package from PyPI and outputs the RPM SPECFILE.

All of the options are (print this by running pyp2rpm -h::

    usage: pyp2rpm [-h] -n PYPI_NAME [-v VERSION] [-m METADATA_SOURCE]
                   [-s PACKAGE_SOURCE] [-d SAVE_DIR] [-t TEMPLATE]

    Convert PyPI package to RPM specfile.

    optional arguments:
    -h, --help          show this help message and exit
    -n PYPI_NAME        Name of the package on PyPI (ignored for local files).<commit_msg>Ok, no image for now.<commit_after>

=======
pyp2rpm
=======
Tool to convert a package from PyPI to RPM SPECFILE.
Under heavy development, see TODO file for list of planned features.
pyp2rpm currently ships with Fedora and Mageia specific templates.

Usage:

The most simple use case is running::

    pyp2rpm -n package_name

This downloads the package from PyPI and outputs the RPM SPECFILE.

All of the options are (print this by running pyp2rpm -h::

    usage: pyp2rpm [-h] -n PYPI_NAME [-v VERSION] [-m METADATA_SOURCE]
                   [-s PACKAGE_SOURCE] [-d SAVE_DIR] [-t TEMPLATE]

    Convert PyPI package to RPM specfile.

    optional arguments:
    -h, --help          show this help message and exit
    -n PYPI_NAME        Name of the package on PyPI (ignored for local files).
{'fraction_non_alphanumeric': 0.08590047393364929, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 3.099514563106796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2908596', 'n_tokens_mistral': 558, 'n_tokens_neox': 522, 'n_words': 221}