semvec/pypi-packages huggingface dataset:
django-krules-scheduler 0.1.1
A Django app that provides models and admin interface to manage scheduled events
Requires Python: >=3.6
Keywords: django krules

=====
Django Krules Scheduler
=====

This app provides models and admin interface to manage scheduled events.

Quick start
-----------

1. Add "prettyjson", "rest_framework" and "django_krules_scheduler" to your INSTALLED_APPS settings like this::

    INSTALLED_APPS = [
        ...
        'prettyjson',
        'rest_framework',
        'django_krules_scheduler',
        ...
    ]


2. Add urls to your application::

    urlpatterns = [
        ...
        path(r'api/', include("django_krules_scheduler.urls")),
        ...
    ]

3. Collect static::

    python manage.py collectstatic

4. [OPTIONAL] Define custom authentication policies

    By default procevents API is completely open because they are designed to be used within an isolated cluster.
    However, if you want to integrate them into an external service, you can override the authentication mode, using for example a jwt token, and restrict the permissions by changing the settings.

    SCHEDULED_EVENTS_AUTHENTICATION_CLASSES = []

    SCHEDULED_EVENTS_PERMISSION_CLASSES = ['rest_framework.permissions.AllowAny', ]

    Both authentication and permission classes must be compliant with `Django Rest Framework <https://www.django-rest-framework.org/>`_.
    Look at `Authentication <https://www.django-rest-framework.org/api-guide/authentication/>`_ and `Permissions <https://www.django-rest-framework.org/api-guide/permissions/>`_ sections for more info.
heimdall-milieu-calculator 0.0.7
BRL 2506 milieu calculator
Requires Python: >=3.6

# Heimdall Milieu Calculator

Defines a calculator object to calculate various values for the implementation of the BRL 2506-2

There are two calculators and one base. The difference between the two calculators are the norms that are being used to
calculate the values

## Install

install with pip

```bash
pip install heimdall-milieu-calculator
```

or add to requirements.txt

```text
heimdall-milieu-calculator>=1.0.0
```

## Quick Start

```python 
import heimdall-milieu-calculator

calculator_five = MilieuFiveCalculator()
calculator_ten = MilieuTenCalculator()

# supply the list of observations,
# is_critical_component (see for info brl2506-2 5.4.3.1)
# norm of component
calculation_result = calculator_five.calculate(observations=[1,1,1,1,1],
                                is_critical_component=False,
                                norm=1.8)
                                
print(calculation_result.gamma_result) # prints 7
print(calculation_result.k_value) # prints 10001

```