semvec/pypi-packages huggingface dataset:
nonebot_session_to_uninfo 0.0.2
session 插件到 uninfo 插件的 orm 迁移工具
License: MIT
Requires Python: <4.0,>=3.9

# nonebot-session-to-uninfo

[nonebot-plugin-session-orm](https://github.com/noneplugin/nonebot-plugin-session-orm) 到 [nonebot-plugin-uninfo](https://github.com/RF-Tar-Railt/nonebot-plugin-uninfo) 的数据库迁移脚本

### 使用方式

如果你的项目的数据库用到了 `nonebot-plugin-session-orm`，并且希望迁移到 `nonebot-plugin-uninfo`，本脚本可以帮助迁移

本脚本提供了 `check_tables` `get_id_map` 方法，可以在迁移脚本中调用。

`check_tables` 用于检查 `session-orm` 和 `uninfo` 插件的表是否均已创建，
并创建 `nonebot_session_to_uninfo_id_map` 表，用于记录 `session-orm` 和 `uninfo` 插件 的 `session_persist_id` 的对应关系。

`get_id_map` 用于获取 `session_persist_id` 的对应关系字典，传入 `session-orm` 插件的 `session_persist_id` 列表，
返回 `session-orm` 到 `uninfo` 的 `session_persist_id` 对应关系字典。

具体使用方式可以参考 [60dbbe448c16_data_migrate.py](https://github.com/noneplugin/nonebot-plugin-memes/blob/main/nonebot_plugin_memes/migrations/60dbbe448c16_data_migrate.py)
npm-registry-time-machine 1.0.11
Proxy for limiting the release dates of packages
License: MIT
Requires Python: >=3.9.9
Keywords: npm, registry, time-machine

# NPM registry time machine

Proxy for limiting the release dates of packages.

## Usage

Run proxy:
```bash
npm-registry-time-machine --port 3000 --registry https://registry.npmjs.org --timeout 120 --max-date 2022-02-02 --trusted-packages jsx-add-data-test-id
```

Set proxy as registry:
```bash
npm config set registry http://127.0.0.1:3000
```

Now all packages with a release date exceeding the maximum date are hidden for npm.

## How it works

This tool is a proxy between npm and the registry. The proxy receives requests from npm and sends them to the registry. Information about packages with a release date exceeding the maximum date is removed from the response. After that, the response is returned to npm. Therefore, npm uses only those packages that were released no later than the maximum date.
swytchit 0.2.1
Switch environment context easily in the shell
License: MIT
Requires Python: <3.12,>=3.11

# Swytchit

Context switching made easy for shell geeks

## Usage

```bash
sw your/project/directory
```

- Performs a `cd` operation to the project
- Starts a subshell
- Within the subshell, runs `source` on `.swytchitrc.sh` files in the project directory and any ancestor directories

Use the `exit` command when done with the project to exit the subshell and clear the environment.

Note that `.swytchitrc.sh` can support any source operation, including:

- Set environment variables
- Define aliases
- Define functions

## Why?

- Easily switch virtual environments for scripting languages (Python, Ruby, etc)
- Easily populate project-specific environment variables and aliases
- Use with the `op` CLI from 1Password to keep project-specific secrets in memory

## Installation (MacOS)

```bash
brew install python3.11
python3.11 -m pip install pipx
pipx install swytchit
```

Also do a profile/rc song and dance something like this:

```bash
echo 'if [[ -n $SWYTCHITRC ]]; then source $SWYTCHITRC; fi' >> $ZDOTDIR/.zshrc
source $ZDOTDIR/.zshrc
```

(use e.g. `.profile` or `.bashrc` if not on `zsh`)


## Rules

- Only works in TTY shell (no piping)
- Only works for a descendent of user's home directory
- Resolves symlinks first

<a href="https://www.flaticon.com/free-icons/rabbit">Icon by Flaticon</a>