semvec/pypi-packages huggingface dataset:
wisepy2 1.4.1
simple CLI framework
License: MIT
Keywords: CLI solution

.. image:: https://img.shields.io/pypi/v/wisepy2.svg
    :target: https://pypi.python.org/pypi/wisepy2

Wisepy2
==================

Since we found that the capabilities/features doesn't attract people into using `wisepy <https://github.com/Xython/wisepy>`_, thus
we go to an extreme, making the simplest command line tool for Python, but also capable of covering the regular use cases.

Two examples are given in the root directory of this project.

.. code-block :: Python

    from wisepy2 import *


    def add(left: int, right: int):
        """
        add up two numbers.
        """
        print(left + right)
        return 0

    if __name__ == '__main__':
        wise(add)()

.. image:: https://raw.githubusercontent.com/Xython/wisepy2/master/example-add2.png
    :width: 90%
    :align: center


.. code-block :: Python

    @wise
    class Cmd:
        class Int:
            @staticmethod
            def add(a: int, b: int):
                print(a + b)

        class Str:
            @staticmethod
            def concat(a: str, b: str):
                print(a + b)

        @staticmethod
        def repeat(a: str, b: int):
            print(a * b)

    if __name__ == '__main__':
        wise(add)()

    shell> python xxx.py Int add 1 2 # 3
    shell> python xxx.py Str concat 1 2 # 12
    shell> python xxx.py repeat 1 2 # 11


Usage
=========================

Wisepy2 converts a function into a command, where following components of python functions correspond to
the command components. Here're the mapping rules:

- ``variadic args``: a positional argument that accepts variable number of arguments, like ``nargs="*"`` in ``argparse``.

- ``annotations``: an annotation will be transformed to the help doc of an argument. If it's a type, the argument is automatically converted to the type you expect.

- ``default argument``: default value will be equivalent to specifying ``default`` in ``argparse``.

- ``keyword argument``: keyword only or postional_or_keyword arguments with default values can be passed by ``--arg value``.

- arguments that're annotated ``bool`` and have ``True`` or ``False`` default arguments: these arguments can changed as the opposite of its default value by giving ``--arg``.
freeproxydownloader 0.11
Gets proxies from public lists and checks them (ping, hidden IP, http connection)
License: MIT
Keywords: proxy,proxies,windows,bot


### DON'T USE THESE PROXIES FOR SENSITIVE DATA!
#### Tested on Windows 10 / Python 3.9
<img src="https://github.com/hansalemaos/screenshots/raw/main/PROXY.png"/>



```python
 from freeproxydownloader import get_proxies
 get_proxies()
:param list_with_txt_file_links:
        Example
            ["https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/socks5.txt",
            "https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/socks4.txt",
            "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt",
            "https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list-raw.txt",
            "c:\\proxylist.txt"]
        (default=None) #Will choose randomly from list_with_txt_file_proxies
:param list_with_json_file_links:
        Example
            ["https://raw.githubusercontent.com/fate0/proxylist/master/proxy.list",
            "https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/mtproto.json",
            "https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/socks.json",]
        (default=None) #Will choose randomly from list_with_json_file_proxies

:param save_path_proxies_all_filtered:
        Folder for output
        (default=None) #Will create a folder in the root of your env, called "freeproxydownloader_results"

:param http_check_timeout:
        Timeout for http check with requests
        (default=10)

:param threads_httpcheck:
        How many threads when doing the http check with requests
        (default=20)

:param threads_ping:
        How many threads when doing the ping check
        (default=10)

:param silent:
        verbose or not
        (default=False)

:param max_proxies_to_check:
        stop checking after n checked proxies in total! (Not positive results!!)
        (default=False)

:return: filtered_proxies_xlsx, filtered_proxies_pkl #can be opened com pandas
```