semvec/pypi-packages huggingface dataset:
tearex 0.1.3
A Python SDK for the TeaRex API
Requires Python: >=3.6

# TeaRex AI Python SDK 
This package provides a Python SDK for the [tearex.ai](https://tearex.ai) Recommendation Engine API.
If you don't have a tearex.ai account, you can request one here: [tearex.ai](https://tearex.ai/#contact).

## Documentation
For more information about the API, please refer to the [documentation](https://docs.tearex.ai/).

## Installation
To install the SDK, run the following command:
```shell
pip install tearex-ai
```

## Usage
Import the SDK:
```python
import tearex
```

### Initialize the SDK
Provide the url of the API and your API KE as an environment variable `TEAREX_URL` and `TEAREX_API_KEY`, or pass them as an argument to the `init` function:

```python
trx = tearex.Client(uri='YOUR_TEAREX_API_URL', apiKey='YOUR_TEAREX_API_KEY')
```

## Example
```python
import tearex

trx = tearex.Client()

# Define the entities where Alice is a new user and Kale is an existing product.
alice = {"id": "user-1", "label": "User", "properties": {"name": "Alice"}}
kale = {"id": "product-1", "label": "User", "properties": {"name": "Kale"}}

# Create Alice since she is a new user
trx.create_entity(alice)

# Alice purchases Kale, so we create the "Purchased" event
trx.create_event(alice, "Purchased", kale)

# Recommend Alice the next "Product" to purchase
trx.recommend(alice, "Product")
```
xindata-package-test 0.0.1
A test package
Requires Python: >=3.6

# English
This is a CSDN blogger Xin_data test project, mainly used to explain the release of custom module testing.

Note: There is nothing nutritious in the package.
# 中文
这是csdn博主Xin学数据的一个测试项目，主要是用于讲解发布自定义模块测试。
注：包中没有什么有营养的东西。
pobfuscatory 0.0.3
python code obfuscator
Requires Python: >=3.6

# PObfuscatory
python code obfuscator, you can obfuscate a file or an entire project.

# Install
```bash
pip install pobfuscatory
```

# Usage
**Note:**
If your project use not built-in library, you need to install it first.
The obfuscator needs to scan all modules and functions from third-party libraries to exclude the keywords.

```bash
# single file
$ python -m pobfuscatory -s ./single_file/raw/hello_world.py -t ./obfuscated

# whole project
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated

# preserve some key (obfuscator, Keys)
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -e obfuscator Keys

# adjust confuse line insertion, probability (0.0~1.0), repeat number(1~)
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -p 0.5 -r 5
# close confuse line
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -p 0

# open debug log
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -v 1
```

# Examples
**Single file:**
[ [raw](https://github.com/RayOct18/pobfuscatory/blob/main/examples/single_file/raw/hello_world.py) ]
[ [obfuscated](https://github.com/RayOct18/pobfuscatory/blob/main/examples/single_file/obfuscated/VGWPPEYHANJ.py) ]

**Whole project:**
[ [raw](https://github.com/RayOct18/pobfuscatory/tree/main/src/pobfuscatory) ]
[ [obfuscated](https://github.com/RayOct18/pobfuscatory/tree/main/examples/project/obfuscated) ]
campussquare 0.0.11
Campus Square
Requires Python: >=3.6

# CampusSquare

## 使い方

```sh
# 科目名から内部シラバスを検索
python3 main.py syllabus search -s 'コンピュータサイエンス'

# 履修登録している時間割コードの一覧を取得
python3 main.py courses
# 年度:所属コード:時間割コード
# 2021:31:21124229

# 時間割コードから内部シラバスをMarkdownで表示
python3 main.py --markdown syllabus get 2021:31:21124229

# トップページ
python3 main.py top
```
uecauth 0.0.11
UEC Auth
Requires Python: >=3.6

# UEC Auth

電通大のshibboleth認証ライブラリ

## インストール

```sh
pip install uecauth
```

## 使い方

```py
import os
import http.cookiejar
import requests
from uecauth.shibboleth import ShibbolethAuthenticator
from uecauth.password import DefaultPasswordProvider
from uecauth.mfa import AutoTOTPMFAuthCodeProvider

shibboleth = ShibbolethAuthenticator(
    shibboleth_host='shibboleth.cc.uec.ac.jp',
    mfa_code_provider=AutoTOTPMFAuthCodeProvider(os.environ['UEC_MFA_SECRET']),
    password_provider=DefaultPasswordProvider(
        os.environ['UEC_USERNAME'],
        os.environ['UEC_PASSWORD']
    ),
    debug=False,
)

campusweb_url = 'https://campusweb.office.uec.ac.jp/campusweb/ssologin.do'
res = shibboleth.login(campusweb_url)
print(res.url)

# http.LWPCookieJar
cookies: http.cookiejar.LWPCookieJar = shibboleth.get_cookies()
```

### 環境変数

```sh
# UECアカウント
export UEC_USERNAME=""
export UEC_PASSWORD=""
# TOTPの秘密鍵
export UEC_MFA_SECRET=""
```

### ユーザ名、パスワードの取得方法

|||
|---|---|
|`DefaultPasswordProvider`|環境変数等から設定する|
|`PromptingPasswordProvider`|プロンプトから読み取る|

### 二段階認証コードの取得方法

|||
|---|---|
|`PromptingMFAuthCodeProvider`|プロンプトから読み取る|
|`AutoTOTPMFAuthCodeProvider`|秘密鍵を用いて自動生成する|

#### Socks5プロキシで二段階認証を回避する

```sh
ssh sol -D 1080 -N -f
export http_proxy=socks5://localhost:1080
export https_proxy=socks5://localhost:1080
```
easy-flask-swagger 1.0.0
Package used to create flask swagger documentation in few minutes with least possible effort.
Requires Python: >=3.7


![Logo](https://github.com/YashMakan/website-assets/blob/main/1_4ds0jvsMN6eAaWBd4fyL5g.png?raw=true)


# Easy Flask Swagger 

Easy Flask Swagger - Creating flask swagger documentation in few minutes with least possible effort.


## Installation

#### Using PIP

```bash
  pip install easy-flask-swagger
```
## Usage/Examples

```python
from easy_flask_swagger import EasyFlaskSwagger
efs = EasyFlaskSwagger("My Backend Documentation")
efs.setPaths({SwaggerTags.AUTHENTICATION: [signup]})
efs.setSchemas([User])
efs.setDescriptions({
  SwaggerTags.AUTHENTICATION: 'For user authentication'
})
pprint(efs.to_dict())
# And that's it 😁
```


## Run Locally

Clone the project

```bash
  git clone https://github.com/YashMakan/easy-flask-swagger
```

Go to the project directory

```bash
  cd my-project
```

Install dependencies

```bash
  pip install -r requirements.txt
```

Run the tests/test.py file

```bash
  python tests/test.py
```


## Authors

- [@Yash Makan](https://www.github.com/YashMakan)


## MIT License


[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)