semvec/pypi-packages huggingface dataset:
aissist 0.1.0
A simple GPT command line chat interface
Requires Python: >=3.7

# AI Assistant

[![Test AIssist](https://github.com/craigmbooth/aissist/actions/workflows/on-push.yml/badge.svg?branch=master&event=push)](https://github.com/craigmbooth/aissist/actions/workflows/on-push.yml)

AIssist is a simple, but capable command-line-interface (CLI) to chat with OpenAI's cutting-edge AI models.

Install me with `pip install aissist`.  Set the `OPENAI_API_KEY` environment variable to be your OpenAI API key, then type `ai`.

## Why AIssist?

This library was written to scratch a personal itch.  I have found GPT 3.5 to be incredibly useful in my day-to-day coding activities, but also found that having to go to a web browser and interact there was tedious.  What I really wanted was a tool that would:

1. Be accessible from a simple command line prompt (`ai`)
1. That single command should open up a shell to interact with ChatGPT, with the system already prompted to respond tersely but helpfully to coding questions
1. Have chat history accessible with the up arrow
1. Have syntax highlighting on ChatGPT responses
1. Have multi-line editing capabilities on multi-line prompts

This library is precisely that.

## Installation

Install using pypi with

```bash
pip install aissist
```

There is one required environment variable, `OPENAI_API_KEY`, which should contain an OpenAI API key. `aissist` will prompt you if the key is not set or is invalid.

## Usage

Invoke the program with `ai`.  Various pieces of configuration can be edited with command-line parameters, list these with `ai --help`.

Once launched, simply enter a prompt, and hit ESCAPE then ENTER to submit the prompt.

Inside of each session there is a history, and you can use the up arrow to revisit and edit previous prompts.

Here is a simple example

![An example of using aissist to write Python](https://github.com/craigmbooth/aissist/raw/master/images/screenshot.png)

## Configuration

On first run, `aissist` will write a configuration file (`.aissist`) to your home directory.  This file contains a number of configuration options that can be edited.  Each configuration option matches precisely to a command-line argument.  The orde of precedence for taking an option value is

1. Command-line argument
2. `.aissist` setting
3. Default setting

## Versioning

AIssist follows semantic versioning thus you should expect that:

* If the patch version is increased, only bugfixes have taken place
* If the minor version is increased, only additive changes have been made to the program.  Your existing workflows will work fine.
* If the major version is increased, the user may notice backward incompatible changes, or feature deprecations.
libfhe 0.0.1
Python wrapper for libfhe
Requires Python: >=3.11
Keywords: cryptography,fhe,Homomorphic Encryption

# pylibfhe

Python wrapper for [libfhe](https://libfhe.org)

# Dependencies

* [libfhe](https://git.libfhe.org) - See [INSTALL](https://git.libfhe.org/core/libfhe/-/blob/main/INSTALL) for build instructions

* GNU multiprecision libraries

```bash
apt install -y libgmp-dev libmpfr-dev libmpc-dev
```

# Installing (PyPI)

```bash
pip install libfhe
```

# Building from Source

```bash
git clone https://git.libfhe.org/core/libfhe.git
cd libfhe/python
python setup.py install
cd tests && py.test # run test suite
```
kaar-gpt 0.1.0
OpenAI API wrapper
Requires Python: >=3.7

# GPT

## Getting Started

### Installation

Kaar GPT is available as [`kaar-gpt`](https://pypi.org/project/kaar-gpt/) on PyPI:
```bash
pip install kaar-gpt
```

## Usage
```python
from gpt.openai import ChatCompletion, ChatCompletionRequest, ChatMessage
```
geovis-upload-sdk 0.0.3
geovis upload file sdk
Requires Python: >=3.7
Keywords: python,menu,dumb_menu,windows,mac,linux

# 使用
```
from geovis_upload_sdk import Uploader

uploader = Uploader(hostURL, appKey, secretKey)
result = uploader.upload(categoryId, file)
```



## 1 安装

```shell
pip uninstall geovis_upload_sdk

pip install geovis_upload_sdk==0.0.1

```



## 2 测试、编译和上传

### 2.1 本地测试

```shell
python setup.py develop
```



编译tar.gz：

```shell
python setup.py sdist
```





编译whl：

```
pip install wheel
python setup.py bdist_wheel
```



检查

```shell
python setup.py check 
```



上传到pypi：

```shell
pip install twine
twine upload dist/*
```



## 更新日志

`0.0.1` 基础版测试
`0.0.2` 支持分片上传
`0.0.3` 优化
django-auth-dingding 0.0.3
A simple Dingding auth Django app.
Requires Python: >=3.7

### Dingo-Auth-Dingding

a dingding app auth django app. you should have follow this [section](https://open.dingtalk.com/document/orgapp/tutorial-obtaining-user-personal-information) to configure dingding app.

#### Quick start

1. Add "polls" to your INSTALLED_APPS setting like this::

```python
 INSTALLED_APPS = [
 ...
 'django_auth_dingding',
 ]
```

2. Include the URLconf in your project urls.py like this::

```python
path('dingding/', include("django_auth_dingding.urls")),
```

3. Add ding_user_id field to User Model like this::

```python
from django.contrib.auth.models import AbstractUser

class Users(AbstractUser):
    ...
    ding_user_id = models.CharField("钉钉UserID", max_length=64, blank=True)
```

4. Setting config in your django's settings.py like this::

```python
INSTALLED_APPS += ("django_auth_dingding",)
AUTHENTICATION_BACKENDS = (
    "django_auth_dingding.auth.DingdingAuthenticationBackend",
    "django.contrib.auth.backends.ModelBackend",
)
DINGDING_AUTH_AUTHENTICATION_CALLBACK_URL = env("DINGDING_AUTH_AUTHENTICATION_CALLBACK_URL")
DINGDING_AUTH_APP_KEY = env("DINGDING_AUTH_APP_KEY")
DINGDING_AUTH_APP_SECRET = env("DINGDING_AUTH_APP_SECRET")
```

5. Run `python manage.py migrate` to Modify the User models.

6. Browser visit `http://{host}:{port}/dingding/authenticate/` will redirect to dingding auth page
xthread 0.0.2
Useful threading for pause/unpause and terminating
Requires Python: >=3.7
Keywords: thread,threading

<p align="center">
  <img width="420px" src="https://i.ibb.co/0BPYdRk/xthread.png" alt='xthread'>
</p>
<p align="center">
    <em>Threading for human.</em>
</p>
<p align="center">
    <a href="https://github.com/magiskboy/xthread/actions">
        <img src="https://github.com/magiskboy/xthread/actions/workflows/test-suite.yml/badge.svg" alt="Build Status">
    </a>
    <a href="https://codecov.io/gh/magiskboy/xthread" > 
        <img src="https://codecov.io/gh/magiskboy/xthread/branch/master/graph/badge.svg?token=uXPvINHpRs"/> 
    </a>
    <a href="https://pypi.org/project/xthread/">
        <img src="https://img.shields.io/pypi/dd/xthread" alt="Download PyPi">
    </a>
    <a href="https://github.com/magiskboy/xthread/blob/main/LICENSE">
        <img src="https://img.shields.io/github/license/magiskboy/xthread" alt="MIT">
    </a>
    <a href="https://pypi.org/project/xthread/">
        <img src="https://img.shields.io/pypi/pyversions/xthread" alt="Py version">
    </a>
    <a href="https://pypi.org/project/xthread/">
        <img src="https://img.shields.io/pypi/v/xthread" alt="PyPi version">
    </a>
</p>


## Features

Some of main features:

- Support pause/unpause
- Support termination thread non-preemtively

## Installation

You can install xthread from PyPi

```bash
$ pip install xthread
```

## Usage

```python
import time
from xthread import Thread

def target(executor):
    print("Running...")
    time.sleep(1)

thread = Thread(target)

# Running...
# Running...

thread.pause()

thread.unpause()

# Running...
# Running...

thread.stop()
```