Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clilap_codepush-2.0.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clilap_codepush-2.0.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file clilap_codepush-2.0.0.tar.gz.

File metadata

  • Download URL: clilap_codepush-2.0.0.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

Hashes for clilap_codepush-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8d34bf4fe4b83358e61a4b3432c3cb22fcc0ab1b00523c89f46d0093ddb5e094
MD5 f6a2748b0e6afe8c2a62dfe5dfdc6b39
BLAKE2b-256 079e8546a76cebf06ed4900a47a0e6ec3cc6096959a98848f88dc52d06ce97a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for clilap_codepush-2.0.0.tar.gz:

Publisher: publish.yml on Lapius7/clilap-codepush

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clilap_codepush-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: clilap_codepush-2.0.0-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

Hashes for clilap_codepush-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b34af90ae42ca286ee5cda444e4d6603ea45a752938e08bc3d84ddc9f54344
MD5 7ef78a2d66044942981a9ccd5cdf4f39
BLAKE2b-256 4c87ddd2ac049742ca188dbf910f2bc64f6347ca22632125065bdb9e6ad0c016

See more details on using hashes here.

Provenance

The following attestation bundles were made for clilap_codepush-2.0.0-py3-none-any.whl:

Publisher: publish.yml on Lapius7/clilap-codepush

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page