semvec/pypi-packages huggingface dataset:
multi_language_sentiment 0.1.0
Sentiment analysis pipeline for texts in multiple languages.

# multi-language-sentiment

A pipeline for sentiment analysis for texts with unknown language.

We use the lingua-language-detector to detect the language and run the text
samples through an sentiment analysis appropriate pipeline for that language.

## Usage

Basic usage for analysing a list of sentences:

``` python
import multi_language_sentiment

texts = ["This is a positive sentence", "Tämä on ikävä juttu"]
sentiments = multi_language_sentiment.sentiment(texts)
print(sentiments)
```

This should print
```
[{'label': 'positive', 'score': 0.89024418592453}, {'label': 'negative', 'score': 0.8899219632148743}]
```

### Supported language

The module currently supports the following langauges by default: English, Japanese, Arabic, German, Spanish, French, Chinese, Indonesian, Hindi, Italian, Malay, Portuguese, Swedish, and Finnish.

For other languages, you must supply a path for a HuggingFace sentiment analysis pipeline. To supply
a pipelien for a new language, use the models parameter:

``` python
import multi_language_sentiment
from lingua import Language

texts = ["This is a positive sentence", "Tämä on ikävä juttu"]
models = {Language.FINNISH: "fergusq/finbert-finnsentiment"}
sentiments = multi_language_sentiment.sentiment(texts, models = models)
```


## Technical details

Note that the pipeline will split each text sample to a maximum length of 512 characters. The
sentiments are aggregated by adding up the scores and taking the largest value.
django-urr 0.3.0
URL resolver utilities for Django
Requires Python: >=3.7

# django-urr

> Django URL resolver utilities

This package aims to make it easier to introspect and possibly manipulate
the URL resolver(s) in Django projects.

We use urr to auto-generate smoke tests for all URLs in the project,
but you might come up with other uses. Who knows!

## Installation

Install the package using `pip install` or similar.

To use the management command(s), also add `django_urr`
to your project's `INSTALLED_APPS`.

## `urr_list` Management Command

You can use the `urr_list` management command to generate
a machine-readable (but human-greppable) list of URLs in your project.

By default, `urr_list` outputs [JSON Lines (`jsonl`)][jsonl], with each
route on a line of its own; this is greppable with standard tools.
If you'd prefer, you can also direct `urr_list` to output a single JSON
array with `--format=json`.

Each route is an object (dict) has the following keys:

- `groups` – the named capture groups (route arguments).
  For unnamed groups, these are named `_0`, `_1`, etc. by Django.
- `name` – the name of the route, if any
- `namespace` – the namespace of the route, if any
- `path` – the path of the route, as a Python percent format string
- `pattern` – the regex to match the path

## Programmatic API

The `django_urr.extract_urls()` function
traverses the tree of URL patterns and returns an iterator of
`django_urr.extract.URLEntry` objects in original mounting order.

[jsonl]: http://jsonlines.org/
hendrix 5.0.0
Pure python web server, based on Twisted, providing the One Obvious Way to do async and offbeat network traffic with django and other WSGI apps.
Keywords: django,twisted,async,logging,wsgi

*Mr. D. Reinhardt, with a pair of guitars and tatters of sheet music in the back seat, speeds his convertible westward over the mountains. The campfire carries on without the blessing of his gypsy jazz, but his morning return is as a fearsome, left-handed character – familiar but Twisted* `(.py)`

![hendrix](docs/_static/hendrix-logo.png)

*v5.0.0*

*A Python web server that makes async and offbeat network traffic easy, fun, and fast.*

[![Gitter](https://badges.gitter.im/hendrix/hendrix.svg)](https://gitter.im/hendrix/hendrix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Build Status](https://travis-ci.org/hendrix/hendrix.png?branch=master)](https://travis-ci.org/hendrix/hendrix)[![Latest Docs](https://readthedocs.org/projects/hendrix/badge/?version=latest)](http://hendrix.readthedocs.org/en/latest/)

## Overview

**hendrix** is a tool for handling bytes-on-the-wire to and from your python web application.  In this sense, it is similar to [mod_wsgi](https://modwsgi.readthedocs.org), [uWSGI](https://uwsgi-docs.readthedocs.org), and [gunicorn](http://gunicorn-docs.readthedocs.org).  

However, hendrix differs from these other technologies in that it is natively asynchronous and designed with background tasks in mind.  In this sense, it may serve some projects as a replacement for [gevent](https://readthedocs.org/projects/gevent/) or [celery](http://celery.readthedocs.org).

**hendrix** implements the WSGI protocol, so it can serve applications made with django, pyramid, flask and other WSGI frameworks.  However, hendrix views your web as just another network resource - in fact, this is central to the [hendrix philosophy](http://hendrix.readthedocs.org/en/latest/philosophy/).

Twisted is one of the most battle-tested and actively developed Python projects.  Until hendrix, however, Twisted has not been part of a mainstream python web server.  And that's a shame.

### Features
* **Multi-processing** - The WSGI app can be served from multiple
processes on a single machine.
* **Multi-threading from within your Django / Flask / Pyramid app**: Various APIs allow you to defer logic until later, place it in a different thread or process, and report back asynchronously.  For example, see [crosstown_traffic](http://hendrix.readthedocs.org/en/latest/crosstown_traffic/).
* **Built-in Websockets Framework**
* **Optional Resource Caching**
* **Built-in SSL Support**: Terminate SSL inside your app if you like.  Public keys can be part of your logic!
* **Daemonize** by passing the `-d` or `--daemonize` flags to `hx`

### Quickstart

Using pip

    pip install hendrix


#### Running the Development Server

cd to the directory where your **manage.py** file is located and...

    hx start --dev

This is roughly the equivalent of running the django devserver.

----

**For more, see the full [hendrix documentation](http://hendrix.readthedocs.org).**