semvec/pypi-packages huggingface dataset:
cardano-method 1.2.0
A basic cubic equation solver
Keywords: algebra,cardano,cardano-method,coefficients,complex,complex numbers,cubic,cubic equation,depressed cubic,equation,imaginary,method,polynomial,quadratic equation,real,roots,square root,zeroes


# cardano-method

[![release](https://img.shields.io/badge/dynamic/json.svg?label=release&url=https://pypi.org/pypi/cardano-method/json&query=%24.info.version&colorB=blue)](https://pypi.org/project/cardano-method/)

A fast, reliable Python library to solve cubic equations of all kinds. You can test out `cardano-method` [in your browser](https://replit.com/@Vndom/CardanoMethod-Playground#main.py).

## How It Works

`cardano-method` implements Gerolamo Cardano's famous method of solving cubic equations - 'Cardano's Method'. Split amongst various stages of processing, this library **mirrors the steps described in Cardano's Method**.

## Installation

```
$ pip install cardano-method
```

## Usage

```python
from cardano_method import CubicEquation

a = CubicEquation([1, 3, 4, 4])

print(a.answers)
# [(-2+0j), (-0.5+1.322875j), (-0.5-1.322875j)]
```

Note that the ``answers`` attribute contains a list of [`complex`](https://docs.python.org/3/library/cmath.html#module-cmath) objects representing the zeroes of the cubic equation.

<!-- ## How It Works

### How -->

<!-- definition of depressed cubic equation (mention that this is a specific case of the generalized idea of a depressed polynomial) -->

<!-- Cardano's Method is a multi-step process that allows the solutions of a cubic equation to be determined. -->

<!-- #### Depression of the Cubic Equation

$$p(x) = \sum_{i=0}^3 a_ix^i = a_3x^3 + a_2x_2 + a_1x_1 + a_0$$

$$p(x) = a(x-\alpha)(x-\beta)(x-\gamma)$$

Notice how $p\left(x-\frac{a_2}{3a_3}\right) = q(x)$! Substituting in  $q$ in terms of $p$ and its coefficients! Making the substitution and simplifying, we get

$$p(x) = a_3x^3 + a_2x^2 + a_1x + a_0$$

$$\Rightarrow p\left(x-\frac{a_2}{3a_3}\right) = q(x) = a_3x^3 + x\left(a_1-\frac{a_2^2}{3a_3}\right) + \left[\frac{2a_2^3}{27a_3^2} - \frac{a_1a_2}{3a_3} + a_0\right]$$

Then, after standardizing the coefficients to 1 and a bit more math and definitions, we arrive at the solutions to the given cubic equation:

$$\Bigg \{\sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}} - \frac{H}{\sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}}} - \frac{a_2}{3a_3},  \sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}}\omega - \frac{H\omega^2}{\sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}}} - \frac{a_2}{3a_3}, \\ 
\sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}}\omega^2 - \frac{H\omega}{\sqrt[3]{\frac{-G + \sqrt{G^2+4H^3}}{2}}} - \frac{a_2}{3a_3}\Bigg \}$$

If this looks complicated, don't worry - we agree too! The CardanoMethod package's ``CubicEquation`` handles all of this on the back-end and abstracts away all of the complex math. -->
openapispecdiff 1.43.9
Difference between two OpenAPISpec files
Requires Python: >=3.5,<4.0

# OpenAPISpecDiff

OpenAPISpecDiff is a Python library for comparing two OpenAPI specs and identifying the difference between them. 

Visit https://www.cloudvector.com/api-shark-free-observability-security-monitoring-tool/#apishark

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install openapispecdiff
```

## Usage

```python openapispecdiff 

****************************************************************************************************
CloudVector APIShark - OpenAPI spec diff checker plugin
****************************************************************************************************
Enter absolute path to Old API SPEC: ../input.json
Enter absolute path to new API SPEC : ../input1.json 
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
collectschedulekgtt 0.0.5
Модуль который использует Google таблицу КГТТ , для получения расписания
Requires Python: >=3.10,<4.0

# ***Получение расписания с Google Таблицы КГТТ***
____
### Установка
```
pip install collectschedulekgtt
```
### Импорт и инициализация
```python
from collectschedulekgtt import Collector

collector = Collector("Название группы")
```
### Пример

```python
collector = Collector("1ИСИП-21-9")
collector.get_image()  # Вернет расписание для группы 1ИСИП-21-9
```
## Примечание
>Важно чтобы таблица была открытой для общего доступа!
## Полезные ссылки
>[Страница на GitHub](https://github.com/DaniEruDai/collectschedulekgtt)
> | [Страница на PyPi](https://pypi.org/project/collectschedulekgtt)
nonebot-plugin-BiliRequestsBarand 0.1.2
use bilibili uid join in group

<p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="260" height="260" alt="nonebot"></a>
</p>

<div align="center"> 

# nonebot_plugin_BiliRequestsBarand

<div>

<div align=left> <div>

## 已实现功能
- 以B站UID审核入群（粉丝牌）

## 使用方法

- 使用pip

```
pip install nonebot_plugin_BiliRequestsBarand
```

- 重新加载插件

## 说明依赖
```
10| import json,time, requests
11| from nonebot import on_request, logger
12| from nonebot.adapters.onebot.v11 import Bot, GroupRequestEvent
```

## 注意事项
```
20| if event.group_id == <群号>: <- 直接替换成要使用的群号
##|                     ^^^^^^^
21|   raw = json.loads(event.json())
22|   gid = str(event.group_id)
23|   uid = str(event.user_id)
24|   flag = raw['flag']
```
```
27| comment = raw['comment']
28| BiliUID = ''.join(filter(str.isdigit,comment))
29| cookies = {"cookie": "<你的cookie>"}  <- 填入cookie
                          ^^^^^^^^^^^^
```

```
34| # 同意入群
35| if '<粉丝牌子名>' in response: <- 直接替换成粉丝牌名
##|    ^^^^^^^^^^^^
36|   logger.info(f"同意{uid}加入群 {gid},验证消息为 “{comment}”")
37|   await bot.set_group_add_request(
38|     flag=flag,
39|     sub_type=sub_type,
40|     approve=True,
41|     reason=' ',
42|   )
43| # 拒绝入群
44| if '<粉丝牌子名>' not in response: <- 直接替换成粉丝牌名
##|    ^^^^^^^^^^^^
45|   logger.info(f"拒绝{uid}加入群 {gid},验证消息为 “{comment}”")
46|   await bot.set_group_add_request(
47|     flag=flag,
48|     sub_type=sub_type,
49|    approve=False,
50|     reason='未获得粉丝牌或未打开展示设置',
51|   )
```

### 未来计划
- Tips：如果在不咕的情况下 
  - 实现单插件分群管理
  - 实现切换审核模式（粉丝/持有粉丝牌/等）

#### 反馈问题
- 邮箱：anonymous_hax@foxmail.com