semvec/pypi-packages huggingface dataset:
gpt-code-ui 0.42.40
An Open Source version of ChatGPT Code Interpreter

<img src="https://github.com/ricklamers/gpt-code-ui/assets/1309307/9ad4061d-2e26-4407-9431-109b650fb022" alt="GPT-Code logo" width=240 />

An open source implementation of OpenAI's ChatGPT [Code interpreter](https://openai.com/blog/chatgpt-plugins#code-interpreter).

Simply ask the OpenAI model to do something and it will generate & execute the code for you.

Read the [blog post](https://ricklamers.io/posts/gpt-code) to find out more.

## Community
Judah Cooper offered to start & curate a Discord community. Join [here](https://discord.gg/ZmTQwpkYu6).

## Installation

Open a terminal and run:

```
pip install gpt-code-ui
gptcode
```

In order to make basic dependencies available it's recommended to run the following `pip` install
in the Python environment that is used in the shell where you run `gptcode`:

```sh
pip install "numpy>=1.24,<1.25" "dateparser>=1.1,<1.2" "pandas>=1.5,<1.6" "geopandas>=0.13,<0.14" "tabulate>=0.9.0<1.0" "PyPDF2>=3.0,<3.1" "pdfminer>=20191125,<20191200" "pdfplumber>=0.9,<0.10" "matplotlib>=3.7,<3.8"
```

## User interface
<img src="https://github.com/ricklamers/gpt-code-ui/assets/1309307/c29c504a-a7ed-4ae0-9360-d7224bc3e3d6" alt="GPT-Code logo" width="100%" />
 
## Features
- File upload
- File download
- Context awareness (it can refer to your previous messages)
- Generate code
- Run code (Python kernel)
- Model switching (GPT-3.5 and GPT-4)

## Misc.
### Using .env for OpenAI key
You can put a .env in the working directory to load the `OPENAI_API_KEY` environment variable.

### Configurables
Set the `API_PORT`, `WEB_PORT`, `SNAKEMQ_PORT` variables to override the defaults.

Set `OPENAI_BASE_URL` to change the OpenAI API endpoint that's being used (note this environment variable includes the protocol `https://...`).

You can use the `.env.example` in the repository (make sure you `git clone` the repo to get the file first).

For Azure OpenAI Services, there are also other configurable variables like deployment name. See `.env.azure-example` for more information.
Note that model selection on the UI is currently not supported for Azure OpenAI Services.

```
cp .env.example .env
vim .env
gptcode
```

### Docker
[localagi](https://github.com/localagi) took the effort of bundling the Python package in a Docker container. Check it out here: [gpt-code-ui-docker](https://github.com/localagi/gpt-code-ui-docker).

## Contributing
Please do and have a look at the [contributions guide](.github/CONTRIBUTING.md)! This should be a community initiative. I'll try my best to be responsive.


Thank you for your interest in this project!
gamer3514 0.1
A small package that does stuff
Requires Python: >=3.7

# Gamer3514

A small package that does stuff

## Installation

```bash
pip install gamer3514
```

## Usage

### Api
```python
from gamer3514 import api
#NSFW Detection
api.detectnsfw(imageurl, apikey)
#Profanity Check
api.profanitycheck(text, apikey)
#Text To Braille
api.texttobraille(text)
#Random Number
api.randomnumber(length)
#Random Topic
api.randomtopic()
#Random Cat Image
api.cat(filepath, apikey)
#Random Cat Gif
api.catgif(filepath, apikey)
#Random Dog Image
api.dog(filepath, apikey)
#Donald Tweet
api.donaldtweet(filepath, text)
```

### Utils
```python
from gamer3514 import utils
#Get Random Number
utils.randomnumber()
#Generate Random Password
utils.genpassword(length)
```

### Random Stuff (No Category)
```python
from gamer3514 import randomstuff
#Huricane Speed To Category
randomstuff.hurricanecategory(speed)
#Random Number (Yes Again)
randomstuff.randomnumber()
#Screen Time Percentage
randomstuff.screentime(hours)
#Get Percentage
randomstuff.getpercentage(number, percentage)
#File Spam
randomstuff.filespam(filepath, sentence, amount)
#Print Spam
randomstuff.printspam(sentence, amount)
#Nice Print
randomstuff.niceprint(sentence)
```

## Resources

- [Discord server](https://discord.gg/3qvpkgWSbF)
- [Free hosting](https://sillydev.co.uk)
- Contact me: gamer@sillydev.co.uk