semvec/pypi-packages huggingface dataset:
extract-samples 1.0.3
random sample each file path
Requires Python: >=3.6

# overview

- 폴더 별로 필요한 파일 수를 추출하는 함수

```text
    Args:
        folder_list (list): 파일 경로 목록
        count_list (list): 폴더 별로 추출할 파일 수 목록
        path_count (int): 경로를 구성하는 '/' 개수

    Returns:
        list: 추출된 파일 경로 목록

    Example:
        위와 같은 경로가 있을 때
        "최하위 폴더에서 1개씩 가져온다."라는 조건이라면
        extract_sample(file_path_list, [1], 3)

        "object1-1에 존재하는 파일 중 랜덤으로 1개를 가져온다."라는 조건이라면
        extract_sample(file_path_list, [1], 2)

        "object1-1-1 >> 2개
        object1-1-2 >> 3개
        object1-1-3 >> 1개
        순으로 가져온다."라는 조건이라면
        extract_sample(file_path_list, [2, 3, 1], 3)
```
zamm 0.0.5
General automation driver
Requires Python: >=3.9,<4.0

# ZAMM

This is an informal automation tool where you show GPT how to do something, and have it do it for you afterwards. This is good for boring but straightforward tasks that you haven't gotten around to writing a proper script to automate.

We are entering a time when our target audiences may include machines as well as humans. As such, this tool will generate tutorials that you can edit to make pleasant for both humans and LLMs alike to read.

**This is an experimental tool, and has only been run on WSL Ubuntu so far.** It seems to work ok on the specific examples below. YMMV. Please feel free to add issues or PRs.

## Quickstart

`pipx` recommended over `pip` for install because it should allow you to run this with a different version of `langchain` than the one you might have installed:

```bash
pipx install zamm
```

Teach GPT to do something:

```bash
zamm teach
```

You will be roleplaying the LLM. The results of your interaction will be output as a Markdown tutorial file, which you can then edit to be more human-readable. See [this example](zamm/resources/tutorials/hello.md) of teaching the LLM how to create a "Hello world" script.

Afterwards, you can tell the LLM to do a slightly different task using that same tutorial:

```bash
zamm execute --task 'Write a script goodbye.sh that prints out "Goodbye world". Execute it.' --documentation zamm/resources/tutorials/hello.md
```

This results in [this example transcript](demos/hello-transcript.md) of LLM interactions. **Note that GPT successfully generalizes from the tutorial to code in a completely different language based just on the difference in filenames.** Imagine having to manually add that feature to a script!

### Using internal tutorials

Select any of the [prepackaged tutorials](zamm/resources/tutorials/) as documentation by prefacing their filename with `@internal`. The `.md` extension is optional.

For example:

```bash
zamm execute --task 'Protect the `main` branch' --documentation @internal/branch-protection
```

to protect the `main` branch of the project in the current directory on Github. (Note that this tutorial was written in mind for ZAMM-built projects, so YMMV for using this on custom projects.)

### Sessions

Sessions are recorded in case a crash happens, or if you want to change something up. On Linux, sessions are saved to `~/.local/share/zamm/sessions/`. To continue from the most recent session, run

```bash
zamm teach --last-session
```

### Free-styling

You can also simply tell the LLM to do something without teaching it to do so beforehand. However, this is a lot more brittle. An example of a free-style command that works:

```bash
zamm execute --task 'Write a script hello.py that prints out "Hello world". Execute it.'
```

The resulting transcript can be found [here](demos/freestyle-hello-transcript.md).

## Prompting

When a step is failing and you need faster iteration by repeatedly testing a single prompt, you can do so with the `prompt` command. First, write your prompt out to a file on disk. Then run this command:

```bash
zamm prompt --stop '\n' --raw <path-to-prompt>
```
ziion 1.0.8
ziion-cli provides an easy way to manage rust and solc packages for ARM and AMD.

# Installation

## Pre-Requisites

- Debian 11
- python3.10
- pip3.10
- cargo-update

## Install python3.10

1. Ensure that your system is updated and the required packages installed.

`sudo apt update && sudo apt upgrade -y`

1. Install the required dependencies:

`sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev`

1. get python3.10 tar.gz

`wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz`

`tar -xf Python-3.10.*.tgz`

`cd Python-3.10.*/`

`./configure --enable-optimizations`

`make -j4`

`sudo make altinstall`

## **Install Cargo and Solc prerequisites**

1. `sudo apt install lsb-release wget software-properties-common gnupg pkg-config libssl-dev build-essential cmake git libboost-all-dev libjsoncpp-dev jq`

## Install rust

1. `wget -O rustup.sh https://sh.rustup.rs`
2. `bash rustup.sh -y`
3. `source "$HOME/.cargo/env"`

## Install cargo-update

`cargo install cargo-update`

## Install ziion cli

`sudo pip3.10 install ziion`

## Upgrade ziion cli

`sudo pip3.10 install ziion -U`

# How to use it

## ARM/AMD
`ziion --help`: Show help message and exit.
`ziion --version`: Show version message and exit.
`ziion list-metapackages`: List metapackages that can be updated with the cli and exit.
`ziion self-update`: Update ziion cli to latest version and exit.

## ARM
`ziion update [cargo|solc] [--dryrun]`: 
    - If cargo|solc packages are installed: Update cargo|solc packages to the latest version if needed.
    - If cargo|solc packages are not installed: Install latest version of cargo|solc packages. 
`ziion solc-select [version] [--install]`:
    - Changes solc's current version to be used.
    - if --install is provided the installation of the specified version is forced.
`ziion solc-select versions`: Shows installed version and the one which is currently in use.

## AMD
`ziion update [cargo] [--dryrun]`:
    - If cargo packages are installed: Update cargo packages to the latest version if needed.
    - If cargo packages are not installed: Install latest version of cargo packages.
md2shunn 0.9.1
Converts Markdown (.md) files into Proper Manuscript Format for fiction writers (a.k.a. Shunn Format, https://www.shunn.net/format/) as a Word (.docx) file.
Requires Python: >=3.7

# md2shunn

Converts Markdown (.md) files into Proper Manuscript Format for fiction writers
(a.k.a. Shunn Format, https://www.shunn.net/format/) as a Word (.docx) file.

## Example usage

```
md2shunn --input draft01.md --author 'Edgar Allan Poe' --title 'The Tell-Tale Heart'
# Outputs to draft01.docx
```

## Features

* Automatic conversion of straight to smart quotes and apostrophes
* Automatic word count
* Automatic conversion of full title and author to truncated versions for header
* Supports both [Modern](https://www.shunn.net/format/story/) and [Classic](https://www.shunn.net/format/classic/) formats via `--format` flag
typar 0.1.0
Fully-typed combinatorial parsing library in Python
Requires Python: >=3.10

# typar

A fully-typed combinatorial parsing library in Python.

## Installation

```shell
pip install typar
```

## Example

Execute `python -m typar.example` to run the example below:

```python
import typar

year = typar.regex("[0-9]{4}")
month = typar.regex("[0-9]{2}")
day = typar.regex("[0-9]{2}")
dash = typar.string("-")
fulldate = year + dash + month + dash + day << typar.eof()
print(fulldate.parse("2019-01-01"))
# Result(index=10, value=(((('2019', '-'), '01'), '-'), '01'))
print(fulldate.parse("2019-01-01x"))
# Result(index=10, value=<ERR>)
```
hpc2ml 0.0.2
Crystal extension for pytorch_geometric
Requires Python: >=3.6

# hpc2ml

#### 介绍

HPC to ml

#### 软件架构

软件架构说明

#### 安装教程

1. xxxx
2. xxxx
3. xxxx

#### 使用说明

1. xxxx
2. xxxx
3. xxxx

#### 参与贡献

1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request

#### 特技

1. 使用 Readme\_XXX.md 来支持不同的语言，例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)