Skip to main content

Sandboxed file CLI with fixed webhook curl and safe helpers (ls/cat/find/grep/sleep).

Project description

liasdfiosql

샌드박스 디렉터리에서 안전하게 파일을 둘러보고, 고정된 웹훅으로 결과를 전송할 수 있는 경량 CLI입니다.

  • 실행: liasdfio ... 또는 python -m liasdfiosql ...
  • 기본 루트: ./workspace (존재하지 않으면 생성)

설치

pip install liasdfiosql

사용법

liasdfio --help
liasdfio ls                     # 루트 목록
liasdfio cat path/to/file.txt   # 파일 출력
liasdfio find --name "*.py"     # 이름 패턴으로 찾기
liasdfio grep "TODO" --glob "*.py" -i
liasdfio sleep 2                # 최대 300초 대기
# 고정된 웹훅으로 요청 보내기 (응답 최대 1MB 출력)
liasdfio curl
# 다른 명령어 결과를 쿼리스트링(result=...)으로 전송
liasdfio curl --query-cmd ls
liasdfio curl --query-cmd grep TODO --glob "*.py"

동작 제한

  • 루트 밖으로 나가는 경로는 거부
  • 읽기/응답은 1MB 초과 시 차단
  • curl은 http/https만 허용, URL은 고정됨
  • sleep은 300초 이내만 허용

개발

python -m venv .venv
.venv\Scripts\activate
pip install -e ".[test]"
pytest

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

liasdfiosql-0.4.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

liasdfiosql-0.4.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file liasdfiosql-0.4.0.tar.gz.

File metadata

  • Download URL: liasdfiosql-0.4.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for liasdfiosql-0.4.0.tar.gz
Algorithm Hash digest
SHA256 888c9a33181e6724d36a6450c3201908e9234ad19793c573b63b6318f6e335b5
MD5 138d6d977a0dfef9d014b99541180570
BLAKE2b-256 2e488d04500c84a351355bf20de95aeeedd080556baa0467eb600d08d438a2bc

See more details on using hashes here.

File details

Details for the file liasdfiosql-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: liasdfiosql-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for liasdfiosql-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e65aee3a1d09695d0316120cbfd218868d788545693caeabb7c0ab892838077
MD5 833f80a73a127e943cf62be030fced0b
BLAKE2b-256 61798afcfc4bc9850d1db11a3bab788097b0d52c20777c57aeefdc81652c83b7

See more details on using hashes here.

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