semvec/pypi-packages huggingface dataset:
python-la 0.97.0
Python linear algebra liabrary
Keywords: python,linear algebra,vector,matrix,field,vector field,span,linear maps,bilinear form,inner product,linear transformation

# python-la : Python linear algebra v=0.97.0
## introduction
The aim of this project is to implement programatically all of the mathematical operations you can in linear algebra, and more so - to implement themt in such a way that it will be written programmatically as close to mathematically as possible

## How to install
```pip install python-la```
## Examples
```python
>> from python_la import Matrix, Span, Vector, PolynomialSimple, LinearMap, RealField, VectorSpace

>> Matrix([[1,2],[3,4]]).gaussian_elimination()
---------
| 1 | 0 |
---------
| 0 | 1 |
---------

>> Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]).characteristic_polynomial
X^3 - 15X^2 - 18X

>> Matrix([[1, 0, 1],[0, 1, 1]]).kernel
[-1, -1, 1]

>> v1, v2 = Vector([3, 4]), Vector([4, 5])
>> Span([v1,v2]).to_orthonormal()
[0.6, 0.8]
[0.8, -0.6]

>> R2 = RealField(2)
>> V = VectorSpace(R2)
>> lm = LinearMap(V, V, lambda vector: Vector([0, vector[0]], R2))
>> x_squared = PolynomialSimple.from_string("x^2")
>> plus_1 = PolynomialSimple.from_string("x+1")
>> v = V.random()
>> P = plus_1(x_squared)
>> P
X^2 + 1
>> P(lm)(v) == v
True
```
jbot 2.1.3a1
一个轻量的异步 QQ 机器人框架
Keywords: qqbot,cqhttp,mirai,bot

# JustBot

![](https://img.shields.io/github/repo-size/WindLeaf233/JustBot)
![](https://img.shields.io/pypi/v/jbot)
![](https://img.shields.io/github/license/WindLeaf233/JustBot)
![](https://img.shields.io/badge/made%20with-%E2%9D%A4-important)

一个轻量的异步 QQ 机器人框架.

---

## 适配器

- [x] <90%> `CQHTTPAdapter`: 对 [`go-cqhttp`](https://github.com/Mrs4s/go-cqhttp) 的实现

- [ ] <20%> `MiraiAdapter`: 对 [`mirai-api-http`](https://github.com/project-mirai/mirai-api-http) 的实现

- [ ] <0%> `TelegramAdapter`: 对[`telegram-bot-api`](https://github.com/eternnoir/pyTelegramBotAPI) 的实现

## 开始使用

```shell
$ pip install jbot
```

用法见 [`USAGE.md`](USAGE.md).

## 待办

- [x] 更便捷的 API
  * [x] MessageEvent#reply
  * [x] BotApplication#receiver
- [x] 加入权限系统, 允许设置对应权限执行
- [ ] 实现插件化
- [ ] 完全实现 `go-cqhttp` 适配器
  * [x] 完善 `NoticeEvent`
  * [ ] 完善 `API`
- [x] 统一化文档
- [ ] 使用 `WebSocket` 通信, 而不是 `HTTP`

## 关于

此项目只是闲暇时间的随手之作, 可能包含让人呕血的代码, 也包含一些 `shitcode`.

部分实现参考了 `GraiaApplication`.

### 相关项目

- [GraiaProject/Application](https://github.com/GraiaProject/Application)
- [Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp)
- [mamoe/mirai](https://github.com/mamoe/mirai)
  * [project-mirai/mirai-api-http](https://github.com/project-mirai/mirai-api-http)
fastapi-paseto-auth 0.6.0
FastAPI extension that provides PASETO Auth support
Requires Python: >=3.10

<h1 align="left" style="margin-bottom: 20px; font-weight: 500; font-size: 50px; color: black;">
  FastAPI PASETO Auth
</h1>

![Tests](https://github.com/Chloe-ko/fastapi-paseto-auth/workflows/Tests/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/Chloe-ko/fastapi-paseto-auth/badge.svg?branch=master)](https://coveralls.io/github/Chloe-ko/fastapi-paseto-auth?branch=master)
[![PyPI version](https://badge.fury.io/py/fastapi-paseto-auth.svg)](https://badge.fury.io/py/fastapi-paseto-auth)
[![Downloads](https://static.pepy.tech/personalized-badge/fastapi-paseto-auth?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/fastapi-paseto-auth)
---

**Documentation**: <a href="https://chloe-ko.github.io/fastapi-paseto-auth" target="_blank">https://chloe-ko.github.io/fastapi-paseto-auth</a>

**Source Code**: <a href="https://github.com/Chloe-ko/fastapi-paseto-auth" target="_blank">https://github.com/Chloe-ko/fastapi-paseto-auth</a>

---

FastAPI extension that provides PASETO (**P**lastform-**A**gnostic **SE**curity **TO**kens) Auth support\
PASETO are a simpler, yet more secure alternative to JWTs.

If you were familiar with flask-jwt-extended or fastapi-jwt-auth this extension suitable for you, as this is forked from fastapi-jwt-auth which in turn used flask-jwt-extended as motivation

## Features
- Access tokens and refresh tokens
- Freshness Tokens
- Revoking Tokens
- Support for adding custom claims to Tokens
- Built-in Base64 Encoding of Tokens
- Custom token types

## Installation
The easiest way to start working with this extension with pip

```bash
pip install fastapi-paseto-auth
```

## Roadmap
- Support for WebSocket authorization

## FAQ
- **Where's support for tokens in cookies?**\
I mostly forked fastapi-jwt-auth because I needed a library to use for authentication using PASETO tokens in my private FastAPI Application. Which is why I only kept the functionality that I personally required.\
Personally, I'm not a fan of saving data in cookies, and cookie support made up a big part of the code which just didn't make sense for me to bother adapting.\
Hence, I likely will not be implementing support for storing PASETO tokens in cookies unless there is a considerable amount of people wanting it.\
However, I will gladly accept PRs implementing tokens in cookies if someone else wants to implement it.

## License
This project is licensed under the terms of the MIT license.
github-token-app 0.2.0
A github app wrapper to generate short lived token

# Github Token App

Github Token App is a package for generating short lived github tokens (expires in 1 hour) with minimum necessary permissions.

Currently, the code generates read and write github token to the specific list of repositories.
- An example of read github token is git clone.
- An example of write github token is git push.


The github token app also provides a CLI which can be used to generate a github token to authenticate to github.

# Installation

```bash
pip install github-token-app
```

## Required Environment Variables

- **BASE64_PRIVATE_PEM_KEY**: This is the private pem key for the github-app encoded in base64.
- **GITHUB_APP_ID**: App ID
- **INSTALLATION_ID**: Installation Id for App/Org Pair (if you don't know, it can be generated from the second step below)


## What the code does?


1. The code is for authenticating a [github app as an installation](https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation). Installations are created from a Github app settings (Install App).

2. Under Install App, click on the account settings. You will find the installation ID in the URL https://github.com/apps/my-app-name/installations/**INSTALLATION_ID**. Set the **INSTALLATION_ID** as environment variable based on your required access.

    Alternatively, the code contains `get_installations` function which can be called by CLI command `gta installations`. It returns a response of list of installations. The `id` attributes in the responses are the installation ids. 

3. Finally, there are three methods read, write and write-pr. That generates token to perform respective actions to specific repositories.


## Commands
- **read**

Generates token which grants read-only access to specified Github Repository

```bash
gta read [list of repositories]
gta read my-private-repo
```

- **write**

Generates token which grants write access to specified Github Repository

```bash
gta write [list of repositories]
gta write my-private-repo
```

- **write-pr**

Generate token which grants write access to specified Github Repository along with permission to create prs.

```bash
gta write-pr [list of repositories]
gta write-pr my-private-repo
```

## Using the generated token

- **Cloning a repository**

```bash
git clone https://x-access-token:$GITHUB_TOKEN@github.com/my-org/my-private-repo.git
```

- **Writing to a repository**

```bash
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/my-org/my-private-repo.git"
git config --global user.email "<>"
git config --global user.name "my-username"
```


## Contribution

Please read the CLA carefully before submitting your contribution to Mercari.
Under any circumstances, by submitting your contribution, you are deemed to accept and agree to be bound by the terms and conditions of the CLA.

https://www.mercari.com/cla/

## License

Copyright 2021 Mercari, Inc.

Licensed under the MIT License.