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

Uploaded Python 3

File details

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

File metadata

  • Download URL: liasdfiosql-0.3.0.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.3.0.tar.gz
Algorithm Hash digest
SHA256 66dc30e16d43354b89087358b2f812d0269ce04bd20a207a6e8e4bfbd3d332b2
MD5 46958a63d56f7b3907efe93c408c6d39
BLAKE2b-256 c15711e8fd4985c117291c153a175a3c6c7fc9cb396c2575b37472c4959d37d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liasdfiosql-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2baca3a42e8eb685ac8c689cc000ba462c4ee5435f48cda641ef2aa2c433f7d
MD5 b61611e31de6818788380ac422b30948
BLAKE2b-256 160080c6d833e3eb6b2e9a73a76564ce10941a5999876739bfd3a8223e8cb2fc

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