semvec/pypi-packages huggingface dataset:
cocoserver 1.0.9
A local HTTP server for compressed content.
Requires Python: >=3.8
Keywords: http,server,gzip,documentation

A Simple HTTP Server for Static Content
=======================================

This Python module provides a modified version of the ThreadingHTTPServer
class from the http.server module in the standard library.  This server
is designed to serve a static web site, such as documentation for a
python project generated by Sphinx and installed with the software.  It
serves the files locally, on a random port of the loopback interface,
and hence works off line.  The server runs in its own daemon thread
of the python process, so it terminates when the python program exits
and thus will not leave zombie processes running.

The server has been modified to allow any file in the site to be gzip
compressed and served with a Content-Encoding header set to "gzip".
The compressed file will be automatically decompressed by the browser,
with no noticeable performance loss.  This is more efficient than the
typical case of serving compressed content over the internet since the
compression is done in advance. It also takes significantly less space
on the user's disk. (Brotli compression would be even more efficient
in both ways, but web browsers still tend to only support Brotli
compression over https, due to the prevalence of broken proxy servers
on the internet.)

Source code is available on `Github <https://github.com/3-manifolds/cocoserver/>`_.
The git repository includes a script (compress_site.py) for compressing all of
the .html, .css, .js, .woff and .svg files below a given site root directory.
The tool is aware of Sphinx's tendency to produce many identical copies of the
same (large) _static directory.  So it also collects the contents of all of the
_static subdirectories into one _static directory in the root, replacing the
others by symlinks.

The server can be installed by running: ``python3 -m pip install cocoserver``.

To use the server::
  
  >>> from cocoserver import StaticServer
  >>> s = StaticServer('my/site/root')
  >>> s.visit('mypage')

The pip package also installs a console script named *coco* which can
be used to view your static site, for example by running: ``coco /usr/local/share/doc/myproject``.
wordiff 0.0.1
Identify the most distinctive words when comparing text across different groups.
Requires Python: >=3.7

# Wordiff
-----
Wordiff is designed to identify the most distinctive words when comparing text across different groups. Each word will only appear in one group's wordcloud. It generates unique word clouds for each group, enabling the exploration of the distinct words used in each group individually.

## Example
----
In the example provided below, a DataFrame is grouped by branch, and the review column is selected to identify the differences in words used across each branch. The words are sorted (and can be analyzed), generating a list of the most frequently used words for each group. This list is then utilized to create unique word clouds for each group, in this case, for each branch.

In this example, the word cloud images will not be saved (save_jpg = False), and the threshold is manually set. It is advisable to experiment with different threshold values, and it is recommended to create a column where all stopwords are removed for more accurate results.

```python
from wordiff import wordiff

grouped = df.groupby('Branch')['review']

sorted_words = wordiff.create_sorted_words(grouped)

wordiff.create_word_clouds(sorted_words, False, threshold=0.001)
```

## Installation
-----
If you have pip, you can download and install from the PyPI repository:
```
pip install wordiff
```

## Version
-----
0.0.1

## License
----
MIT

## Dependencies
-----
This package uses:
- pandas
- wordcloud: WordCloud
- nltk: FreqDist
- sklearn.feature_extraction.text: CountVectorizer
- atplotlib.pyplot: plt
PyClassCharts 0.0.1
An unofficial package for interacting with the ClassCharts API
Requires Python: >=3.7.0

# PyClassCharts
 An UNOFFICIAL wrapper made in python for the ClassCharts API. 

Inspired by [NCPlayz's Wrapper](https://github.com/NCPlayz/classcharts.py). 

Currently this is a work in progress project and will only be worked on as needed to add new features or to fix broken things since it's just made for a few simple tasks.