semvec/pypi-packages huggingface dataset:
mkdocs-diff-file-import 0.1.6
Import a diff file as MkDocs code block
Requires Python: <4.0,>=3.7

# **mkdocs-diff-file-import** MkDocs Plugin

## Overview

The `mkdocs-diff-file-import` plugin for MkDocs allows you to dynamically replace custom code blocks in your Markdown files with the content of specified files. This plugin is particularly useful for managing and displaying differences between imported code files within your documentation.

## Features

- Configurable code block name to identify sections to be replaced.
- Automatically replaces matching code blocks with the content of specified files during the build process.
- Easy integration with existing MkDocs projects.

## Installation

To install the plugin, you can use `pip`:

```bash
pip install mkdocs-diff-file-import
```

## Configuration

To use the `mkdocs-diff-file-import` plugin, add it to your `mkdocs.yml` configuration file:

```yaml
plugins:
  - search
  - diff-file-import:
      codeblock_name: import-diff-file  # Optional, default is 'import-diff-file'
```

## Usage

In your Markdown files, define code blocks with the specified code block name to be replaced by the plugin. For example:

<pre>
```
import-diff-file file=example.txt
```
</pre>

During the MkDocs build process, these code blocks will be replaced by the content of the specified file.

## Example

Given the following content in a Markdown file:

<pre>
```import-diff-file file=example.diff```
</pre>

The `mkdocs-diff-file-import` plugin will replace this block with the content of `example.diff` inside a diff code block:

<pre>
```diff
[edit routing-instances l3vpn-test]
-    vrf-table-label;
[edit protocols bgp]
+    bgp-error-tolerance {
+        malformed-route-limit 0;
+    }
```
</pre>

<!-- ## Development

### Clone the Repository

```bash
git clone https://github.com/zvfvrv/mkdocs-diff-file-import.git
cd mkdocs-diff-file-import
```

### Install Dependencies

```bash
pip install -r requirements.txt
``` -->

<!-- ### Run Tests

To run tests for the plugin, use the following command:

```bash
pytest
``` -->

## Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure that your code adheres to the project's coding standards and includes appropriate tests.

1. Fork the repository
2. Create a new feature branch (`git checkout -b feature/YourFeature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin feature/YourFeature`)
5. Create a new Pull Request

## License

This project is licensed under the Apache 2.0 License. See the `LICENSE` file for more details.

## Contact

If you have any questions, issues, or suggestions, please open an issue in the GitHub repository.
BcryptRpcServer 0.0.8
The rpc server api of https://github.com/cyal1/BcryptMontoya

# BcryptRpcServer

## install 
pip install BcryptRpcServer

## Basic
```python
import BcryptRpcServer 

def test(a,b,c,d,e):
    print(a,type(a),b,type(b),c,type(c),d,type(d),e,type(e))
    return b'asdf'


@BcryptRpcServer.expose # some thing wrong. not always work
def test2():
    return 'xxx'
    
BcryptRpcServer.expose(test) # recommend
BcryptRpcServer.run("127.0.0.1:30051")
```


## Frida

```python
import BcryptRpcServer 
import time
import frida

def my_message_handler(message, payload):
    print(message)
    print(payload)

def decrypt(arg):
    print(f"decrypt {arg}")
    return script.exports.calldecryptfunction(arg)


def encrypt(arg):
    print(f"encrypt {arg}")
    return script.exports.callencryptfunction(arg)

# device = frida.get_usb_device()
device = frida.get_device_manager().add_remote_device('127.0.0.1:27042')

# pid = device.spawn(["com.example.www"])
# device.resume(pid)
# time.sleep(1)  # Without it Java.perform silently fails
# session = device.attach(pid)

session = device.attach(17982)
with open("python_to_call_function.js") as f:
    script = session.create_script(f.read())
script.on("message", my_message_handler)
script.load()

print(encrypt("test"))
print(decrypt(encrypt("test")))

BcryptRpcServer.expose(decrypt)
BcryptRpcServer.expose(encrypt)

BcryptRpcServer.run("127.0.0.1:30051")

```
aishell-tools 0.1.0
A shell wrapper for building context-aware tools
Requires Python: >=3.8

# AIShell ✨

AIShell is a transparent shell wrapper that allows you to build context-aware tools for your shell environment.


![](./assets/design.png)

## Main Features

- It functions as a transparent shell wrapper, allowing you to use it like any other shell. The key difference is that it captures screen content, including the stdout and stderr of any command, which can then be passed to AI as context.

- `aishell-help` - AI-powered shell context analysis and assistance
- `aishell-quick-help` - Chat with AI without leaving your terminal (without context)


## Installation

```
git clone https://github.com/cccntu/aishell.git
cd aishell
pip install .
```

or 

```
pip install git+https://github.com/cccntu/aishell.git
```

## Usage

- For the tools to work, you need to first start AIShell.
   ```
   aishell
   ```
- Get AI help:
   ```
   aishell-help [--lines N] [--interactive]
   ```
   Analyzes the current shell context and provides AI-powered assistance. Use `--interactive` for a chat-like experience.


- Get quick help (without context):
   ```
   aishell-quick-help [<question>]
   ```
   Quickly get an answer to a shell-related question without leaving your terminal.

## Additional commands
- Get screen state:
   ```
   aishell-get-screen [--print] [--lines N] [--output FILE]
   ```
   Captures the current screen state. Use `--print` to display on stdout, `--lines` to limit output, and `--output` to specify a file.

## Supported shells 

- Currently tested on zsh, bash, and fish.


## Configuration

- AIShell currently only supports OpenAI API. Make sure to set your OpenAI API key (OPENAI_API_KEY) as an environment variable.
- Prompt is defined in `src/aishell/aishell_help.py`

## TODO

- Function Calling
- Configuration (model, prompt, etc)
- Support more API (contributions are welcome)
- Support more shells (contributions are welcome)
- Contribution and feedback are welcome!


## Contributing

Please open an issue before submitting a PR.


## License

MIT


## Acknowledgements

This project is inspired by the following projects:
- [github.com/nvbn/thefuck](https://github.com/nvbn/thefuck)
- [github.com/paul-gauthier/aider](https://github.com/paul-gauthier/aider)
- [github.com/VictorTaelin/ChatSH](https://github.com/VictorTaelin/ChatSH)
indico-plugin-previewer-jupyter 3.3.1
Jupyter notebook rendering for attachments in Indico
Requires Python: <3.13,>=3.12.2

# Jupyter Preview Plugin

This plugin renders Jupyter notebooks nicely as HTML when they are attached as
material to an Indico event.

## Changelog

### 3.3.1

- Use the latest `nbconvert` version

### 3.3

- Support (and require) Python 3.12

### 3.2.1

- Support Python 3.11

### 3.2

- Replace MathJax with Katex for auto math rendering

### 3.0

- Initial release for Indico 3.0