xithsense

(★ 33)

XIthSense fuses human cricket expertise with AI to predict, optimize, and explain winning fantasy cricket teams in real time.

파일 탐색기

  • .env.example
  • .gitignore
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • docker-compose.yml
  • Dockerfile
  • implementation_plan.md
  • LICENSE
  • Makefile
  • README.md
  • requirements-dev.txt
  • requirements.txt

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

alembic

설명 보기 ▼

SQLAlchemy를 위한 데이터베이스 마이그레이션 도구.
더 많은 정보: <https://manned.org/alembic>.

alembic init {{path/to/directory}}

프로젝트에서 Alembic을 초기화:

alembic revision --autogenerate -m "{{message}}"

자동생성 기능을 사용해 새로운 마이그레이션 스크립트를 생성:

alembic upgrade head

데이터베이스를 최신 리비전으로 업그레이드:

🔍

black

설명 보기 ▼

Python 자동 코드 formatter.
관련 항목: `ruff`.
더 많은 정보: <https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html>.

black {{path/to/file_or_directory}}

파일 또는 전체 디렉토리의 자동 포맷:

black {{[-c|--code]}} "{{code}}"

전달된 코드를 문자열로 포맷:

black --check {{path/to/file_or_directory}}

파일을 다시 쓰지 않고 상태 반환:

🔍

docker compose down

설명 보기 ▼

Stop and remove containers, networks, images, and volumes created by `docker compose up`.

docker compose down

Stop and remove all containers and networks:

docker compose down --rmi all

Stop and remove containers, networks, and all images used by services:

docker compose down --rmi local

Stop and remove containers, networks, and only images without a custom tag:

🔍

docker compose logs

설명 보기 ▼

View output from containers in a Docker Compose application.

docker compose logs

View logs for all services:

docker compose logs {{service_name}}

View logs for a specific service:

docker compose logs {{[-f|--follow]}}

View logs and follow new output (like `tail --follow`):

🔍

docker compose up

설명 보기 ▼

Start and run Docker services defined in a Compose file.

docker compose up

Start all services defined in the docker-compose file:

docker compose up {{[-d|--detach]}}

Start services in the background (detached mode):

docker compose up --build

Start services and rebuild images before starting:

🔍

docker compose

설명 보기 ▼

Run and manage multi container Docker applications.

docker compose ps

List all running containers:

docker compose up {{[-d|--detach]}}

Create and start all containers in the background using a `docker-compose.yml` file from the current directory:

docker compose up --build

Start all containers, rebuild if necessary:

🔍

git checkout

설명 보기 ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git push

설명 보기 ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

httpx

설명 보기 ▼

여러 프로브를 한 번에 실행하기 위해 Go로 작성된 빠르고 다목적 HTTP 도구 키트.
참고: 동일한 명령 이름을 가진 관련 없는 Python's HTTPX와 혼동하지 말것.
더 많은 정보: <https://docs.projectdiscovery.io/opensource/httpx/running>.

httpx -probe {{[-u|-target]}} {{url|host|ipaddress|subnet_with_cidr}}

프로브 상태를 표시하는 [u]RL, 호스트, IP 주소 또는 서브넷 (CIDR 표기법)에 대해 프로브를 실행:

subfinder {{[-d|-domain]}} {{example.com}} | httpx {{[-sc|-status-code]}}

`subfinder`의 입력으로 상태 코드([s]tatus [c]ode)를 표시하는 여러 호스트에 대해 프로브를 실행:

httpx {{[-rl|-rate-limit]}} {{150}} {{[-l|-list]}} {{path/to/newline_separated_hosts_list}} {{[-td|-tech-detect]}} {{[-rt|-response-time]}}

감지된([d]etected) 기술([t]echnology) 및 응답시간([r]esponse [t]ime)을 보여주는 파일에서 호스트 목록([l]ist)에 대해 제한된 속도로 실행:

🔍

openai

설명 보기 ▼

OpenAI API에 접근할 수 있는 CLI 도구.
더 많은 정보: <https://github.com/openai/openai-python>.

openai api models.list

모델 나열:

openai api completions.create --model {{ada}} --prompt "{{Hello world}}"

완료 생성:

openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}

채팅 완료 생성:

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

pre-commit

설명 보기 ▼

커밋 전에 실행되는 Git 훅을 생성.
더 많은 정보: <https://pre-commit.com/#command-line-interface>.

pre-commit install

Git 훅에 pre-commit 설치:

pre-commit run

모든 스테이지된 파일에 pre-commit 훅 실행:

pre-commit run --all-files

스테이지 여부와 상관없이 모든 파일에 pre-commit 훅 실행:

🔍

pytest

설명 보기 ▼

Python 테스트 실행.
더 많은 정보: <https://docs.pytest.org/en/latest/how-to/usage.html>.

pytest {{path/to/test_file1.py path/to/test_file2.py ...}}

특정 파일에서 테스트 실행:

pytest -k {{expression}}

특정 [k]eyword 표현식과 일치하는 테스트 실행:

pytest {{[-x|--exitfirst]}}

테스트가 실패하거나 오류가 발생하면 즉시 종료:

🔍

python

설명 보기 ▼

Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.

python

REPL(대화형 셸) 시작:

python {{path/to/file.py}}

특정 Python 파일 실행:

python -i {{path/to/file.py}}

특정 Python 파일 실행 후 REPL 시작:

🔍

ruff

설명 보기 ▼

매우 빠른 Python 린터 및 코드 포매터로, Rust로 작성되었습니다.
관련 항목: `black`.
더 많은 정보: <https://docs.astral.sh/ruff/tutorial/>.

tldr ruff check

Ruff 린터에 대한 문서 보기:

tldr ruff format

Ruff 코드 포매터에 대한 문서 보기:

🔍

uvicorn

설명 보기 ▼

비동기 프로젝트를 위한 Python ASGI HTTP 서버.
더 많은 정보: <https://www.uvicorn.org/settings/>.

uvicorn {{import.path:app_object}}

Python 웹 앱 실행:

uvicorn --host {{localhost}} --port {{8080}} {{import.path:app_object}}

localhost에서 포트 8080으로 수신 대기:

uvicorn --reload {{import.path:app_object}}

라이브 리로드 활성화:

// repository documentation