rocketchat_API

(★ 293)

Python API wrapper for Rocket.Chat

파일 탐색기

  • .coveragerc
  • .deepsource.toml
  • .editorconfig
  • .gitignore
  • bandit.yml
  • CONTRIBUTING.md
  • docker-compose.yml
  • LICENSE.txt
  • pyproject.toml
  • qodana.yaml
  • README.md

# CDN으로 사용하기

jsDelivr

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

명령어 용어집

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

🔍

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 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:

🔍

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:

🔍

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:

🔍

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]}}

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

🔍

until

설명 보기 ▼

Simple shell loop that repeats until it receives zero as return value.

until {{command}}; do :; done

Execute a command until it succeeds:

until ssh {{username}}@{{host}}; do sleep {{2}}; done

Try to connect to an SSH host until gracefully disconnected:

until systemctl is-active {{[-q|--quiet]}} {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}

Wait for a systemd service to be active:

// repository documentation