semvec/pypi-packages huggingface dataset:
dbtui 0.0.2
Most popular databases CLI
Requires Python: >=3.10
Keywords: cli,command line interface,database,rdbms,text user interface,tui

# dbtui

[![PyPI - Version](https://img.shields.io/pypi/v/dbtui.svg)](https://pypi.org/project/dbtui)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dbtui.svg)](https://pypi.org/project/dbtui)

-----

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install dbtui
```

## License

`dbtui` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
Html-txt 1.0.0.3
Sending urls get responce as html text

# pyHtml
```bash

# html_txt Function
The html_txt function fetches HTML content from the specified URL, using optional headers and data for the request.
```bash
from your_module import html_txt

url = 'https://example.com'
headers = {
    'User-Agent': 'Your User Agent',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Language': 'en-US,en;q=0.9',
    'Accept-Encoding': 'gzip, deflate, br',
    'Connection': 'keep-alive',
}
data = {'key': 'value'}  # Optional data for POST requests

parsed_html = html_txt(url, headers=headers, data=data) # data for POST requests 
parsed_html = html_txt(url, headers=headers) #  for Get requests 
print(parsed_html)
websocket-trainig 0.1.2
Websocket training project
Requires Python: >=3.11,<4.0

### Installation

    pip install websocket-trainig

### Usage
    
    import uvicorn
    from fastapi import FastAPI
    
    from websocket-trainig.ws_router import connect_ws, get_ws_manager, ConnectionManager
    
    app = FastAPI()
    connect_ws(app)
    
    manager: ConnectionManager = get_ws_manager()
    print(manager.count())
    
    
    if __name__ == '__main__':
        uvicorn.run('main:app')
pybrownies 0.6.0
Little helpers for Python developers
Requires Python: >=3.9,<4
Keywords: helpers

# pybrownies

This is a small library of utilities designed to assist in the creation and maintenance of Python projects. `brownie` performs chores like testing, linting, building, publishing. `pprintenv` shows the shell environment like printenv, but prettier. `whichpy` locates Python packages and modules (like `which` locates program files).


## Installation

A lean install installs just `pprint`, `pprintenv`, and `whichpy`:

```sh
% pip install pybrownies
```

To also get the `brownie` tool and its dependencies to help developing your project, enter

```sh
% pip install pybrownies"[dev]"
```

## Usage

### brownie

To see which `brownie` tasks are available, enter

```sh
% brownie --list
Subcommands:

  clean       Remove non-code from the project.
  covreport   Show the coverage report in the default browser.
  dist        Create the sdist and wheel for the project.
  lint        Runs pylint and flake8 on every Python package within this
              project.
  publish     Publishes the project on TestPyPI, or on PyPI with the --pypi
              option.
  test        Runs all unit tests, optionally with test coverage.
%
```

To obtain more info on what a specific task does, enter e.g.

```bash
% brownie publish -h
Usage: brownie [--core-opts] publish [--options] [other tasks here ...]

Docstring:
  Publishes the project on TestPyPI, or on PyPI with the --pypi option.

Options:
  -p, --pypi   publish on pypi.org instead of test.pypi.org
  -s, --show   show the new page in the web browser
%
```

### pprint

Renders various text file formats to the console. with syntax highlighting. Improves the readability os tructured data such as HTML, JSON, PLIST, XML. Applies syntax highlighting to source code. Displays Markdown files with styles and colors appied.

### pprintenv

Outputs the environment as a table, environment variable names in one column, their values in another. For better readability, the elements of a path list (e.g. PATH) are displayed in individual lines.

### whichpy

To locate modules and packages with `whichpy`, enter e.g.

Modules:

```bash
% whichpy shutil
/home/you/.asdf/installs/python/3.10.10/lib/python3.10/shutil.py
```

Packages:

```bash
% whichpy rich
/home/you/dev/pybrownies/.venv3.10/lib/python3.10/site-packages/rich/__init__.py
```

Modules within packages:

```bash
% whichpy rich.console
/home/you/dev/pybrownies/.venv3.10/lib/python3.10/site-packages/rich/console.py
```

## Credits

`brownie` is basically an [invoke](https://pypi.org/project/invoke/) task library. The colorful output is courtesy of [Rich](https://pypi.org/project/rich/).
dtmd 0.1.0
A tool to convert directory contents to Markdown.


# DTMD (Directory-to-Markdown)

## Overview
DTMD (Directory-to-Markdown) is a Python command-line tool, particularly useful for quickly generating and sharing representations of directory structures and their contents in a structured and readable Markdown format. This makes it ideal for documenting project structures, especially for interactions with language models like ChatGPT.

Markdown is the most token efficient manner to interact with LLM's

## Example output
```bash
dtmd
```

```markdown
# /my_project
## main.py
```python
# Main application file
import app

app.run()
```
## app.py
```python
# App module

def run():
    print('Running the app')
```
## /utils
### helper.py
```python
# Utility functions

def helper():
    return 'Helper function'
```
```

### Features
- Convert directory contents to Markdown format.
- Include or exclude files using patterns (supports fnmatch style, e.g., `*.py`, `data*`).
- Recursive directory parsing.
- Options for output: printing to console, saving to a file, or copying to the clipboard.

## Installation

```bash
pip install dtmd
```

## Usage

Run DTMD from the command line with the following options:

```bash
dtmd <target-directory> [options]
```

If no target directory is specified, DTM will default to the current working directory.

Options:
- `-i` or `--include`: Patterns to include files. Enclose patterns in quotes to avoid shell expansion (e.g., `'*.py'`, `'data*'`).
- `-e` or `--exclude`: Patterns to exclude files. Enclose patterns in quotes to avoid shell expansion (e.g., `'*.xml'`, `'temp*'`).
- `-o` or `--output-file`: Set the output Markdown file name.
- `-r` or `--recursive`: Enable recursive search in directories.
- `-p` or `--print`: Print the output using rich formatting.
- `-c` or `--clipboard`: Copy the output to the clipboard.

## Example

```bash
dtmd myfolder -i '*.py' '*.html' -o output.md -r
```

This command will parse all `.py` and `.html` files in `myfolder` recursively and save the Markdown output to `output.md`.

## Authors

- Adrian Galilea - *Initial work*

## Acknowledgments

- Hat tip to ChatGPT for assistance with project setup and documentation.
topenai 0.0.8
CLI tool to chat with OpenAI GPT

# topenai
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/vladzima/topenai/master) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/vladzima/topenai/release.yml)

topenai (terminal openai) — a simple command line interface tool to interact with OpenAI.

Installation
----------------

`pip install topenai`

[How to get an OpenAI API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-api-key)


[OpenAPI models](https://platform.openai.com/docs/models)

To install the latest testing version (may contain more bugs), run:

    pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ topenai

Features
----------------

- Multiple chat threads
- Chat history
- Rename, delete and switch sessions


Usage
----------------
Run `topenai` in your terminal

- Enter `/new` to start a new chat (`/n`)
- `/switch <chat_id>` to change chat (`/s`)
- `/list` to list all chats (`/l`)
- `/rename <old_id> <new_id>` to rename a chat (`/r`)
- `/delete <chat_id>` to delete a chat (`/d`)
- `/apikey` to change API key
- `/model` to change model
- `/help` to display this help message (`/h`)
- `/exit` to exit (`/e`)

Known issues
----------------
- UUIDs of sessions instead of readable names
- Rename is not working

Developing Setup
----------------

If you want to set this package up for directly editing it's source code (for contributing):

1. ***Clone the package***

        git clone https://github.com/vladzima/topenai

2. ***Create a dynamic link***
    This will make the package dynamically update with your local changes:

        pip install -e .

TODO
----------------
- Make chat history more accesible
- Allow OpenAI API fune-tuning parameters
- Migrate to official OpenAI python API client