npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

trsinstall-python

v1.2.0

Published

Automated installer for TRS Python application with Python 3.12 - supports local copy or remote download. Includes PowerShell one-liner for Windows.

Readme

trsinstall-python

自动化安装 TRS Python 应用程序,包括:

  • 复制/下载文件到 C:\python3
  • 安装 Python 3.12.1
  • 使用清华镜像源安装 pymysql、jieba、paramiko

提供两种安装方式:

  • npm 包方式 - 需要 Node.js,适合开发者
  • PowerShell 脚本方式 - Windows 原生,不需要额外依赖(推荐)

方式一:PowerShell 一键安装(推荐,不需要 Node.js)

install.ps1 和所有 Python 文件一起上传到你的服务器,然后用户只需要在 PowerShell 中运行:

$env:REMOTE_BASE_URL = "https://your-server.com/path/to/files/"; iex (irm $env:REMOTE_BASE_URL/install.ps1)

或者用批处理文件 install.bat

set REMOTE_BASE_URL=https://your-server.com/path/to/files/
install.bat

就是这样! Windows 自带 PowerShell,不需要安装任何东西,直接运行就行。


方式二:npm 包方式

需要先安装 Node.js,然后:

npm install -g trsinstall-python

本地使用(从本地目录复制)

trsinstall

默认从 D:\Work\日常更新\trsinsert-python3 复制文件。

远程使用(从你的服务器下载)

首先将 trsinsert-python3 目录下的所有文件上传到你的服务器(例如 https://your-server.com/files/trsinsert-python3/),然后运行:

Windows CMD:

set REMOTE_BASE_URL=https://your-server.com/files/trsinsert-python3/ && trsinstall

PowerShell:

$env:REMOTE_BASE_URL = "https://your-server.com/files/trsinsert-python3/"; trsinstall

Git Bash / WSL:

REMOTE_BASE_URL=https://your-server.com/files/trsinsert-python3/ trsinstall

安装说明

  1. 安装过程中会自动打开 Python 安装程序,请按照提示完成安装
  2. 推荐选项:
    • Install for all users (安装到 C:\Python312)
    • 勾选 "Add Python to PATH"
  3. 安装完成后会自动继续安装依赖包

文件列表

需要在服务器上提供以下文件:

  • Clear0file.py
  • TRSExecute.py
  • TrsIntoNews.py
  • TrsIntoNews2.py
  • TrsIntoNews3.py
  • TrsIntoWeibo.py
  • ftptrans.py
  • get_process.py
  • killpythonw.bat
  • python-3.12.1-amd64.exe (约 26MB)
  • stop_words.txt
  • update_keywords.py

启动程序

安装完成后,可以用以下命令启动程序:

python C:/python3/TRSExecute.py hostname,execute

许可证

MIT