Metadata-Version: 2.1
Name: tmate
Version: 0.1.3
Summary: tmate implemented by python.
Home-page: https://github.com/drunkdream/pytmate
Author: drunkdream
Author-email: drunkdream@qq.com
License: MIT
Description: # pytmate
        
        ## 什么是tmate
        
        [tmate](https://tmate.io/)是一款可以用于终端分享的工具，同时也提供了平台能力，用户可以使用平台将内网中的终端分享到外网访问。
        
        ## 什么是pytmate
        
        tmate本身只支持类Unix系统（MacOS、Linux等），不支持Windows。而pytmate使用纯Python开发，可以支持全系统，使用也更加方便。
        
        ## 环境要求
        
        * Windows 7以上（推荐使用`Windows 10 1809`以上，低版本不支持`pty`）
        * Linux
        * MacOS
        
        Python版本要求`>=3.6`
        
        ## 安装
        
        ```bash
        $ pip install tmate
        ```
        
        ## 如何使用
        
        ```bash
        $ tmate
        [TMateClient] Connect SSH server ssh.tmate.io:22...
        [Notify] web session read only: https://tmate.io/t/ro-Q5VKGqmt24FxTnUqtdzCZHhtR
        [Notify] ssh session read only: ssh ro-Q5VKGqmt24FxTnUqtdzCZHhtR@xxx.tmate.io
        [Notify] web session: https://tmate.io/t/9bv76cP3W95ftZFbWtYtW4xJ7
        [Notify] ssh session: ssh 9bv76cP3W95ftZFbWtYtW4xJ7@xxx.tmate.io
        
        ```
        
        Web端访问终端可以在浏览器中打开`web session: `后面的URL。
        
        SSH访问可以使用`ssh session: `后面的命令行。
        
        ## 在线调试Github Actions
        
        创建以下workflow：`remote-ssh.yml`
        
        ```yml
        name: Remote-SSH
        on:
          watch:
            types: started
        jobs:
          SSH:
            name: Run on ${{ matrix.os }}
            runs-on: ${{ matrix.os }}
            strategy:
              max-parallel: 4
              matrix:
                python-version: [3.6]
                os: [windows-latest, ubuntu-latest, macOS-latest]
            steps:
              - name: Set up Python ${{ matrix.python-version }}
                uses: actions/setup-python@v1
                with:
                  python-version: ${{ matrix.python-version }}
              - name: Install dependencies
                run: |
                  python -m pip install --upgrade pip
                  python -m pip install -U tmate
              - name: SSH connection to Actions
                run: |
                    python -m tmate
        ```
        
        `Star`项目会自动触发该workflow。
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Intended Audience :: Developers
Requires-Python: >=3.6
Description-Content-Type: text/markdown
