Описание
Base千字文
README
Base1000 is a text encoder based on the "Thousand Character Classic", supporting encoding any text into a sequence of "Thousand Character Classic" characters and decoding it back to the original text.
Features
- Encoding: Encode input text into a sequence of "Thousand Character Classic" characters.
- Decoding: Decode a sequence of "Thousand Character Classic" characters back to the original text.
- Python Extension Module: Provides a Python interface for direct usage in Python.
- Command Line Tool: Offers a simple and easy-to-use CLI tool.
Installation
Build with Cargo
Default enabled features (clap, encode, decode)
cargo build --release
Enable Features
clap: Enables command-line tool functionality. Enable it with the following command:cargo build --release --features clappyo3: Enables building the Python extension module. Enable it with the following command:cargo build --release --features pyo3encode: Enables text encoding functionality. Enable it with the following command:cargo build --release --features encodedecode: Enables text decoding functionality. Enable it with the following command:cargo build --release --features decodeEnable multiple features simultaneously:
cargo build --release --features "clap pyo3 encode decode"
Build Python Extension with Maturin
maturin build --release
Usage
Command Line Tool
Encoding
base1000 -e "114514"
Decoding
base1000 -d "夜裳移柰梧"
UVX Direct Execution
You can directly execute the tool using uvx:
uvx git+https://github.com/real-LiHua/Base1000QianZiWenCodec [switch] text
pipx Direct Execution
You can directly execute the tool using pipx:
pipx run --spec git+https://github.com/real-LiHua/Base1000QianZiWenCodec base1000 [switch] text
Model Context Protocol (MCP)
Configuring with Claude
{
"mcpServers": {
"github.com/real-LiHua/Base1000QianZiWenCodec": {
"command": "uvx",
"args": [
"git+https://github.com/real-LiHua/Base1000QianZiWenCodec[mcp]"
],
}
}
}
Configuring with Zed
{
"context_servers": {
"github.com/real-LiHua/Base1000QianZiWenCodec": {
"source": "custom",
"command": {
"path": "uvx",
"args": [
"git+https://github.com/real-LiHua/Base1000QianZiWenCodec[mcp]"
],
"env": null
}
}
}
}
Python Extension
Installation
pip install "git+https://github.com/real-LiHua/Base1000QianZiWenCodec"
Example
from base1000 import base1000
# Encoding
encoded = base1000.encode("114514")
print(encoded)
# Decoding
for decoded in base1000.decode(encoded):
print(decoded)
Testing
Run unit tests:
cargo test
Project Structure
src/lib.rs: Core library implementation.src/main.rs: Command-line tool entry point.src/encode.rs: Encoding implementation.src/decode.rs: Decoding implementation.base1000/__init__.py: Python package initialization.base1000/__main__.py: Python CLI entry point.base1000/_run.py: Python CLI implementation.base1000/base1000.pyi: Python type hint file.
Установка Base1000QianZiWenCodec
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/real-LiHua/Base1000QianZiWenCodecFAQ
Base1000QianZiWenCodec MCP бесплатный?
Да, Base1000QianZiWenCodec MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Base1000QianZiWenCodec?
Нет, Base1000QianZiWenCodec работает без API-ключей и переменных окружения.
Base1000QianZiWenCodec — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Base1000QianZiWenCodec в Claude Desktop, Claude Code или Cursor?
Открой Base1000QianZiWenCodec на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Base1000QianZiWenCodec with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
