semvec/pypi-packages huggingface dataset:
dramatiq-abort 1.2.1
Dramatiq middleware to abort tasks.

# dramatiq-abort

Add the aborting feature to [dramatiq] through a simple middleware with flexible backend.

Current version support aborting using the [Redis] store.

[![Build Status](https://github.com/Flared/dramatiq-abort/workflows/Push/badge.svg)](https://github.com/Flared/dramatiq-abort/actions?query=workflow%3A%22Push%22)
[![PyPI version](https://badge.fury.io/py/dramatiq-abort.svg)](https://badge.fury.io/py/dramatiq-abort)
[![Documentation](https://img.shields.io/badge/doc-latest-brightgreen.svg)](http://flared.github.io/dramatiq-abort)

## Installation

Since the only available backend right now is [Redis]:

    pip install dramatiq_abort[redis]

**Documentation**: http://flared.github.io/dramatiq-abort


## Quickstart

```python

from dramatiq import get_broker
from dramatiq_abort import Abortable, backends, abort

abortable = Abortable(backend=backends.RedisBackend())
get_broker().add_middleware(abortable)

# ...

import dramatiq

@dramatiq.actor
def my_long_running_task(): ...

message = my_long_running_task.send()

# Now abort the message.
abort(message.message_id)
```

[Redis]: https://redis.io
[dramatiq]: https://dramatiq.io/
spdx3merge 0.0.3
Merge SPDX 3 data files
Requires Python: >=3.9

# Merge SPDX 3 Document

A tool to merge SPDX 3 Documents

## Installation

`spdx3merge` can be installed using `pip`:

```shell
python3 -m pip install spdx3merge
```

## Usage

In a basic form, `spdx3merge` will merge multiple input documents into a single
output document. To specify the input documents, use the `--input` or `-i`
arguments. The output document is specified with `--output` or `-o`.

The first input document specified is considered the "root" document; that is
all of its root elements will be copied to the output document root elements.

In order to generate proper output document, at least one `--author-` argument
must be specified. The easiest is to use `--author-person` and specify your
name. For other author options, see `spdx3merge --help`.

Here is a complete example:

```shell
spdx3merge \
    --input A.spdx.json \
    --input B.spdx.json \
    --input C.spdx.json \
    --output out.spdx.json \
    --author-person "Joshua Watt"
```

If you are going to read the document, you'll most likely also want the
`--pretty` option to make it more readable

## Development

Development on `spdx3merge` can be done by setting up a virtual environment and
installing it in editable mode:

```shell
python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
```

Tests can be run using pytest:

```shell
pytest -v
```