xithsense

(★ 33)

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

File Explorer

  • .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

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

alembic

View Details ▼

Database migration tool for SQLAlchemy.

alembic init {{path/to/directory}}

Initialize Alembic in a project:

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

Create a new migration script with autogeneration:

alembic upgrade head

Upgrade the database to the latest revision:

🔍

black

View Details ▼

Format Python code automatically.
See also: `ruff`.

black {{path/to/file_or_directory}}

Auto-format a file or entire directory:

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

Format the code passed in as a string:

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

Show whether a file or a directory would have changes made to them if they were to be formatted:

🔍

docker compose down

View Details ▼

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 Details ▼

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

View Details ▼

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

View Details ▼

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

View Details ▼

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

View Details ▼

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

View Details ▼

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

View Details ▼

A fast and multi-purpose HTTP toolkit written in Go to run multiple probes at once.
Note: Not to be confused with the unrelated Python's HTTPX which has the same command name.

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

Run a probe against a [u]RL, host, IP Address or subnet (CIDR notation) showing probe status:

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

Run a probe against multiple hosts showing status code with input from `subfinder`:

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

Run a rate limited probe against a list of hosts from a file showing technology detected and response time:

🔍

openai

View Details ▼

CLI tool providing access to the OpenAI API.

openai api models.list

List models:

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

Create a completion:

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

Create a chat completion:

🔍

pip install

View Details ▼

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

View Details ▼

Create Git hooks that run before commits.

pre-commit install

Install pre-commit into your Git hooks:

pre-commit run

Run pre-commit hooks on all staged files:

pre-commit run --all-files

Run pre-commit hooks on all files, staged or unstaged:

🔍

pytest

View Details ▼

Run Python tests.

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

Run tests from specific files:

pytest -k {{expression}}

Run tests with names matching a specific [k]eyword expression:

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

Exit as soon as a test fails or encounters an error:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

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

Execute a specific Python file:

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

Execute a specific Python file and start a REPL:

🔍

ruff

View Details ▼

An extremely fast Python linter and code formatter, written in Rust.
See also: `black`.

tldr ruff check

View documentation for the Ruff linter:

tldr ruff format

View documentation for the Ruff code formatter:

🔍

uvicorn

View Details ▼

Python ASGI HTTP Server, for asynchronous projects.

uvicorn {{import.path:app_object}}

Run Python web app:

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

Listen on port 8080 on localhost:

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

Turn on live reload:

// repository documentation