semvec/pypi-packages huggingface dataset:
earworm 0.4.0
Create a simple web page to listen to audio files in a directory
Requires Python: >=3.7.13,<4.0.0

# earworm
Create a simple web page to listen to audio files in a directory

## Setup

The package is available on PyPI and you can install it using pip/conda.

```sh
pip install earworm
```
## Usage

This tool can generate a simple HTML page from a directory of music files. The
tool can read metadata from files directly (currently only supports MP3 files
and ID3 tags). But, if you have files which are not MP3, you can use a CSV file
with the metadata.

The CSV file **must** have the following columns `filename` and `title`, and
any additional ones you may want. A template can be generated using the tool --
see step 3 below.

1. To get started create a sample config file:


   ```sh
   earworm make-config -c config.yml
   ```

1. Change the value of `music_dir` to the directory where you have your music
   files. If you wish to use a CSV file for the metadata, add a `metadata_csv`
   entry to the config.

   ```yaml
   metadata_csv: "/path/to/metadata.csv"
   ```

1. You can generate a template for the `metadata.csv` from your `music_dir` by
   running `earworm` with the `update-csv` sub-command. Once the CSV file is
   generated, add a `metadata_csv` entry pointing to this file to your config.

1. Run `earworm` to generate a directory called `output` with an
   `index.html`, `music/` directory with all the music files that have "valid
   metadata", and a `covers/` directory with the cover images for the albums.

1. You can specify the `<title>` of the page by using the `title` config var

1. If the `base_url` parameter is specified, an `og:image` tag is added to the
   page, using the latest song's cover image.

1. Open the `index.html` in your browser to view the playlist locally.

1. If you have access to a webserver, you can just sync the output directory to
   your webserver.

1. If you don't have access to a webserver you can use something like [Google
   Drive](https://web.archive.org/web/20201127203126/https://www.ampercent.com/host-static-websites-google-driv/11070/)
   or
   [Dropbox](https://web.archive.org/web/20210117032036/https://www.ampercent.com/host-static-website-dropbox-free-webhosting/6426/)
   to host this as a static website.

1. A new music file can be added to an existing music directory and site using
   the `add-audio` subcommand.

   ```sh
   earworm add-audio -c config.yml -i ~/Downloads/cover-image.jpg ~/Music/covers/song123.mp3
   ```

## Dev Setup

When working on the source (py/html/CSS/JS) of the site, you can automatically
generate the html each time you make any changes to the input files using
`entr`.

```sh
ls /path/to/config-file $(git ls-files) | entr earworm --config /path/to/config-file
```

### JS toolchain

To change the JS files, you need to have `rollup` installed and you can run the
rollup watcher (`rollup -w -c rollup.config.js`) to build the `bundle.js`.
pylibscraper 0.9.0
PyScrapeLib is a Python library designed to make it easy to gather information and data from other Python libraries.
Keywords: python

With PyScrapeLib, you can easily extract relevant information from a wide range of libraries and use it for your own purposes. Whether you need to gather data for research, build a new application, or simply explore the capabilities of other libraries, PyScrapeLib can help you get the information you need.
django-token-tools 0.2.0
Suite of Django tools around token authentication.

# django-token-tools

Suite of Django tools around token authentication

### Settings

#### TOKEN_TIMEOUT

Validity time of a token in seconds.

### token_tools.generator.TokenGenerator

This module is a generic version of the token generator used by django for
reset password URLs.
You should implement `token_idb64` and `_make_hash_value` to make it work.

#### token_idb64

This method must return a base64 encoded data, it's used to validate the token, and can embed data.
It must not embed critical data, it can be simply decoded.

#### _make_hash_value

This is the hash value, it must be unique by user. It will be used to generate the token, and to validate a token
with idb64 content.


0.2.0
---------------------------

* Use default settings for TOKEN_TIMEOUT
* Support Dajngo 4.1
* Support Python 3.10
* Move CI to github actions


0.1.2           (2019-12-17)
----------------------------

* Documentation improvement
* add support for django 3.0 and python 3.8


0.1.0  (2019-10-15)
-------------------

* First release
decapitaliza 0.0.3
A simple CLI tool to decapitalize spanish strings.

# Decapitalize spanish words.

This utility is only for spanish words and contains a spanish dictionary of words with dyacritics.

## Use Case.

This tool is designed to restore the correct spelling of names and surnames collected in the official systems of many Spanish-speaking countries.
Traditionally, words are stored in capital letters and without accents or other non-ASCII characters.
Since this transformation is destructive, it is not easy to obtain the correct spelling of these records.

## Description

decapitaliza uses a dictionary of terms with Spanish spelling and a simple text analysis mechanism adapted to the processing of proper names and surnames.
It capitalizes words according to common rules for first and last names.
"decapitaliza" includes a command line tool that allows you to perform the following functions:

  - Generate custom dictionaries: import correctly spelled terms from a CSV with correct words. If no external dictionary is specified, a pre-generated dictionary is used. The included dictionary can be extended with additional words.
  - Transforms the words of a text (separated by spaces).
  - Processes a CSV by transforming the indicated columns.


## Caso de uso.

Esta herramienta está diseñada para restaurar la ortografía correcta de los nombres y apellidos recogidos en los sistemas oficiales de muchos países de habla hispana.
Tradicionalmente, las palabras se guardan en mayúsculas y sin tildes ni otros caracteres no ASCII.
Como esta transformación es destructiva, no es sencillo obtener la correcta ortografía de esos registros.

## Funcionamiento

decapitaliza utiliza un diccionariode términos con ortografia del español y un mecanismo simple de análisis de textos adaptado al procesado de nombres propios y apellidos.
Capitaliza las palabras de acuerdo a las reglas comunes para nombres y apellidos.
"decapitaliza" incluye una herramienta para línea de comandos que permite realizar las siguientes funciones:

  - Genera diccionarios a la medida: importa términos con ortografía correcta a partir de un CSV con palabras correctas. Si no se indica un diccionario externo se utiliza un diccionario pregenerado. Se puede ampliar el diccionario incluido con palabras adicionales.
  - Transforma las palabras de un texto (separadas por espacios)
  - Procesa un CSV transformando las columnas que se indiquen.
dj-deploy 0.0.1
Django automate deployment
Requires Python: >=3.6

# Django Deployment.

## Just call the command in your terminal/powershell/cmd!


### For pem file login!
```

djdeploy --pem

```


### For password file login!
```

djdeploy --passwd

```


### For help!
```

djdeploy --help

```
dj-acc 0.0.1
An extensible user-accounts application for Django
Requires Python: >=3.7

# Django Accounts


## Add these lines in your INSTALLED_APPS of settings.py file!
```

# Third party apps!
'accounts',
'crispy_forms',

```


## Add these lines in your settings.py file!
```

CRISPY_TEMPLATE_PACK = 'bootstrap4'

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'accounts.authentication.EmailOrUsernameModelBackend',
)

```


## Add this line in urlpatterns of your root/core urls.py file!
```

path('accounts/', include('accounts.urls')),

```

## Default parameters which you can change in your settings.py
```

UNIQUE_EMAIL = bool # True
ACCOUNT_ACTIVATION = bool # True
SIGNUP_URL = str['uri'] # 'signup/'
SIGNIN_URL = str['uri'] # 'signin/'

SIGNUP_TEMPLATE = str['path'] # 'accounts/register.html'
ACTIVATION_EMAIL_TEMPLATE = str['path'] # 'accounts/activate.html'
LOGIN_TEMPLATE = str['path'] # 'accounts/login.html'
FORGET_TEMPLATE = str['path'] # 'accounts/reset-password.html'
PROFILE_TEMPLATE = str['path'] # 'accounts/profile.html'

CURRENT_SITE = str['url'] # 'http://127.0.0.1:8000'

```
dj-init 0.0.1
Django project initialize
Requires Python: >=3.6

# Django Initialize

## Just call the command in your terminal/powershell/cmd!


### For initialzie Django project with base structure!
```

djinit --create

```


### For initialzie Django project with base structure, And authentication implemented!
```

djinit --create-auth

```


### For help!
```

djinit --help

```
django-initialize 0.0.1
Django project initialize
Requires Python: >=3.6

# Django Initialize

## Just call the command in your terminal/powershell/cmd!


### For initialzie Django project with base structure!
```

djinit --create

```


### For initialzie Django project with base structure, And authentication implemented!
```

djinit --create-auth

```


### For help!
```

djinit --help

```