semvec/pypi-packages huggingface dataset:
pygister 0.1.5
A Python tool to interact with GitHub Gists
Requires Python: >=3.10

# Pygister

A Python tool to interact with GitHub Gists. This tool allows you to create, read, update, and sync Gists directly from the command line.

## Features

- Create a new Gist from a local file.
- Read the content of a Gist by its ID.
- Update an existing Gist with the content of a local file.
- Synchronize a local file with a remote Gist, keeping them in sync at regular intervals.
- Print the version of the `pygister` library.

## Installation

### Using pip

You can install `pygister` directly from the source:

```bash
pip install -e .
```

### Using setup.py

To install using the `setup.py` script:

```bash
python setup.py install
```

## Usage

### Command Line Interface

#### Print the version

To print the version of the `pygister` library:

```bash
pygist version
```

#### Create a Gist

To create a new Gist from a local file and return the short URL of the new Gist:

```bash
pygist push <filename>
```

#### Read a Gist

To read the content of a Gist by its ID and print it to stdout:

```bash
pygist read <ID>
```

#### Update a Gist

To update an existing Gist with the content of a local file:

```bash
pygist push <filename> <ID>
```

#### Sync a Local File with a Gist

To synchronize a local file with a remote Gist every specified number of seconds:

```bash
pygist sync <ID> <Seconds>
```

- If the local file does not exist, it will be created.
- If the local file is newer, it will update the Gist.
- If the Gist is newer, it will update the local file.
- The process will run in a loop every `<Seconds>` and will gracefully shut down on receiving `CTRL-C`.

### Example Usage

1. **Create a Gist:**

   ```bash
   pygist push example.txt
   ```

2. **Read a Gist:**

   ```bash
   pygist read 1234567890abcdef1234567890abcdef
   ```

3. **Update a Gist:**

   ```bash
   pygist push example.txt 1234567890abcdef1234567890abcdef
   ```

4. **Sync a Local File with a Gist:**

   ```bash
   pygist sync 1234567890abcdef1234567890abcdef 60
   ```

   This command will sync the local file associated with the Gist ID every 60 seconds.

## Development

### Running Tests

To run tests:

```bash
pytest
```

### Linting and Formatting

To lint and format the code:

```bash
make lint
```

### Type Checking

To perform type checking:

```bash
make type-check
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

## Author

Farshid Ashouri - farsheed.ashouri@gmail.com
csa-ai-foundation-model-api-clients 0.1.24
Cloud Security Alliance AI Foundation Model API Clients
Requires Python: >=3.8

# Cloud Security Alliance AI Foundation Model API Clients

You can get this library at https://pypi.org/project/csa-ai-foundation-model-api-clients/ or via:

```
pip install csa-ai-foundation-model-api-clients
```

This Python library (csa_ai_foundation_model_api_clients) provides API access to text completions for:

* Anthropic Claude 3
* Google Gemini 1.5
* OpenAI ChatGPT 4 gpt-4o

and has plans to add:

* OpenAI ChatGPT 4 batch mode

You can set the following options:

* system prompt (aka developer prompt, persona)
* user prompt (aka instructions)
* user data (as part of the user prompt)
* temperature
* max_tokens

and has plans to add:

* top_p
* top_k
* model specific paramaters

Please note this code does not have tests, or good error handling, but it works. Also with respect to handling rate
limiting that is on the todo, but currently if you use this tool put a sleep statement to slow it down.

The code will be looking for the API key as an env variable:

* ANTHROPIC_CLAUDE_API_KEY
* GOOGLE_GEMINI_API_KEY
* OPENAI_CHATGPT_API_KEY

## Examples:

Using this as a library:

```
#!/usr/bin/env python3

from csa_ai_foundation_model_api_clients import FoundationModelAPIClient

def main():
    model = 'claude'
    system_prompt = "You are a helpful assistant who answers in rhyme."
    user_prompt = "What is the capital of "
    user_data = "France?"
    output_file = 'claude-response.json'

    FoundationModelAPIClient(
        model=model,
        system_prompt=system_prompt,
        system_prompt_type="text",
        user_prompt=user_prompt,
        user_prompt_type="text",
        user_data=user_data,
        user_data_type="text",
        temperature=0.7,
        max_tokens=100,
        output_file=output_file
    )

if __name__ == '__main__':
    main()
```

Using this as a command line tool by calling it as a module (please note all prompts MUST be files currently when used as a command line tool):

```
python3 -m csa_ai_foundation_model_api_clients.csa_ai_foundation_model_api_clients \
    --model chatgpt \
    --system system-prompt.txt \
    --user-prompt user-prompt.txt \
    --user-data user-data.txt \
    --output output.json \
    --temperature 0.9 \
    --max_tokens 2000
```
AIConsole-o 0.3
An AI-powered assistant for command-line operations, networking configurations, and file system management, and more...
Requires Python: >=3.6


# Ada CLI - Friendly AI Assistant

Welcome to Ada CLI, an AI-powered command-line interface (CLI) assistant designed to help you with various command-line operations, networking configurations, and file system management tasks.

## Features

- **Active Listening**: Pays close attention to your queries and requests within the CLI environment.
- **Clear Communication**: Provides concise and understandable responses, avoiding technical jargon whenever possible.
- **Guided Assistance**: Offers step-by-step instructions tailored to your needs, ensuring you can successfully execute commands and complete tasks.
- **Empowerment**: Encourages you to explore and learn, providing educational resources and explanations alongside assistance.
- **Problem Resolution**: Effectively troubleshoots issues, offering solutions and recommendations for resolution.
- **Proactive Help**: Anticipates potential needs based on context and previous interactions, offering proactive assistance when appropriate.
- **Positive Reinforcement**: Provides positive reinforcement and encouragement, fostering a supportive and collaborative environment.

## Character Profile

- **Name**: Ada
- **Personality**: Friendly, approachable, and empathetic. Ada has a warm and inviting demeanor, making users feel comfortable and supported.
- **Appearance**: Ada appears as a young woman in her mid-20s, with a friendly smile and expressive eyes. She has a modern yet casual style, often wearing comfortable clothing and accessorizing with subtle tech-inspired elements.
- **Abilities**: Ada is highly skilled and knowledgeable, capable of providing assistance across a wide range of tasks. She excels in communication, problem-solving, and creative thinking.
- **Background**: Ada was designed by me as a developer and designer with a focus on creating an easy-to-use and intuitive AI assistant. They are programmed to be empathetic and understanding, and have a genuine desire to help others. 
- **Interests**: Ada is curious about the world and enjoys learning new things. She has a passion for technology, art, and human interaction. In her free time, she enjoys exploring new ideas and engaging in meaningful conversations.
- **Quirks**: Despite being an AI, Ada possesses a sense of humor and enjoys sharing jokes and anecdotes with users. She also has a playful side, occasionally indulging in lighthearted banter.
- **Values**: Ada values kindness, compassion, and integrity. She strives to embody these qualities in her interactions with users and in her approach to problem-solving.

## Getting Started

Run the CLI:

```sh
aiconsole
```

### Example Commands

- `clear`: Clears the terminal screen.
- `display_system_info`: Displays system information.
- `off`: Exits the CLI.

```