semvec/pypi-packages huggingface dataset:
inject-globals 1.0.0.4
A decorator for injecting global variables into function calls.

# inject-globals
A function for injecting global variables into function calls.

## Usage example:

A simple usage example is this:

```python
from inject_globals import inject_globals

@inject_globals(a = "Hello", b = "World")
def hello():
    print(f"{a} {b}")

hello()
```

However, that example is somewhat silly. It's power shows up when you are creating other decorators, like this one:

```python
def run_n_times(n):
    def middle(func):
        from functools import wraps

        @wraps(func)
        def inner(*args, **kwargs):
            r = []
            for i in range(1, n + 1):
                r.append(inject_globals(it = i)(func)(*args, **kwargs))
            return r
        return inner
    return middle

@run_n_times(3)
def foo():
    return f"This is the iteration #{it}."

assert foo() == ["This is the iteration #1.", "This is the iteration #2.", "This is the iteration #3."]
```
loghandlerzmq 2019.4.1
Logging handler to transmit messages over zmq
Keywords: logging zmq

.. image:: https://travis-ci.org/cjrh/loghandlerzmq.svg?branch=master
    :target: https://travis-ci.org/cjrh/loghandlerzmqloghandlerzmq

.. image:: https://coveralls.io/repos/github/cjrh/loghandlerzmq/badge.svg?branch=master
    :target: https://coveralls.io/github/cjrh/loghandlerzmq?branch=master

.. image:: https://img.shields.io/pypi/pyversions/loghandlerzmq.svg
    :target: https://pypi.python.org/pypi/loghandlerzmq

.. image:: https://img.shields.io/github/tag/cjrh/loghandlerzmq.svg
    :target: https://img.shields.io/github/tag/cjrh/loghandlerzmq.svg

.. image:: https://img.shields.io/badge/install-pip%20install%20loghandlerzmq-ff69b4.svg
    :target: https://img.shields.io/badge/install-pip%20install%20loghandlerzmq-ff69b4.svg

.. image:: https://img.shields.io/pypi/v/loghandlerzmq.svg
    :target: https://img.shields.io/pypi/v/loghandlerzmq.svg

.. image:: https://img.shields.io/badge/calver-YYYY.MM.MINOR-22bfda.svg
    :target: http://calver.org/

loghandlerzmq
=============

TODO