semvec/pypi-packages huggingface dataset:
PIPWeb 1.0.0
A Python Library to Generate Dynamic Share Images. Powered by Cloudinary.
Requires Python: >=3.6

# ShareImage
A Python Library to Generate Dynamic Share Images. Powered by **Cloudinary**

## Installation
### Windows
```sh
pip install ShareImage
```
### Linux / macOS
```sh
python3 -m pip install ShareImage
```
## Usage
**ShareImage** Can be easily integrated in any Python Project.
For example, in **Flask**:
```py
from flask import Flask, render_template
from ShareImage import ShareImage

app = Flask(__name__)

@app.route('/')
def index():
    image = ShareImage(
        title="Home",
        cloudName="CLOUDINARY_CLOUD_NAME",
        imagePublicId="CLOUDINARY_IMAGE_ID"
    )
    return render_template('index.html', image=image)
    
@app.route('/posts/<string:slug>')
def posts(slug):
    image = ShareImage(
        title=bySlug.get(slug)['title'],
        cloudName="CLOUDINARY_CLOUD_NAME",
        imagePublicId="CLOUDINARY_IMAGE_ID"
    )
    return render_template('index.html', image=image)

if __name__=="__main__":
    app.run()
```
Now, you can use the `image` variable in any `img` Tag or `og:image`/`twitter:image`/`image` Meta Tags!
**Note**: `CLOUDINARY_CLOUD_NAME` and `CLOUDINARY_IMAGE_ID` are respectedly Your Cloudinary Cloud Name and Image Public Id (Including Folder Name) & the `bySlug` is a Special Variable to find specific posts in a Array of Dictionaries by Slug and it can be achieved by the following Code:
```py
def build_dict(seq, key):
    return dict((d[key], dict(d, index=index)) for (index, d) in enumerate(seq))

bySlug = build_dict(ARRAY_OF_POSTS, key="KEY_OF_SLUG")

# Usage: bySlug(SLUG_OF_POST)['KEY_TO_FIND']
```
kingcow 1.0.1
This is a library for web page parsing and web page requests

# kingcow

## 这是一个用于网页请求、网页解析和爬虫的库

### 网页标签解析

kingcow提供了网页标签的解析，您只需提供标签的名称与属性，他就会返回属性的值

```Python
import kingcow as kc
a = kc.get('https://www.taobao.com/') # 返回一个kingcow.Request对象，使用GET发送请求
print('a.html_tag('a','href'))
```
这段代码会打印出淘宝网首页的所有链接，你可以根据这些链接访问淘宝网的其他站点

### 网页数据解析

kingcow提供网络数据解析，可以快速方便解析网页数据，您只需提供标签和属性(可选)

```Python
import kingcow as kc
a = kc.get('https://docs.python.org/zh-cn/3.8/tutorial/index.html')
a.html_analysis('p')
```
代码会打印出Python官方文档中为标签p的数据

还可以用json类方法获取返回json

### 网页爬取

kingcow提供了Request类以及get,post函数这些请求方法，这几种请求方法的参数大致相同，但get和post中请不要填method。

#### 主要参数说明

url:str类型，为网页地址

data:请求数据，网页指定提交类型为application/x-www-form-urlencoded

json:请求类型，网页指定提交类型为application/json

headers:请求头

method:模式，如GET,POST

code:如果有data参数，会将data参数加密成code编码

ip:使用代理ip

### Spider爬虫

Spider爬虫有两个类，分别为Spider和Spider_For_Threading，我们先来介绍Spider

#### Spider

Spider是一个爬取多个网站的爬虫类，所需的参数大致与Request类相同，不同的是Spider不需要提供url，只需提供url的集合(不是set,是list)，还可以提供step，为爬取间隔。

Spider初始化后不会爬取网站，必须要用户使用Spider.request方法爬取

Spider还有四个类方法（Spider.request除外）:

html_data:网页数据解析

html_tag:网页标签解析

xml_data:xml数据解析

json_get:json标签项提取

json:json提取

#### Spider_For_Threading

Spider_For_Threading是Spider的多线程版本，速度是Spider的四分之一，具体方法同Spider
PMAgg 1.0.0
A matplotlib GUI backend with interactive capabilities
Requires Python: >=3.5

# PMAgg

A matplotlib GUI backend with interactive capabilities.

#### Introduction

PMAgg is a matplotlib backend with richer interactive capabilities, based on PySide2.
It is currently integrated in the open source project [Pyminer](https://gitee.com/py2cn/pyminer), as the default drawing interface, in order to achieve a drawing window similar to matlab.

#### Usage

```python
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
matplotlib.use('module://PMAgg') # switch to PMAgg backend
x=np.linspace(0,2*np.pi,100)
y=x*np.sin(x)
plt.plot(x,y)
plt.show()
```

![](pmagg.png)

Basic function
====================

![](pmagg_api.png)

**Right-click function**: right-click on the curve, legend, text, rectangle, ellipse and other objects to delete the object or modify the style

**save**: Save the drawing in various image formats

**setting**: modify the axis, title, default font, grid, comment style selection

**home**: delete all additional elements, such as rectangles, notes, text, etc.

**front/back**: adjust back the graphics before and after panning

**zoom/pan**: select zoom and pan

**rotate**: 3D rotation, and six orientation views in toolbar 2

**text**: add text, support LaTeX formula

**rect/oval**: add rectangle and ellipse labels, display center coordinates and area, for measurement, etc.

**annotation**: add extra point annotations on the curve, you can make rich style modifications

**grid**: show or hide the grid

**legend**: show or hide the legend

**colormap**: modify the color style of the colorbar
example-pkg-Letsplayworria 0.0.1
Help you to programming faster
Requires Python: >=3.6

# MultiTool
###### README FILE
***
###
> Its a MultiTool python libary that helps you to programm with python much easyer 

#
At first **_import_** MultiTool:

````python

from src import MultiTool as mt
````

###
And now you you can use MultiTool easyly