semvec/pypi-packages huggingface dataset:
django-uicomponents 0.1.0
Reusable UI components for your Django templates
License: MIT
Requires Python: >=3.6

# Django UI Components
> *Reusable UI components for your Django templates*

[![PyPI](https://img.shields.io/pypi/v/django-uicomponents?color=blue)](https://pypi.org/project/django-uicomponents/)
[![Build Status](https://travis-ci.org/koenwoortman/django-uicomponents.svg?branch=main)](https://travis-ci.org/koenwoortman/django-uicomponents)


## Usage

1. Create a component file, such as `./templates/components/button.html`.

```html
<button class="px-4 py-2 font-semibold rounded-lg shadow text-sm text-white
  {% if variant == 'danger' %}
    bg-red-500 hover:bg-red-400
  {% elif variant == 'success' %}
    bg-green-500 hover:bg-green-400
  {% else %}
    bg-blue-500 hover:bg-blue-400
  {%endif%}
">
  {{ text }}
</button>
```

2. Load `components` at the top of your template and include the UI component by using the `component` template tag possibly with keyword arguments.

```html
{% load static %}
{% load components %}

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Django UI Components</title>
    <link rel="stylesheet" href="{% static 'css/styles.css' %}">
    <link rel="icon" type="image/x-icon" href="{% static 'favicon.ico' %}">
  </head>

  <body class="bg-gray-50 flex items-center min-h-screen justify-center">
    {% component 'button.html' text="Delete" variant="danger" %}
    {% component 'button.html' text="Save" variant="success" %}
    {% component 'button.html' text="Ok" %}
  </body>
</html>
```

3. This results in three button variations.

<div align="center">
  <div>
    <img src="https://github.com/koenwoortman/django-uicomponents/raw/main/media/screencapture.png" alt="Example screenshot">
  </div>
</div>

## Install

Install the package from [pypi](https://pypi.org/project/django-uicomponents/).

```
$ pip install django-uicomponents
```

Add `django_uicomponents` to your INSTALLED_APPS.

```python
# settings.py

INSTALLED_APPS = [
    ...
    'django_uicomponents',
    ...
]
```

## Settings

| Option               | Description                                                          | Default        |
| :------------------- | :------------------------------------------------------------------- | :------------- |
| **`COMPONENTS_DIR`** | Directory inside your template dir from which components are loaded. | `'components'` |


## License

Released under the [MIT license](https://github.com/koenwoortman/django-uicomponents/blob/main/LICENSE).
ukw-fax 0.0.2
Package to read outlook mails and extract attached .tifs to fspecific folder structure.
License: MIT
Requires Python: >=3.6

========
Overview
========



Package to read outlook mails and extract attached .tifs to fspecific folder structure. [D[D[D[D[D[D[D[

* Free software: MIT license

Installation
============

::

    pip install ukw-fax

You can also install the in-development version with::

    pip install https://github.com/Maddonix/ukw_fax/archive/master.zip


Documentation
=============


https://ukw_fax.readthedocs.io/


Development
===========

To run all the tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox


Changelog
=========

0.0.1 (2021-05-17)
------------------

* First release on PyPI.
pytest-relative-order 0.4
a pytest plugin that sorts tests using "before" and "after" markers
License: MIT
Requires Python: >=3.5

# pytest-relative-order
a pytest plugin that sorts tests using "before" and "after" markers

# Highlights
Consider `file.py`:
```
import pytest

@pytest.mark.after('test3')
def test1():
    pass

@pytest.mark.before('test3')
def test2():
    pass

def test3():
    pass
```

then if you run `pytest file.py`, you should get tests executed in the following order:
```
==================================== test session starts ====================================
platform linux -- Python 3.7.9
cachedir: .pytest_cache
rootdir: /home/radek/example, configfile: pytest.ini
plugins: relative-order-0.2
collected 3 items                                                                                                                                                                                        

file.py::test2 PASSED                                                                  [  33%]
file.py::test3 PASSED                                                                  [  33%]
file.py::test1 PASSED                                                                  [  33%]
===================================== 3 passed in 0.02s =====================================
```

# Details
This plugin introduces two custom markers - `before` and `after`. They accept id of test that should precede/follow the marked test. 
Marker values are used to sort tests with Kahn's algorithm.
## Markers usage
The following usages are correct:
```
@pytest.mark.before('test2')
def test1():
```
```
class TestClass:
  @pytest.mark.before('TestClass::test2')
  def test1():
```
```
class TestClass:
  @pytest.mark.before('filepath.py::TestClass::test2')
  def test1():
```
```
@pytest.mark.after('test2', 'test3', 'test4')
def test1():
```
Marker values must be unique, so if there are two different tests named `test_simple`, but they are in two different classes, then class name must be included in the marker value:
```
class TestClass1:
  def test_simple():
[...]
class TestClass2:
  def test_simple():
[...]

@pytest.mark.after('test_simple')  # wrong, ambiguous!
def test_complex1():
[...]

@pytest.mark.after('TestClass2::test_simple')  # correct
def test_complex2():
[...]
```

Of course cycles are forbidden:
```
@pytest.mark.after('test2')
def test1():
[...]
@pytest.mark.after('test1')  # wrong!
def test2():
[...]
```

## Remarks
Please keep in mind that the configuration below:

`file1.py`:
```
def test1():
  pass
```
`file2.py`:
```
import pytest

pytest.mark.before('file1.py::test1')
def test2():
  pass
```

followed by `pytest file1.py` will NOT detect `test2` and will not execute it.