File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,6 @@ treemapper . --tokens --copy # tokens + clipboard
7272- ` o200k_harmony ` — GPT-4.1/newer models tokenizer
7373- ` cl100k_base ` — GPT-4/GPT-3.5 tokenizer
7474
75- ** Installation:**
76- ``` bash
77- pip install treemapper[tokens] # exact counts with tiktoken
78- pip install treemapper # fallback: chars/4 approximation
79- ```
80-
8175Token count is displayed on stderr only when connected to a TTY (won't break pipes).
8276
8377## Clipboard Support
Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ warn_no_return = true
3535warn_unreachable = true
3636files = [" src" ]
3737
38- [[tool .mypy .overrides ]]
39- module = " tiktoken"
40- ignore_missing_imports = true
41-
4238[tool .commitizen ]
4339name = " cz_conventional_commits"
4440version_provider = " pep621"
@@ -74,6 +70,7 @@ classifiers = [
7470dependencies = [
7571 " pathspec>=0.11,<2.0" ,
7672 " pyyaml>=6.0.2,<8.0" ,
73+ " tiktoken>=0.7,<1.0" ,
7774]
7875
7976[project .urls ]
@@ -83,9 +80,6 @@ Homepage = "https://github.com/nikolay-e/treemapper"
8380treemapper = " treemapper.treemapper:main"
8481
8582[project .optional-dependencies ]
86- tokens = [
87- " tiktoken>=0.7,<1.0" ,
88- ]
8983dev = [
9084 # Testing
9185 " pytest>=7.0,<9.0" ,
You can’t perform that action at this time.
0 commit comments