semvec/pypi-packages huggingface dataset:
trieres 0.5.26
A cloud-native python library for domain-specific cloud FPGAs.
Requires Python: >=3.7

<p align="center">
  <a aria-label="License" href="https://github.com/cloudFPGA/trieres/blob/master/LICENSE">
    <img alt="" src="https://img.shields.io/github/license/cloudFPGA/trieres?style=for-the-badge&labelColor=000000">
  </a>
  <a aria-label="PyPi" href="https://pypi.org/project/trieres/">
    <img alt="" src="https://img.shields.io/pypi/v/trieres?style=for-the-badge&labelColor=000000">
  </a>
  <a aria-label="Python" href="#trieres">
    <img alt="" src="https://img.shields.io/pypi/pyversions/trieres?style=for-the-badge&labelColor=000000">
  </a>
</p>

# trieres
This is a python module enabling the remote execution of accelerated functions on the [cloudFPGA platform](https://www.zurich.ibm.com/cci/cloudFPGA/).

## Workflow to upload a new package at pypi

```
git clone --depth 1 --recursive git@github.com:cloudFPGA/trieres.git
cd trieres  
make env
source venv/bin/activate
make dist 
make upload
```

## Notes

Optionally to crate a new package by using the latest cFp_Zoo :

```
git clone --depth 1 --recursive git@github.com:cloudFPGA/trieres.git
cd trieres  
make env
source venv/bin/activate
cd trieres/cFp_Zoo
git pull
make dist 
make upload
```
django-logging-requests 1.3.5
A package for logging all requests
Requires Python: >=3.8

# Logging

Middleware для логирования request запросов на endpoint.

## Quick start

1. Add "django_logging" to your INSTALLED_APPS setting like this.

    ```python
        INSTALLED_APPS = [
            ...
            'django_logging',
            ...
        ]
    ```

1. Create `logging` handlers with `LOGGING` name within `settings.py`. The middleware uses handlers with names: `info_logger` and
`error_logger` .

    ```python
    LOGGING = {
        'formatters': {
            ...
        },
        'handlers': {
            ...
        },
        'loggers': {
            'info_logger': {
                'handlers': ['info'],
                'level': 'INFO'
            },
            'error_logger': {
                'handlers': ['error'],
            },
        }
    }
    ```

1. Create `LOGGING_SERVER_NAME` withing `settings.py`. The middleware uses this variable as server name key in every log message.

    ```python
    LOGGING_SERVER_NAME = 'server name'
    ```

1. Create `AUTHENTICATION_HEADER` within `settings.py`. The middleware try to get user information from this header in [jwt](https://jwt.io/) format.

    ```python
    AUTHENTICATION_HEADER = 'Authentication'
    ```

1. Add a middleware class to listen in on responses

    ```python
    MIDDLEWARE = [
        ...,
        "django_logging.middleware.LoggingMiddleware",
        ...,
    ]
    ```

    It's better to set as low as possible.

## Release

Pushing to master branch will run auto build new version and push it to `pypi`. Before pushing to master
branch must update version in `setup.py`.