Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Update README.md to use uvx #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ The script includes inline dependencies, so you can run it directly with uv:
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Run the script directly (no virtual environment needed)
uv run token_counter.py <path_or_repo>
# Downloads and runs the script
uvx --from codebase-token-counter token-counter <path_or_repo>
```

### Using pip
Expand All @@ -51,8 +51,8 @@ You can use the script to analyze both local directories and remote Git reposito

```bash
# Using uv (recommended)
uv run token_counter.py https://github.com/username/repo
uv run token_counter.py .
uvx --from codebase-token-counter token-counter https://github.com/username/repo
uvx --from codebase-token-counter token-counter .

# Using traditional python
python token_counter.py https://github.com/username/repo
Expand Down