semvec/pypi-packages huggingface dataset:
wsgi-cloudflare-proxy-fix 0.1.2
Sets REMOTE_ADDR to the correct value when behind Cloudflare, based on the Cf-Connecting-Ip header, when requests originate from Cloudflare's IP range.
Requires Python: >=3.9,<4.0

``wsgi_cloudflare_proxy_fix``: Safely read Cloudflare's ``Cf-Connecting-Ip`` header
===================================================================================

``wsgi_cloudflare_proxy_fix`` is a WSGI middleware that safely sets the
``REMOTE_ADDR`` environment variable to the value of the ``Cf-Connecting-Ip``
header for requests originating from Cloudflare.

In addition, it sets a ``CF_TRUSTED`` environment variable to ``True`` for
all requests originating from Cloudflare.

Installation
------------

Install ``wsgi_cloudflare_proxy_fix`` using ``pip``::

    pip install wsgi_cloudflare_proxy_fix

Usage
-----

The following examples assume ``werkzeug.middleware.proxy_fix.ProxyFix`` is
being used to read the ``X-Forwarded-For`` and ``X-Forwarded-Proto`` headers.

For a standalone WSGI application:

.. code-block:: python

    import logging
    from wsgi_cloudflare_proxy_fix import CloudflareProxyFix
    from werkzeug.middleware.proxy_fix import ProxyFix

    application = CloudflareProxyFix(application, log_level=logging.INFO)
    application = ProxyFix(application)

For a Flask application:

.. code-block:: python

    import logging
    from wsgi_cloudflare_proxy_fix import CloudflareProxyFix
    from werkzeug.middleware.proxy_fix import ProxyFix

    def create_app():
        app = Flask(__name__)
        app.wsgi_app = CloudflareProxyFix(app.wsgi_app, log_level=logging.INFO)
        app.wsgi_app = ProxyFix(app.wsgi_app)
        return app

Testing
-------

To verify the proxy fix is working as expected in your production environment,
the ``CloudflareProxyFixTest`` middleware can be used by adding the following
to your application:

.. code-block:: python

    import logging
    from wsgi_cloudflare_proxy_fix import CloudflareProxyFix, CloudflareProxyFixTest
    from werkzeug.middleware.proxy_fix import ProxyFix

    def create_app():
        app = Flask(__name__)
        app.wsig_app = CloudflareProxyFixTest(app.wsgi_app, path="/debug/cf-test")
        app.wsgi_app = CloudflareProxyFix(app.wsgi_app, log_level=logging.INFO)
        app.wsgi_app = ProxyFix(app.wsgi_app)
        return app

And making a request to the `debug/cf-test` endpoint::

    $ curl http://localhost:5000/debug/cf-test
    {
        "CF_TRUSTED": null,
        "REMOTE_ADDR": "127.0.0.1"
        "wsgi_cloudflare_proxy_fix.orig": null,
    }
    $ curl -H 'X-Forwarded-For: 103.31.4.1' -H 'Cf-Connecting-Ip: 1.2.3.4' http://localhost:5000/debug/cf-test
    {
        "CF_TRUSTED": true,
        "REMOTE_ADDR": "1.2.3.4",
        "wsgi_cloudflare_proxy_fix.orig": {
            "REMOTE_ADDR": "103.31.4.1"
        }
    }
warpspeed-googlesearch-python 1.1.1
A Python library for scraping the Google search engine. Forked from https://pypi.org/project/googlesearch-python/ to loosen requirements constraints.
Requires Python: >=3.6

# googlesearch
googlesearch is a Python library for searching Google, easily. googlesearch uses requests and BeautifulSoup4 to scrape Google. 

## Installation
To install, run the following command:
```bash
python3 -m pip install googlesearch-python
```

## usage
To get results for a search term, simply use the search function in googlesearch. For example, to get results for "Google" in Google, just run the following program:
```python
from googlesearch import search
search("Google")
```

## Additional options
googlesearch supports a few additional options. By default, googlesearch returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.
```python
from googlesearch import search
search("Google", num_results=100)
```
In addition, you can change the language google searches in. For example, to get results in French run the following program:
```python
from googlesearch import search
search("Google", lang="fr")
```
## googlesearch.search
```python
googlesearch.search(str: term, int: num_results=10, str: lang="en") -> list
```
simpley 1.1.4
Simpley is a Python package designed to make coding in Python just a little bit easier
Requires Python: >=3,<4

# Simpley

**Simpley** is a Python package designed to make coding in Python just a little bit easier.  
Everything in **Simpley** is just a simple function, so you can easily code anything in Python.

## Installation

To install **Simpley**, use one of the following commands:

``` sh
python3 -m pip install simpley
py -m pip install simpley
pip3 install simpley
pip install simpley
```

## Documentation

View the **Simpley** documentation [here](https://github.com/dylanopen/simpley)