semvec/pypi-packages huggingface dataset:
modoboa-dmarc 1.3.0
DMARC related tools for Modoboa
License: MIT
Keywords: email dmarc

modoboa-dmarc
=============

|gha| |codecov|

A set of tools to use DMARC through Modoboa.

This plugin is still in BETA stage, for now it only parses XML aggregated
reports and generate visual reports (using c3.js) on a per-domain basis.

Installation
------------
Make sure to install the following additional system package according to your distribution:

+-----------------+
| Debian / Ubuntu |
+=================+
| libmagic1       |
+-----------------+

+------------+
| CentOS     |
+============+
| file-devel |
+------------+

Install this extension system-wide or inside a virtual environment by
running the following command::

  $ pip install modoboa-dmarc

Edit the settings.py file of your modoboa instance and add
``modoboa_dmarc`` inside the ``MODOBOA_APPS`` variable like this::

    MODOBOA_APPS = (
      'modoboa',
      'modoboa.core',
      'modoboa.lib',
      'modoboa.admin',
      'modoboa.limits',
      'modoboa.relaydomains',
      'modoboa.parameters',
      # Extensions here
      'modoboa_dmarc',
    )

Run the following commands to setup the database tables::

  $ cd <modoboa_instance_dir>
  $ python manage.py migrate modoboa_dmarc
  $ python manage.py collectstatic
  $ python manage.py load_initial_data
    
Finally, restart the python process running modoboa (uwsgi, gunicorn,
apache, whatever).

Integration with Postfix
------------------------

A management command is provided to automatically parse DMARC
aggregated reports (rua) and feed the database. The execution of this
command can be automated with the definition of a postfix service and
a custom transport table.

First, declare a new service in ``/etc/postfix/master.cf``::

  dmarc-rua-parser unix  -       n       n       -       -       pipe
    flags= user=vmail:vmail argv=<path to python> <path to modoboa instance>/manage.py import_aggregated_report --pipe

Define a new transport table inside ``/etc/postfix/main.cf``::

  transport_maps =
      hash:/etc/postfix/dmarc_transport
      # other transport maps...

Create a file called ``/etc/postfix/dmarc_transport`` with the following content::

  <email address your declared in your DNS record>  dmarc-rua-parser:

Hash the file using the following command::

  $ postmap /etc/postfix/dmarc_transport

Finally, reload postfix::

  $ service postfix reload


Specific Upgrade Instructions
-----------------------------

1.3.0
~~~~~

modoboa-dmarc now requires an additional system package according to your distribution:

+-----------------+
| Debian / Ubuntu |
+=================+
| libmagic1       |
+-----------------+

+------------+
| CentOS     |
+============+
| file-devel |
+------------+


.. |gha| image:: https://github.com/modoboa/modoboa-dmarc/actions/workflows/plugin.yml/badge.svg
   :target: https://github.com/modoboa/modoboa-dmarc/actions/workflows/plugin.yml

.. |codecov| image:: https://codecov.io/gh/modoboa/modoboa-dmarc/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/modoboa/modoboa-dmarc
apple-heartrate-pandas 0.1.6
A Python package to convert Apple Health Heartrate in Pandas
License: MIT
Requires Python: >=3.7
Keywords: apple,health,heartrate,pandas

[![PyPI license](https://img.shields.io/pypi/l/ansicolortags.svg)](https://pypi.org/project/YoutubeScraper/)
[![PyPI version fury.io](https://badge.fury.io/py/ansicolortags.svg)](https://pypi.org/project/apple-heartrate-pandas/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pybadges.svg)](https://pypi.org/project/apple-heartrate-pandas/)

# apple-heartrate-pandas
Simple package to read as a pandas dataframe the heartrate from the Apple Watch.

## Requirements
For the moment, only pandas is required. Since in this package I make use of the `attrs` field in pandas, I suggest to install [my fork](https://github.com/LeonardoAlchieri/pandas/tree/attrs_in_parquet_metadata) to have those saved as well using `parquet` file format. However, if no interest in the `attrs`, just go for a standard Pandas installation.

For reference, in the `requirements.txt` file, I have put the installation link to my fork.

## Usage

Just do:
```python
from apple_heartrate_pandas import get_json_heartrate
```
to import the main module required. Once this is done, just feed the method a path to the json file, extracted with the [Auto Export](https://apps.apple.com/us/app/health-auto-export-json-csv/id1115567069) application on iOS, and you are done. 

@2022, Leonardo Alchieri

<sub>People-Centered Computing Lab - Università della Svizzera italiana, Switzerland</sub>
jwblack 1.3.0
The customized uncompromising code formatter.
License: MIT
Requires Python: >=3.6
Keywords: automation formatter black yapf autopep8 pyfmt gofmt rustfmt prettier

# Forked from cblack
Thank you for the setup work cblack. This fork is only to pin it, because our app is unable to keep up with black at the moment.

# cblack

Custom Black Code Formatter for Python with 2-space indents

Same rules as Black, only with two-space indents.

## Installation

*cblack* can be installed by running `pip3 install cblack`.

It requires Python 3.6.0+ to run but you can reformat Python 2 code with it as well.

## Usage

    python -m cblack {source_file_or_directory}

## Options

    python -m cblack --help

You can also go to https://github.com/psf/black for the latest options available

## Why

After [a long discussion](https://github.com/ambv/black/issues/378) about indentation
levels it was decided by the main author that:

    Two space indents are not distinct enough to be recommended by the Black coding style.

The whole pourpose of this project is to provide an alternative to black, with
the exact same rules and behaviour, but using 2 spaces for indentation instead of 4.
All other black options are still supported.

Second reason is that [Google YAPF](https://github.com/google/yapf) is not able
to produce same output as black (mostly because of function arguments indentation),
otherwise, if it was possible to do it, I would not have created this project.

## How

I'm a busy man. I don't want to spend my time pulling latest changes from black
regularly, so I've created a small package that depends on black and overrides
a method to reindent using two spaces. Shall black developers break this behaviour
I might end up cloning the whole project. But the aim of this project
would still be the same.

## Similar projects

- YAPF
- Autopep8
- pep8ify
- pyfmt
- prettier in node
- gofmt in go
- rustfmt in rust

## Credits

All the credit is deserved to the people who created [black](https://github.com/ambv/black) on the first place.

Please visit black website:

- https://github.com/ambv/black