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

Uploaded Python 3

File details

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

File metadata

  • Download URL: liasdfiosql-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 d3926d6f4de607265e841b41eb6210c7e3baa21af5389f73d03463bd7be2ca1e
MD5 4c73f2cdff6d9068e66270e64337d25f
BLAKE2b-256 46ac7c0af817ba744c47446542e72c54d5ad7a6e5945dad0e644c2a6917389c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liasdfiosql-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd68aa73a72e945584eb24c19a49a95f723fadc101ea24619bae441e417fb5c
MD5 061490ecd865d3c65a9be151a5afe673
BLAKE2b-256 8b7dda8da5e1fa16ac32d104e9081dea7d3f4fef3bf60fb1080169d7c8a8b017

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