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.1.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.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liasdfiosql-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d3541af10f17e620b344165db8ef2204e287511b9a6324f0e5d63b6ab1667d8f
MD5 a6285c74ba8cc167bfb0f191691dc38d
BLAKE2b-256 877e8949e807a3544cba85c7c89ad67dbe43f8d8145384581ed3bb1bb26c8629

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liasdfiosql-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 791f0f89b4d9d3a3be5deb9270e8aa2d2fcc75c43639502fda4062879157fdce
MD5 1ec47092f43f9beb39b67abe9a7e2256
BLAKE2b-256 aea8a1a520dc9e1aaf5a6d9cdd400791b9e5c633c58e9ecd2895190ab8eb8352

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