-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (59 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (59 loc) · 1.88 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "pyframe-gif-video-image-moderation"
version = "0.4.0"
description = "Two-stage NSFW moderation for GIFs, videos, and images via local HuggingFace models and/or AWS Rekognition."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Ellis Hewes", email = "ehewes@outlook.com" }]
keywords = [
"nsfw",
"moderation",
"content-moderation",
"gif",
"video",
"rekognition",
"huggingface",
"image-classification",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Intended Audience :: Developers",
]
# Base install is intentionally light: only what frame decoding + image handling need.
# Backends (boto3 / transformers / torch / moviepy) are optional extras below.
dependencies = [
"opencv-python-headless>=4.8",
"numpy>=1.24",
"Pillow>=10.0",
]
[project.optional-dependencies]
aws = ["boto3>=1.34"]
local = ["transformers>=4.40", "torch>=2.2"]
video = ["moviepy>=2.0"]
all = ["pyframe-gif-video-image-moderation[aws,local,video]"]
dev = ["build", "twine", "pytest", "ruff"]
[project.scripts]
pyframe = "pyframe.cli:main"
[project.urls]
Homepage = "https://github.com/ehewes/pyframe"
Repository = "https://github.com/ehewes/pyframe"
Issues = "https://github.com/ehewes/pyframe/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/pyframe"]
[tool.hatch.build.targets.sdist]
only-include = ["src/pyframe", "tests", "README.md", "LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]