-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (74 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
80 lines (74 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[project]
name = "imgsearch"
dynamic = ["version"]
description = "ImgSearch is a lightweight reverse image search engine built on TinyCLIP and HNSWlib."
keywords = [
"image-search",
"search-by-image",
"reverse-image-search",
"image-recognition",
"hnsw",
"clip",
"open-clip",
"tiny-clip"
]
readme = "README.md"
license-files = ["LICENSE"]
authors = [{ name = "Seamile", email = "lanhuermao@gmail.com" }]
classifiers = [
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
requires-python = ">=3.11"
dependencies = [
"bidict>=0.23.1",
"hnswlib>=0.8.0",
"msgpack>=1.1.1",
"pillow>=11.3.0",
"psutil>=7.1.0",
"pyro5>=5.15",
]
[project.optional-dependencies]
all = [
# PyTorch
"torch==2.2.2; sys_platform=='darwin' and platform_machine=='x86_64'",
"torch>=2.8.0; sys_platform!='darwin' or platform_machine!='x86_64'",
"torchvision>=0.17.2", # dependi: disable-check
# NumPy
"numpy<2; sys_platform=='darwin' and platform_machine=='x86_64'",
"numpy>=1.24.0; sys_platform!='darwin' or platform_machine!='x86_64'",
# TinyCLIP dependencies
"ftfy>=6.3.1",
"huggingface-hub>=0.35.1",
"regex>=2025.9.18",
"timm>=1.0.20",
"tqdm>=4.67.1",
]
[dependency-groups]
dev = [
"ipython>=9.5.0",
"pytest>=8.4.2",
]
[project.scripts]
isearch = "imgsearch.client:main"
[project.urls]
homepage = "https://github.com/seamile/imgsearch"
repository = "https://github.com/seamile/imgsearch"
documentation = "https://seamile.github.io/ImgSearch/"
[build-system]
requires = ["setuptools>=60.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["imgsearch*", "tinyclip*"]
[tool.setuptools.package-data]
"tinyclip" = ["*.gz", "model_configs/*.json"]
[tool.setuptools.dynamic]
version = { attr = "imgsearch.__version__" }