semvec/pypi-packages huggingface dataset:
scutils 1.3.0.dev6
Utilities for Scrapy Cluster
License: MIT
Keywords: scrapy,scrapy-cluster,utilities

************************
Scrapy Cluster Utilities
************************

Overview
--------

The ``scutils`` package is a collection of utilities that are used by the Scrapy Cluster project.  These utilities are agnostic enough that they can be used by any application.

Requirements
------------

- Unix based machine (Linux or OS X)
- Python 2.7 or 3.6

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

Inside a virtualenv, run ``pip install -U scutils``.  This will install the latest version of the Scrapy Cluster Utilities.  If you are running a Scrapy Cluster, ``scutils`` is included inside of the **requirements.txt** so there is no need to install it separately.

Documentation
-------------

Full documentation for the ``scutils`` package is included as part of the Official Scrapy Cluster Documentation, which can be found `here <http://scrapy-cluster.readthedocs.org/en/latest/topics/utils/index.html>`_ under the **Utilities** section.

argparse_helper.py
==================

The ``argparse_helper`` module is used to help print top level ``--help`` arguments from argparse when used with subparsers. Useful for running applications that have multiple combinations of subcommands and command line arguments.

log_factory.py
==============

The ``log_factory`` module provides a standardized way for creating logs for multithreaded and concurrent process log data.  It supports all log levels, stdout or to a file, and various output formats including JSON.

method_timer.py
===============

The ``method_timer`` module provides a simple decorator that can be added to functions or methods requiring an execution timeout period.

redis_queue.py
==============

The ``redis_queue`` module provides 3 core queue classes which use Redis as the place to store data. Includes FIFO, Stack, and Priority Queues.

redis_throttled_queue.py
========================

The ``redis_throttled_queue`` module provides a throttled or moderated Redis queue structure that can be used to mitigate the number of pops from the queue within a given time frame.

settings_wrapper.py
===================

The ``settings_wrapper`` module is a class the handles loading of default python application settings, which can then be overridden or added to by a local settings file. In the end provides a single dictionary object of all your loaded application settings.


stats_collector.py
==================

The ``stats_collector`` module generates Redis based statistics based on time windows or in total. Statistics collection includes time windows, rolling time windows, counters, unique counters, hyperloglog counters, and bitmap counters.

zookeeper_watcher.py
====================

The ``zookeeper_watcher`` module provides an easy way to tell an application that it's watched Zookeeper file has changed. It also handles Zookeeper session disconnects and reconnects behind the scenes of your application.
diversify 0.1.1
A small playlist generator for spotify
License: MIT
Requires Python: >=3.7,<4.0

# Diversify

## The Project

Diversify is a playlist generator based on the [Spofity WEB API](https://developer.spotify.com/web-api/) and the [Spotipy module](http://spotipy.readthedocs.io/en/latest/)
that aims to use concepts of AI to suggest playlists based on musical preferences between multiple people.

## Goals

The goal is to use AI algorithms to generate a spotify playlist based on a user's preference and
a friend of his choice. Currently the script will use a genetic algorthm to generate the playlists
but this may improve in the future.

## How to install

- First you need to get your spotify API key and save it to the .env file. 
	- Go to [spotify application web page](https://developer.spotify.com/dashboard/),
	- login with your spotify account and create a new app
	- put whatever name you'd like on the project info and say no to commercial integration
	- click on edit settings and whitelist https://edujtm.github.io/diversify/redirect
	- get your client ID and client secret (by clicking *show client secret*)
	- put them on a [config.ini](config.ini.example) file and move it to  `$HOME/.config/diversify/`
	- run `pip install diversify` 
	- run `diversify --help` to see if everything went ok.

## How to run

```
$ diversify login
$ diversify playlist PLAYLIST NAME
```

## How to contribute

- This project uses [poetry](https://python-poetry.org/) for dependency management
- Clone this repo: `git clone https://github.com/edujtm/diversify.git`
- `cd diversify` and `poetry install`
- Then run `poetry shell`