semvec/pypi-packages huggingface dataset:
unihasher 0.1.5
Compare image hashes using a unified library
License: MIT

# Unified Hasher
This library aims to streamline usage of different perceptual image hashes. 

# Installation
**pip**
```pip install unihasher```

# Details
The library provides the following methods for comparing the similarity of two image hashes:
1. Individual Hash - The verdict for whether an image was good or modified from a bad one was determined solely from a single hash algorithm.
2. Majority Decision - The similarity values for all four hashing algorithms were compared separately, and the final verdict was the verdict of the majority of the hash algorithms. In the case of a tie, the verdict of the best performing hash from Approach 1 was taken. 
3. Decision Tree - The similarity values for a combination of all four hashing algorithms were considered by passing the values through a decision tree.

The hashing algorithms implemented are:
dhash, phash, whash from imagehash library
nmfhash adapted from Robust Perceptual Image Hashing Based on Ring Partition and NMF (Tang et al.)

For more details, please refer to our paper.

Made by: [Akshara Mantha](https://github.com/mynameisashllee), [Peng Ruijia](https://github.com/mango-milkshake), [Tan Siying](https://github.com/Cp-Youfy)

# Usage
Please refer to `unihasher_demo/unihasher_usage.py` for details on how you may use the library.
spectoconvo 0.1.4
A package to embed messages into spectrograms
License: MIT
Requires Python: >=3.6

# Spectoconvo

Spectoconvo is a Python package to embed messages into spectrograms.

## Installation

You can install the package using pip:

```sh
pip install spectoconvo
```

## Usage

Here's an example of how to encode a message using `spectoconvo` package:

```python
from spectoconvo import add_message_to_spectrogram

sound_file = 'audio.wav'

message = 'Hello, Spectrogram!'

output_file = 'output_spectrogram.png'

output_sound_file = 'output_with_message.wav'

output_spectrogram_file = 'output_with_message_spectrogram.png'

changes_spectrogram_file = 'changes_spectrogram.png'

image_path = 'output_image.png'

scale_freq,scale_time=add_message_to_spectrogram(sound_file, message, output_file, output_sound_file, output_spectrogram_file, changes_spectrogram_file, image_path,scale_freq,scale_time)
```
Edit scale_freq and scale_time to scale the message in the spectrum after running the drfult setting, the defult is to the largest message possibe with the  at 20 kHz.

Here's an example of how to decode a message using `spectoconvo` package:
```python
from spectoconvo import add_message_to_spectrogram


sound_file_to_decode = 'output_with_message.wav'


image_path = 'output_image_decode.png'

decode( sound_file_to_decode, image_path)

```
Multiple languages are suported and would like to suport as many as possible so please make an issue for more languages.
django-cookie-consent-gutsh 1.1.7
Cookie consent component for any Django web-site
License: MIT
Requires Python: >=3.10

# Cookie consent

Cookie consent is a Django app to show consent component for web-cookies.

## Quick start

1. Add "cookie\_consent" in your `settings.py`:
```
    ...
    INSTALLED_APPS = [
        ...,
        "cookie_consent",
        ...,
    ]
    ...
```
2. Include the url config like this:
```
    path("cookie_consent/", include("cookie_consent.urls")),
```
3. Run `python manage.py migrate cookie_consent` to create the models.
4. Include consent template in your web-site templates.
  
  For example, I've included the following near the end of my base template:

  ```
  {% block cookie_consent %}
    <link rel="stylesheet" href="{% static 'cookie_consent/css/index.css' %}">
    {% include 'cookie_consent/includes/consent.html' with consent_text='We use cookies to understand your interactions with this web-site.' %}
    {# the default for `consent_text` is 'We are using cookies to make this website fully functional.' #}
    <script defer src="{% static 'cookie_consent/js/main.js' %}"></script>
  {% endblock %}
  ```

  Don't forget to serve that script and css files! You can find them in distribution, css and js are in both source and compiled forms and are fine (as long as you run `collectstatic` command).

5. Start the development server and visit necessary pages.

## Coming up next

- Automated testing