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.2.tar.gz (5.9 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.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liasdfiosql-0.4.2.tar.gz
  • Upload date:
  • Size: 5.9 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.2.tar.gz
Algorithm Hash digest
SHA256 feca765b6c8100eaadb82d20c6ac6ec4519efe5e7bff1a8bbfcc208fb261609f
MD5 fa34a908c0a64d9522446df98617b647
BLAKE2b-256 7884e64c45c7b0bc4ba085306baed1b7f9d26643031b59304342a4c0f5beb2eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liasdfiosql-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d87cf271eaaaee4b45156b26a07e1fb6d3982a3c3f0ae79be0c7ad3cad2384e1
MD5 0ff1fc587243d608f5a265c6a3cfe71a
BLAKE2b-256 d88f4a42bcd051149cd983214f8e907428277ac0decb64ef7654f94ffcdc02b0

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