semvec/pypi-packages huggingface dataset:
kplot 0.3.5
A small package for making matplotlib plots pretty <3
Requires Python: >=3.6

# kplot
A little package to make it easy to make pretty plots in matplotlib without having to fiddle too much :-)

## Usage
In general, all that kplot will do is change the defaults in matplotlib via the style sheet that you want. In order to do this, simply add an import statement of the form

"""python
import kplot.style
"""

Where style is the style that you want! My person default right now is the kg style sheet. But there is also a dark mode, and an option that will work well for colorblind folk.
mindoc 0.5.0
A minimalistic python documentation tool.
Requires Python: >=3.6

# mindoc.py

A minimalistic python and SQL documentation tool.

This program converts .py and .sql files into .html documentation files with minimal work on the developer's part.

(You can also use it to conver .md files to .html files in the same style if you wish)

The purpose is to minimise the documentation burden.

Simply write the code as if you would a markdown file with the documentation parts as comment blocks.

This tool also helps automatically generate a table of contents and cross-referencing.

mindoc also supports basic diagramming with markdown-like syntax.

Please see the documentation on GitHub to see how to install and use mindoc.

https://minchulkim87.github.io/mindoc/
ar_wordcloud 0.0.4
A tiny wrapper around `wordcloud.WordCloud` to support Arabic WordCloud
Requires Python: >=3.4

<div align="right" style="text-align: right"><i><sup>✨ May, 17 2020 ✨</sup></i></div>

# ar_wordcloud
A tiny wrapper around [`wordcloud.WordCloud`](https://github.com/amueller/word_cloud/blob/master/wordcloud/wordcloud.py#L154) to support WordCloud with Arabic text.

### Installation:

- `$ pip install ar_wordcloud`

### Usage:

> Also, see the [notebook](examples/how_to.ipynb) example.

Import and instantiate the main class:
```python
from ar_wordcloud import ArabicWordCloud

awc = ArabicWordCloud(background_color="white")
```
Then, either build a word cloud from a raw text string:
```python
t = 'أهلاً وسهلا، اللغة العربية جميلة'
wc = awc.from_text(t)
wc.to_file('hello.png')
```
![](examples/hello.png)

Or, build a word cloud from a dictionary:
```python
d = {"مرحبا": 12, "برمج": 8, "من": 10, "رمضان كريم": 15, "العيد قرب": 12, "اهلين": 1, "كورونا": 3}
dict_wc = awc.from_dict(d, ignore_stopwords=True)
awc.plot(dict_wc, title="كل عام وانتم بخير", width=2, height=2)
```
![](examples/happy_eid.png)

Or, read text from a file:

```python
wc = awc.from_file('examples/arabic.txt')
wc.to_file('examples/arabic.png')
```
![](examples/arabic.png)

<hr>

## Using a mask

Also, you can use a mask:

```python
from ar_wordcloud import ArabicWordCloud
from ar_wordcloud.utils import read_mask_image

mask_img = read_mask_image() # NOTE: pass `mask_img_url` param to use a different mask, the default is a heart 
awc = ArabicWordCloud(background_color="white", mask=mask_img, contour_width=4, scale=0.5)

awc.from_file('examples/arabic.txt').to_image()
```

![](examples/heart_mask.png)

<hr>

## Multiple fonts support

It's also possible to choose a different Arabic font:

```python
from ar_wordcloud import ArabicWordCloud

awc = ArabicWordCloud(font='NotoSansArabic-ExtraBold.ttf')

t = f"عيدفطر2020 سعيد، كل عام وانتم بخير"
awc.from_text(t).to_image()
```

![](examples/more_fonts.png)

```python
# To see the available fonts:
print(awc.fonts.available_fonts)
```

> If the entered font name is not correct, there'll be a friendly assertion message:

```bash
AssertionError: بالله أتأكد ان اسم الخط المُدخل صحيح
Please make sure the selected font name is correct!
```

<hr>

TODO:
- [x] support mask plots
- [ ] clean input text (remove punct .. etc)
- [x] support input from file e.g. `awc.from_file(fname)`
- [x] browse available fonts and select favorite
- [ ] fix English font
- [ ] cli support

PRs are welcome, thanks ��

<hr>

Credit: this repo was born from [the discussion in this PR](https://github.com/amueller/word_cloud/pull/315).
oidcpy 0.0.5
OpenID Connect library code
Requires Python: >=3.6

# OIDCPY Package

This is a package that contains Python code to implement an OpenID Connect Provider. You can find the source code on 
[Github](https://github.com/marcelvandendungen/oidcpy).

The `authorize` module contains a decorator that can be applied to a Flask route handler to enforce authorization. You specify the `audience` and `scopes` as arguments to the decorator, like:

```python
@app.route('/', methods=['GET'])
@authorize(audience='http://localhost:5000', scopes='read')
def index(): pass
```