semvec/pypi-packages huggingface dataset:
pyanalysis 2.4.5
Python Library for pyanalysis.ptsecurity.tech
License: MIT
Requires Python: >=3.6

# Python Library for pyanalysis.ptsecurity.tech

PT PyAnalysis is an analytic system for AppSec processes to inspect python projects by
Positive Technologies.

## Installation

Install it by running
```bash
pip3 install pyanalysis
```

## Behind the organization's proxy

```python3
pa_checker = PaClient(
    username="username", password="password", proxy="http://your-org-proxy.intranet:81"
)
```

## Example usage

The full examples in `\tests` folder both for `sync` and `async` code. Use them as
a reference.


```python
from pyanalysis.client import PaClient
import os

pa_checker = PaClient(
    username=os.getenv("pa_login"), password=os.getenv("pa_password")
)

verdict = pa_checker.find_package("botcity-documents", "0.3.1")
print(verdict)
```

```python
{'status': 'Suspicious',
 'why': ['checked by pyanalysis'],
 'task_id': None,
 'weights_by_versions': {'0.3.1': 250},
 'verdicts_by_versions': {'0.3.1': ['anti_analysis::Obfuscation::Packing::Generic',
   'crypto::base64',
   'host_interaction::subprocess',
   'load_code::setup_py',
   'network::Url']},
 'files': {'bac168fe9913bde36752ab4600e149fc19bb6903c2a4d9008b840d46e904cf96': {'versions': ['0.3.1'],
   'verdicts': ['load_code::setup_py', 'network::Url'],
   'weight': 30},
...,
  '4712e06e2fa77801f18c28453a710ab64e618885aad98fb488c2b80f59613636': {'versions': ['0.3.1'],
   'verdicts': ['anti_analysis::Obfuscation::Packing::Generic',
    'crypto::base64'],
   'weight': 110},
...
},
 'rules_score': {'load_code::setup_py': 10,
  'network::Url': 20,
  'host_interaction::subprocess': 10,
  'anti_analysis::Obfuscation::Packing::Generic': 100,
  'crypto::base64': 10,
  'crypto::base64 + load_code::setup_py': 100},
 'anomalies': {}}
```

```python
# Fmm, file 4712e06e2fa77801f18c28453a710ab64e618885aad98fb488c2b80f59613636 is packed
print(pa_checker.kb_file_bytes("4712e06e2fa77801f18c28453a710ab64e618885aad98fb488c2b80f59613636").decode())
```

```python
import zlib, base64
exec(zlib.decompress(base64.b64decode('eJytV+tzozYQ/85fQa8fA...jFhc3mH0=')))
```

```python
# Do we have an unpacked version?
for child in pa_checker.kb_file_meta("4712e06e2fa77801f18c28453a710ab64e618885aad98fb488c2b80f59613636").get("data").get("children"):
    print("#", child)
    print(pa_checker.kb_file_bytes(child).decode())
```

```python
# bedeb6be112de621869e30b803618a27c89e212411c7ea0222dc42d482b9206f
G=' '
D=''
from typing import List,Optional,Union
I=enumerate
E=len
F=isinstance
A=int
J=IndexError
O=list
M=min
U=str
B=None
V=bool
N=False
W=float
from botcity.document_processing.parser.entry import Entry as K
from botcity.document_processing.parser.matcher import DataTypeMatcher as P
from botcity.document_processing.geometry import Point as C,Polygon as H
def clear(HTgBY):HTgBY._entries.clear()
def Q(HTgBY):
    A=HTgBY;A._entries.sort(key=lambda e:(e.p1.y,e.p1.x))
    for (B,C) in I(A._entries):C.index=B
...
```
zchat 0.1.9
A personal chat agent CLI using Together AI via AirTrain
License: MIT
Requires Python: >=3.8

# Chat Agent CLI

A personal chat agent that interfaces with Together AI through the AirTrain module. This CLI application allows you to have conversations with AI models and stores your chat history locally.

## Features

- Interactive chat with AI powered by Together AI
- Local storage of chat history
- Easy-to-use command-line interface
- Session management (start new chats, continue previous ones)

## Installation

### From Source

```bash
# Clone the repository
git clone https://github.com/your-repo/airtrain.git
cd airtrain/examples/apps/cli/chat_agent

# Install the package
pip install -e .
```

### From PyPI

```bash
pip install zchat
```

## Usage

After installation, you can use the chat agent with the following commands:

```bash
# Start a new chat session
z

# List previous chat sessions
z list

# Continue a previous session (multiple ways):
z 92f31c          # Using a partial session ID directly
z 92              # Even just a few characters will work
z --continue 92   # Using the --continue or -c flag
z -c 92           # Short form

# Show storage info
z info

# Show help
z --help
```

## Configuration

The chat agent can be configured using environment variables:

- `LOCALAGENTS_DIR`: Path to store chat history (default: `~/.localagents`)
- `TOGETHER_API_KEY`: Your Together AI API key (required)

You can set these in your shell or create a `.env` file in your working directory.

Credentials are loaded in the following order:
1. From environment variables
2. From the credentials file at `~/.localagents/credentials/togetherai.json`
3. If not found, the CLI will prompt you to enter your API key and offer to save it

## Requirements

- Python 3.8 or higher
- airtrain package
- Internet connection for AI model access
code-simplify 1.2.4
A python tool library that covers a wide range of common tools to simplify your work and reduce repetitive code.
License: MIT
Keywords: python, http utils, logger utils

# code-simplify
A python tool library that covers a wide range of common tools to simplify your work and reduce repetitive code.


# What is in it
* `http utils` based on `aiohttp`, including `SSE HANDLER`, `HEAD`, `GET`, `POST`, `OPTIONS`, `PUT`, `PATCH`, `DELETE`.
* `logger template` based on logging in std.
* `common crud` based on SQLAlchemy, including `GET`, `LIST`, `CREATE`, `BULK SAVE`, `UPDATE`, `TOTAL`, `GET PAGING`, `DELETE`, `PHYSICAL DELETE`, `EXECUTE SQL`


# How to use
just see [examples](https://github.com/Yaocool/code-simplify/tree/main/examples) package.


# How to install

## PyPI (recommend)
```shell script
$ pip install code-simplify
```


## Local compilation
```shell script
$ git clone git@github.com:Yaocool/code-simplify.git
$ pip install wheel
$ python setup.py bdist_wheel
$ pip install ./dist/code_simplify-*-py3-none-any.whl
```


# Contributors Wall
<a href="https://github.com/Yaocool/code-simplify/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=Yaocool/code-simplify&max=200" />
</a >
otterai-py 0.0.2
Unofficial Otter.ai Python API
License: MIT
Requires Python: >=3.9
Keywords: api, otter, otterai, otterai-py, python

# otterai-py

Unofficial Python API for [otter.ai](http://otter.ai)

**Note:** This project is a fork of [gmchad/otterai-api](https://github.com/gmchad/otterai-api), as the original repository appears to be abandoned. Improvements and updates will be maintained here.

## Contents

-   [Installation](#installation)
-   [Setup](#setup)
-   [APIs](#apis)
    -   [User](#user)
    -   [Speeches](#speeches)
    -   [Speakers](#speakers)
    -   [Folders](#folders)
    -   [Groups](#groups)
    -   [Notifications](#notifications)
-   [Exceptions](#exceptions)
-   [Contribution](#contribution)

## Installation

Install via pip:

```bash
pip install .[dev]
```

or in a virtual environment:

```bash
python3 -m venv env
source env/bin/activate
pip install .[dev]
```

## Setup

```python
from otterai import OtterAI
otter = OtterAI()
otter.login('USERNAME', 'PASSWORD')
```

## APIs

### User

Get user-specific data:

```python
otter.get_user()
```

### Speeches

Get all speeches.

**Optional parameters**: `folder`, `page_size`, `source`

```python
otter.get_speeches()
```

Get a speech by ID:

```python
otter.get_speech(OTID)
```

Query a speech:

```python
otter.query_speech(QUERY, OTID)
```

Upload a speech.

**Optional parameters**: `content_type` (default: `audio/mp4`)

```python
otter.upload_speech(FILE_NAME)
```

Download a speech.

**Optional parameters**: `filename` (default: `id`), `format` (default: all available formats (`txt,pdf,mp3,docx,srt`) as a zip file)

```python
otter.download_speech(OTID, FILE_NAME)
```

Move a speech to the trash:

```python
otter.move_to_trash_bin(OTID)
```

Set speech title:

```python
otter.set_speech_title(OTID, TITLE)
```

#### TODO

-   Start a live speech
-   Stop a live speech
-   Assign a speaker to a speech transcript

### Speakers

Get all speakers:

```python
otter.get_speakers()
```

Create a speaker:

```python
otter.create_speaker(SPEAKER_NAME)
```

### Folders

Get all folders:

```python
otter.get_folders()
```

### Groups

Get all groups:

```python
otter.list_groups()
```

### Notifications

Get notification settings:

```python
otter.get_notification_settings()
```

## Exceptions

```python
from otterai import OtterAIException

try:
    ...
except OtterAIException as e:
    ...
```

## Contribution

To contribute to this project, follow these steps:

1. Create a `.env` file in the root directory with the following content:

    ```plaintext
    OTTERAI_USERNAME=""
    OTTERAI_PASSWORD=""
    TEST_OTTERAI_SPEECH_OTID=""
    ```

    - Replace `OTTERAI_USERNAME` and `OTTERAI_PASSWORD` with your Otter.ai credentials.
    - Replace `TEST_OTTERAI_SPEECH_OTID` with the ID of a speech you create on Otter.ai. This is required for the tests to pass.

2. To run the tests and the `main.py` file, execute the `run.sh` script:

    ```bash
    ./run.sh
    ```

3. Ensure all tests pass and make necessary updates to the tests if you modify or add functionality.

4. Submit a pull request with a clear description of your changes.