clilap.org codepush — CLI client with interactive TUI
Project description
clilap-codepush
codepush.clilap.org のCLIクライアント。ファイルのアップロード・取得・管理をターミナル上のインタラクティブTUIで操作できます。
インストール
pipx install clilap-codepush
pipxがない場合:pip install pipxでインストールするか、pip install clilap-codepush --break-system-packagesでも可。
使い方
インタラクティブメニュー(推奨)
codepush
矢印キーで項目を選択し Enter で実行。Ctrl+C で終了。
コマンドライン
codepush upload <file> # ファイルをアップロード
codepush get <id> # ファイルを取得(stdout 出力)
codepush myfiles # 自分のファイル一覧
codepush diff # 2ファイルの差分表示
codepush health # サーバー状態確認
機能
| 機能 | 説明 |
|---|---|
| アップロード | テキスト・コード・zipなど。有効期限を設定可能(無期限/1時間/1日/7日/30日/カスタム) |
| ダウンロード | IDを指定してファイルをstdoutまたはファイルに保存 |
| 自分のファイル | アップロード済みファイルの一覧・詳細・削除・上書き |
| Diff | 2つのペーストの差分をカラー表示 |
| Health | サーバーの稼働状態・DB状態・総ファイル数を確認 |
有効期限のカスタム指定
3d12h # 3日12時間
2h30m # 2時間30分
90m # 90分
7200s # 7200秒(= 2時間)
7200 # 数字のみは秒として扱う
管理キーについて
アップロード時に発行される管理キー(delete_key)は ~/.config/clilap-codepush/keys.json に自動保存されます。「自分のファイル」メニューから削除・上書きが可能です。
curlでの操作例:
# 上書き
curl codepush.clilap.org/cp/<id> -F file=@new.py -F key=<delete_key>
# 削除
curl codepush.clilap.org/cp -X DELETE -d key=<delete_key>
# 統計
curl codepush.clilap.org/cp/stats/<id>
環境変数
| 変数 | デフォルト | 説明 |
|---|---|---|
CODEPUSH_URL |
https://codepush.clilap.org |
APIのベースURL |
動作環境
- Python 3.9 以上
- Windows / macOS / Linux(WSL含む)
- クリップボードコピー:
xclip/xsel/wl-copy(Linux)、pbcopy(macOS)、標準(Windows)
ライセンス
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clilap_codepush-1.0.33.tar.gz.
File metadata
- Download URL: clilap_codepush-1.0.33.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d088eb83e0c760037f3b48a14e214caec61becb2fba9b1022aff90c008bdbdbd
|
|
| MD5 |
3229306c661c6be04d59d4f0a82237d6
|
|
| BLAKE2b-256 |
d581f009925a86e3c1d10bedddb3db3d7b50784e78470db299952ec60feff59a
|
Provenance
The following attestation bundles were made for clilap_codepush-1.0.33.tar.gz:
Publisher:
publish.yml on Lapius7/clilap-codepush
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clilap_codepush-1.0.33.tar.gz -
Subject digest:
d088eb83e0c760037f3b48a14e214caec61becb2fba9b1022aff90c008bdbdbd - Sigstore transparency entry: 1840912933
- Sigstore integration time:
-
Permalink:
Lapius7/clilap-codepush@b2f7a149bac2e52299de6bab3e475791f60184b2 -
Branch / Tag:
refs/tags/v1.0.33 - Owner: https://github.com/Lapius7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b2f7a149bac2e52299de6bab3e475791f60184b2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file clilap_codepush-1.0.33-py3-none-any.whl.
File metadata
- Download URL: clilap_codepush-1.0.33-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97e8eec144288dc0734af31f484f340b0c26e94884790be0095550c3544dfb52
|
|
| MD5 |
35b437954ca73eeed3de0b0b2c15f52f
|
|
| BLAKE2b-256 |
7cdd6de12c163795f92919d6917de11b0006d0df8a9a252f8e88d091cbb4ffc8
|
Provenance
The following attestation bundles were made for clilap_codepush-1.0.33-py3-none-any.whl:
Publisher:
publish.yml on Lapius7/clilap-codepush
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clilap_codepush-1.0.33-py3-none-any.whl -
Subject digest:
97e8eec144288dc0734af31f484f340b0c26e94884790be0095550c3544dfb52 - Sigstore transparency entry: 1840912961
- Sigstore integration time:
-
Permalink:
Lapius7/clilap-codepush@b2f7a149bac2e52299de6bab3e475791f60184b2 -
Branch / Tag:
refs/tags/v1.0.33 - Owner: https://github.com/Lapius7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b2f7a149bac2e52299de6bab3e475791f60184b2 -
Trigger Event:
push
-
Statement type: