semvec/pypi-packages huggingface dataset:
flake8-bandit 4.1.1
Automated security testing with bandit and flake8.
License: MIT
Requires Python: >=3.6


# flake8-bandit
[![Build Status](https://travis-ci.org/tylerwince/flake8-bandit.svg?branch=master)](https://travis-ci.org/tylerwince/flake8-bandit)

Automated security testing built right into your workflow!

You already use flake8 to lint all your code for errors, ensure docstrings are formatted correctly, sort your imports correctly, and much more... so why not ensure you are writing secure code while you're at it? If you already have flake8 installed all it takes is `pip install flake8-bandit`.

## Configuration

To include or exclude tests, use the standard `.bandit` configuration file. An example valid `.bandit` config file:

```text
[bandit]
exclude = /frontend,/scripts,/tests,/venv
tests: B101
```

In this case, we've specified to ignore a number of paths, and to only test for B101.

**Note:**  flake8-bugbear uses bandit default prefix 'B' so this plugin replaces the 'B' with an 'S' for Security. For more information, see https://github.com/PyCQA/flake8-bugbear/issues/37

## How's it work?

We use the [bandit](https://github.com/PyCQA/bandit) package from [PyCQA](https://meta.pycqa.org/#) for all the security testing.
czech-holidays 1.0.0
Python package with Czech public holidays
License: MIT
Requires Python: >=3.7


Czech Holidays
==============

Python package with `Czech public holidays <https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic>`_.

Installation
------------

From PyPI::

    pip install czech-holidays

In case you have an adventurous mind, give a try to the source::

    pip install git+https://github.com/honzajavorek/czech-holidays.git#egg=czech-holidays

Examples
--------

Czech Holidays provides the following interface:

.. code:: python

    >>> from czech_holidays import czech_holidays
    >>> holidays = czech_holidays(2022)
    >>> holidays[:3]
    [Holiday(date=datetime.date(2022, 1, 1), name='Nový rok', name_en="New Year's Day"),
     Holiday(date=datetime.date(2022, 1, 1), name='Den obnovy samostatného českého státu', name_en='Restoration Day of the Independent Czech State'),
     Holiday(date=datetime.date(2022, 4, 18), name='Velikonoční pondělí', name_en='Easter Monday')]

The function accepts year as a single argument and returns a list of `named tuples <https://docs.python.org/3/library/collections.html#collections.namedtuple>`_:

.. code:: python

    >>> holidays[0].date
    datetime.date(2022, 1, 1)
    >>> holidays[0].name
    'Nový rok'
    >>> holidays[0].name_en
    "New Year's Day"

Albeit named, it's still just a tuple:

.. code:: python

    >>> holidays[0][0]
    datetime.date(2022, 1, 1)
    >>> holidays[0][1]
    'Nový rok'
    >>> holidays[0][2]
    "New Year's Day"
    >>> tuple(holidays[0])
    (datetime.date(2022, 1, 1), 'Nový rok', "New Year's Day")
    >>> holidays[0] < holidays[5]
    True

Two shortcuts are available:

.. code:: python

    >>> from czech_holidays import czech_easter, czech_christmas
    >>> czech_easter(2022)
    Holiday(date=datetime.date(2022, 4, 18), name='Velikonoční pondělí', name_en='Easter Monday')
    >>> czech_christmas(2022)
    Holiday(date=datetime.date(2022, 12, 24), name='Štědrý den', name_en='Christmas Eve')

The aim of this library is to simplify work with Czech public holidays in current
applications, thus **it does not provide any historical data**:

.. code:: python

    >>> czech_holidays(2013)
    Traceback (most recent call last):
    NotImplementedError: ...

Development
-----------

Install using `poetry <https://python-poetry.org/>`_::

    git clone git@github.com:honzajavorek/czech-holidays.git
    cd czech-holidays
    poetry install

Then run tests::

    pytest

License: MIT
------------

© 2022 Honza Javorek <mail@honzajavorek.cz>

This work is licensed under `MIT license <https://en.wikipedia.org/wiki/MIT_License>`_.
celery-aws-xray-sdk-extension 0.1.2
Extension for AWS X-Ray SDK which enables tracing of Celery tasks
License: MIT
Requires Python: >=3.6

# celery-aws-xray-sdk-extension

[![PyPI version](https://img.shields.io/pypi/v/celery-aws-xray-sdk-extension)](https://pypi.org/project/celery-aws-xray-sdk-extension/) ![PyPI license](https://img.shields.io/pypi/l/celery-aws-xray-sdk-extension)

Celery signal handlers that integrate Celery task lifecycle with AWS X-Ray tracing.

There's a tiny example in the directory `example`.

## Installation

You can install it easily with `pip`: `pip install celery-aws-xray-sdk-extension`. For latest version visit [PyPI](https://pypi.org/project/celery-aws-xray-sdk-extension/).

## Setup

This guide doesn't cover setting up AWS X-Ray SDK for Python or AWS X-Ray daemon. It's expected that you've already got some experience with it. If you don't have any experience with AWS X-Ray, please visit [Amazon documentation](https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html).

1. You have to have [Celery signals](https://docs.celeryq.dev/en/stable/userguide/signals.html) enabled.
2. Connect Celery signals to signal handlers from `celery_aws_xray_sdk_extension` module in your Celery setup. Example code is below this list.
3. You're good to go!

### Connecting handlers to Celery signals

```python
signals.after_task_publish.connect(xray_after_task_publish)
signals.before_task_publish.connect(xray_before_task_publish)
signals.task_failure.connect(xray_task_failure)
signals.task_postrun.connect(xray_task_postrun)
signals.task_prerun.connect(xray_task_prerun)
```

## Development

Before making any changes, please prepare your environment (no global changes are made!) with `make setup-dev`. Feel free to check what the target does in the `Makefile`.

This repository uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).