summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 02:48:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 02:48:28 +0000
commit967edd1260c30d7e120032d2e0b80e17143513a9 (patch)
tree6063bf256294610af0a8974de457483c18da321c
parent7b92bb2795796d03c3ff286994680b0e9e497c55 (diff)
automatic import of python-hypertag
-rw-r--r--.gitignore1
-rw-r--r--python-hypertag.spec790
-rw-r--r--sources1
3 files changed, 792 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f0b15e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hypertag-0.6.3.3.1.tar.gz
diff --git a/python-hypertag.spec b/python-hypertag.spec
new file mode 100644
index 0000000..989cc5d
--- /dev/null
+++ b/python-hypertag.spec
@@ -0,0 +1,790 @@
+%global _empty_manifest_terminate_build 0
+Name: python-hypertag
+Version: 0.6.3.3.1
+Release: 1
+Summary: File organization made for humans
+License: MIT
+URL: https://github.com/SeanPedersen/HyperTag
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/be/2f/c64f6c8a38e54ebc0be51de35ea7cabe9cf492c3ec526d4fd5a7b488a53d/hypertag-0.6.3.3.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-fire
+Requires: python3-tqdm
+Requires: python3-filetype
+Requires: python3-watchdog
+Requires: python3-cairocffi
+Requires: python3-fuzzywuzzy[speedup]
+Requires: python3-PyPDF2
+Requires: python3-wordninja
+Requires: python3-ftfy
+Requires: python3-textract
+Requires: python3-sentence-transformers
+Requires: python3-rpyc
+Requires: python3-torchvision
+Requires: python3-Pillow
+Requires: python3-pywebcopy
+Requires: python3-hnswlib
+
+%description
+# HyperTag
+
+HyperTag helps humans intuitively express how they think about their files using tags and machine learning. Represent how you think using tags. Find what you look for using semantic search for your text documents (yes, even PDF's) and images. Instead of introducing proprietary file formats like other existing file organization tools, HyperTag just smoothly layers on top of your existing files without any fuss.
+
+**Objective Function**: Minimize time between a thought and access to all relevant files.
+
+Accompanying blog post: https://blog.neotree.uber.space/posts/hypertag-file-organization-made-for-humans
+
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+**Table of Contents**
+- [HyperTag](#hypertag)
+ - [Install](#install)
+ - [Community](#community)
+ - [Overview](#overview)
+ - [CLI Functions](#cli-functions)
+ - [Import existing directory recursively](#import-existing-directory-recursively)
+ - [Add file/s or URL/s manually](#add-files-or-urls-manually)
+ - [Tag file/s (with values)](#tag-files--with-values)
+ - [Untag file/s](#untag-files)
+ - [Tag a tag](#tag-a-tag)
+ - [Merge tags](#merge-tags)
+ - [Query using Set Theory](#query-using-set-theory)
+ - [Index supported image and text files](#index-supported-image-and-text-files)
+ - [Semantic search for text files](#semantic-search-for-text-files)
+ - [Semantic search for image files](#semantic-search-for-image-files)
+ - [Start HyperTag Daemon](#start-hypertag-daemon)
+ - [Print all tags of file/s](#print-all-tags-of-files)
+ - [Print all metatags of tag/s](#print-all-metatags-of-tags)
+ - [Print all tags](#print-all-tags)
+ - [Print all files](#print-all-files)
+ - [Visualize HyperTag Graph](#visualize-hypertag-graph)
+ - [Generate HyperTagFS](#generate-hypertagfs)
+ - [Add directory to auto import list](#add-directory-to-auto-import-list)
+ - [Set HyperTagFS directory path](#set-hypertagfs-directory-path)
+ - [Architecture](#architecture)
+ - [Development](#development)
+ - [Inspiration](#inspiration)
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+## Install
+Available on [PyPI](https://pypi.org/project/hypertag/)
+
+`$ pip install hypertag` (supports both CPU only & CUDA accelerated execution!)
+
+## Community
+Join the HyperTag [matrix chat room](https://matrix.to/#/#hypertag:matrix.neotree.uber.space?via=matrix.neotree.uber.space) to stay up to date on the latest developments or to ask for help.
+
+## Overview
+HyperTag offers a slick CLI but more importantly it creates a directory called ```HyperTagFS``` which is a file system based representation of your files and tags using symbolic links and directories.
+
+**Directory Import**: Import your existing directory hierarchies using ```$ hypertag import path/to/directory```. HyperTag converts it automatically into a tag hierarchy using metatagging.
+
+**Semantic Text & Image Search (Experimental)**: Search for **images** (jpg, png) and **text documents** (yes, even PDF's) content with a simple text query. Text search is powered by the awesome [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) library. Text to image search is powered by OpenAI's [CLIP model](https://openai.com/blog/clip/). Currently only English queries are supported.
+
+**HyperTag Daemon (Experimental)**: Monitors `HyperTagFS` and directories added to the auto import list for user changes (see section "Start HyperTag Daemon" below). Also spawns the DaemonService which speeds up semantic search significantly (warning: daemon process is a RAM hog with ~2GB usage).
+
+**Fuzzy Matching Queries**: HyperTag uses fuzzy matching to minimize friction in the unlikely case of a typo.
+
+**File Type Groups**: HyperTag automatically creates folders containing common files (e.g. Images: jpg, png, etc., Documents: txt, pdf, etc., Source Code: py, js, etc.), which can be found in ```HyperTagFS```.
+
+**HyperTag Graph**: Quickly get an overview of your HyperTag Graph! HyperTag visualizes the metatag graph on every change and saves it at `HyperTagFS/hypertag-graph.pdf`.
+
+![HyperTag Graph Example](https://raw.githubusercontent.com/SeanPedersen/HyperTag/master/images/hypertag-graph.jpg)
+
+## CLI Functions
+
+### Import existing directory recursively
+Import files with tags inferred from the existing directory hierarchy.
+
+```$ hypertag import path/to/directory```
+
+### Add file/s or URL/s manually
+
+```$ hypertag add path/to/file https://github.com/SeanPedersen/HyperTag```
+
+### Tag file/s (with values)
+Manually tag files. Shortcut: `$ hypertag t`
+
+```$ hypertag tag humans/*.txt with human "Homo Sapiens"```
+
+Add a value to a file's tag:
+
+```$ hypertag tag sean.txt with name="Sean Pedersen"```
+
+### Untag file/s
+Manually remove tag/s from file/s.
+
+```$ hypertag untag humans/*.txt with human "Homo Sapiens"```
+
+### Tag a tag
+Metatag tag/s to create tag hierarchies. Shortcut: `$ hypertag tt`
+
+```$ hypertag metatag human with animal```
+
+### Merge tags
+Merge all associations (files & tags) of tag A into tag B.
+
+```$ hypertag merge human into "Homo Sapiens"```
+
+### Query using Set Theory
+Print file names of the resulting set matching the query. Queries are composed of tags (with values) and operands. Tags are fuzzy matched for convenience. Nesting is currently not supported, queries are evaluated from left to right.
+<br>Shortcut: `$ hypertag q`
+
+Query with a value using a wildcard: ```$ hypertag query name="Sean*"```<br>
+Print paths: ```$ hypertag query human --path```<br>
+Print fuzzy matched tag: ```$ hypertag query man --verbose``` <br>
+Disable fuzzy matching: ```$ hypertag query human --fuzzy=0```
+
+Default operand is AND (intersection): <br>
+```$ hypertag query human name="Sean*"``` is equivalent to ```$ hypertag query human and name="Sean*"```
+
+OR (union): <br>
+```$ hypertag query human or "Homo Sapiens"```
+
+MINUS (difference): <br>
+```$ hypertag query human minus "Homo Sapiens"```
+
+### Index supported image and text files
+Only indexed files can be searched.
+
+```$ hypertag index```
+
+To parse even unparseable PDF's, install tesseract: `# pacman -S tesseract tesseract-data-eng`
+
+Index only image files: ```$ hypertag index --image```<br>
+Index only text files: ```$ hypertag index --text```
+
+### Semantic search for text files
+A custom search algorithm combining semantic with token matching search.
+Print text file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag s`
+
+```$ hypertag search "your important text query" --path --score --top_k=10```
+
+### Semantic search for image files
+Print image file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag si`
+
+Text to image:
+```$ hypertag search_image "your image content description" --path --score --top_k=10```
+
+Image to image:
+```$ hypertag search_image "path/to/image.jpg" --path --score --top_k=10```
+
+### Start HyperTag Daemon
+Start daemon process with triple functionality:
+- Watches `HyperTagFS` directory for user changes
+ - Maps file (symlink) and directory deletions into tag / metatag removal/s
+ - On directory creation: Interprets name as set theory tag query and automatically populates it with results
+ - On directory creation in `Search Images` or `Search Texts`: Interprets name as semantic search query (add top_k=42 to limit result size) and automatically populates it with results
+- Watches directories on the auto import list for user changes:
+ - Maps file changes (moves & renames) to DB
+ - On file creation: Adds new file/s with inferred tag/s and auto-indexes it (if supported file format).
+- Spawns DaemonService to load and expose models used for semantic search, speeding it up significantly
+
+```$ hypertag daemon```
+
+### Print all tags of file/s
+
+```$ hypertag tags filename1 filename2```
+
+### Print all metatags of tag/s
+
+```$ hypertag metatags tag1 tag2```
+
+### Print all tags
+
+```$ hypertag show```
+
+### Print all files
+
+Print names:
+```$ hypertag show files```
+
+Print paths:
+```$ hypertag show files --path```
+
+### Visualize HyperTag Graph
+Visualize the metatag graph hierarchy (saved at HyperTagFS root).
+
+```$ hypertag graph```
+
+Specify [layout algorithm](https://igraph.org/python/doc/tutorial/tutorial.html#layout-algorithms) (default: fruchterman_reingold):
+
+```$ hypertag graph --layout=kamada_kawai```
+
+### Generate HyperTagFS
+Generate file system based representation of your files and tags using symbolic links and directories.
+
+```$ hypertag mount```
+
+### Add directory to auto import list
+Directories added to the auto import list will be monitored by the daemon for new files or changes.
+
+```$ hypertag add_auto_import_dir path/to/directory```
+
+### Set HyperTagFS directory path
+Default is the user's home directory.
+
+```$ hypertag set_hypertagfs_dir path/to/directory```
+
+## Architecture
+- Python and it's vibrant open-source community power HyperTag
+- Many other awesome open-source projects make HyperTag possible (listed in `pyproject.toml`)
+- SQLite3 serves as the meta data storage engine (located at `~/.config/hypertag/hypertag.db`)
+- Added URLs are saved in `~/.config/hypertag/web_pages` for websites, others in `~/.config/hypertag/downloads`
+- Symbolic links are used to create the HyperTagFS directory structure
+- Semantic Search: boosted using [hnswlib](https://github.com/nmslib/hnswlib/)
+ - Text to text search is powered by the awesome [DistilBERT](https://arxiv.org/abs/1910.01108)
+ - Text to image & image to image search is powered by OpenAI's impressive [CLIP model](https://openai.com/blog/clip/)
+
+## Development
+- Find prioritized issues here: [TODO List](https://github.com/Ravn-Tech/HyperTag/projects/1)
+- Pick an issue and comment how you plan to tackle it before starting out, to make sure no dev time is wasted.
+- Clone repo: ```$ git clone https://github.com/SeanPedersen/HyperTag.git```
+- `$ cd HyperTag/`
+- Install [Poetry](https://python-poetry.org/docs/#installation)
+- Install dependencies: `$ poetry install`
+- Activate virtual environment: `$ poetry shell`
+- Run all tests: ```$ pytest -v```
+- Run formatter: ```$ black hypertag/```
+- Run linter: ```$ flake8```
+- Run type checking: ```$ mypy **/*.py```
+- Run security checking: ```$ bandit --exclude tests/ -r .```
+- Codacy: [Dashboard](https://app.codacy.com/gh/SeanPedersen/HyperTag/dashboard?branch=master)
+- Run HyperTag: ```$ python -m hypertag```
+
+## Inspiration
+
+**What is the point of HyperTag's existence?**<br/>
+HyperTag offers many unique features such as the import, semantic search, graphing and fuzzy matching functions that make it very convenient to use. All while HyperTag's code base staying relatively tiny at <2000 LOC compared to similar projects like [TMSU](https://github.com/oniony/TMSU) (>10,000 LOC in Go) and [SuperTag](https://github.com/amoffat/supertag) (>25,000 LOC in Rust), making it easy to hack on.
+
+
+%package -n python3-hypertag
+Summary: File organization made for humans
+Provides: python-hypertag
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-hypertag
+# HyperTag
+
+HyperTag helps humans intuitively express how they think about their files using tags and machine learning. Represent how you think using tags. Find what you look for using semantic search for your text documents (yes, even PDF's) and images. Instead of introducing proprietary file formats like other existing file organization tools, HyperTag just smoothly layers on top of your existing files without any fuss.
+
+**Objective Function**: Minimize time between a thought and access to all relevant files.
+
+Accompanying blog post: https://blog.neotree.uber.space/posts/hypertag-file-organization-made-for-humans
+
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+**Table of Contents**
+- [HyperTag](#hypertag)
+ - [Install](#install)
+ - [Community](#community)
+ - [Overview](#overview)
+ - [CLI Functions](#cli-functions)
+ - [Import existing directory recursively](#import-existing-directory-recursively)
+ - [Add file/s or URL/s manually](#add-files-or-urls-manually)
+ - [Tag file/s (with values)](#tag-files--with-values)
+ - [Untag file/s](#untag-files)
+ - [Tag a tag](#tag-a-tag)
+ - [Merge tags](#merge-tags)
+ - [Query using Set Theory](#query-using-set-theory)
+ - [Index supported image and text files](#index-supported-image-and-text-files)
+ - [Semantic search for text files](#semantic-search-for-text-files)
+ - [Semantic search for image files](#semantic-search-for-image-files)
+ - [Start HyperTag Daemon](#start-hypertag-daemon)
+ - [Print all tags of file/s](#print-all-tags-of-files)
+ - [Print all metatags of tag/s](#print-all-metatags-of-tags)
+ - [Print all tags](#print-all-tags)
+ - [Print all files](#print-all-files)
+ - [Visualize HyperTag Graph](#visualize-hypertag-graph)
+ - [Generate HyperTagFS](#generate-hypertagfs)
+ - [Add directory to auto import list](#add-directory-to-auto-import-list)
+ - [Set HyperTagFS directory path](#set-hypertagfs-directory-path)
+ - [Architecture](#architecture)
+ - [Development](#development)
+ - [Inspiration](#inspiration)
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+## Install
+Available on [PyPI](https://pypi.org/project/hypertag/)
+
+`$ pip install hypertag` (supports both CPU only & CUDA accelerated execution!)
+
+## Community
+Join the HyperTag [matrix chat room](https://matrix.to/#/#hypertag:matrix.neotree.uber.space?via=matrix.neotree.uber.space) to stay up to date on the latest developments or to ask for help.
+
+## Overview
+HyperTag offers a slick CLI but more importantly it creates a directory called ```HyperTagFS``` which is a file system based representation of your files and tags using symbolic links and directories.
+
+**Directory Import**: Import your existing directory hierarchies using ```$ hypertag import path/to/directory```. HyperTag converts it automatically into a tag hierarchy using metatagging.
+
+**Semantic Text & Image Search (Experimental)**: Search for **images** (jpg, png) and **text documents** (yes, even PDF's) content with a simple text query. Text search is powered by the awesome [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) library. Text to image search is powered by OpenAI's [CLIP model](https://openai.com/blog/clip/). Currently only English queries are supported.
+
+**HyperTag Daemon (Experimental)**: Monitors `HyperTagFS` and directories added to the auto import list for user changes (see section "Start HyperTag Daemon" below). Also spawns the DaemonService which speeds up semantic search significantly (warning: daemon process is a RAM hog with ~2GB usage).
+
+**Fuzzy Matching Queries**: HyperTag uses fuzzy matching to minimize friction in the unlikely case of a typo.
+
+**File Type Groups**: HyperTag automatically creates folders containing common files (e.g. Images: jpg, png, etc., Documents: txt, pdf, etc., Source Code: py, js, etc.), which can be found in ```HyperTagFS```.
+
+**HyperTag Graph**: Quickly get an overview of your HyperTag Graph! HyperTag visualizes the metatag graph on every change and saves it at `HyperTagFS/hypertag-graph.pdf`.
+
+![HyperTag Graph Example](https://raw.githubusercontent.com/SeanPedersen/HyperTag/master/images/hypertag-graph.jpg)
+
+## CLI Functions
+
+### Import existing directory recursively
+Import files with tags inferred from the existing directory hierarchy.
+
+```$ hypertag import path/to/directory```
+
+### Add file/s or URL/s manually
+
+```$ hypertag add path/to/file https://github.com/SeanPedersen/HyperTag```
+
+### Tag file/s (with values)
+Manually tag files. Shortcut: `$ hypertag t`
+
+```$ hypertag tag humans/*.txt with human "Homo Sapiens"```
+
+Add a value to a file's tag:
+
+```$ hypertag tag sean.txt with name="Sean Pedersen"```
+
+### Untag file/s
+Manually remove tag/s from file/s.
+
+```$ hypertag untag humans/*.txt with human "Homo Sapiens"```
+
+### Tag a tag
+Metatag tag/s to create tag hierarchies. Shortcut: `$ hypertag tt`
+
+```$ hypertag metatag human with animal```
+
+### Merge tags
+Merge all associations (files & tags) of tag A into tag B.
+
+```$ hypertag merge human into "Homo Sapiens"```
+
+### Query using Set Theory
+Print file names of the resulting set matching the query. Queries are composed of tags (with values) and operands. Tags are fuzzy matched for convenience. Nesting is currently not supported, queries are evaluated from left to right.
+<br>Shortcut: `$ hypertag q`
+
+Query with a value using a wildcard: ```$ hypertag query name="Sean*"```<br>
+Print paths: ```$ hypertag query human --path```<br>
+Print fuzzy matched tag: ```$ hypertag query man --verbose``` <br>
+Disable fuzzy matching: ```$ hypertag query human --fuzzy=0```
+
+Default operand is AND (intersection): <br>
+```$ hypertag query human name="Sean*"``` is equivalent to ```$ hypertag query human and name="Sean*"```
+
+OR (union): <br>
+```$ hypertag query human or "Homo Sapiens"```
+
+MINUS (difference): <br>
+```$ hypertag query human minus "Homo Sapiens"```
+
+### Index supported image and text files
+Only indexed files can be searched.
+
+```$ hypertag index```
+
+To parse even unparseable PDF's, install tesseract: `# pacman -S tesseract tesseract-data-eng`
+
+Index only image files: ```$ hypertag index --image```<br>
+Index only text files: ```$ hypertag index --text```
+
+### Semantic search for text files
+A custom search algorithm combining semantic with token matching search.
+Print text file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag s`
+
+```$ hypertag search "your important text query" --path --score --top_k=10```
+
+### Semantic search for image files
+Print image file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag si`
+
+Text to image:
+```$ hypertag search_image "your image content description" --path --score --top_k=10```
+
+Image to image:
+```$ hypertag search_image "path/to/image.jpg" --path --score --top_k=10```
+
+### Start HyperTag Daemon
+Start daemon process with triple functionality:
+- Watches `HyperTagFS` directory for user changes
+ - Maps file (symlink) and directory deletions into tag / metatag removal/s
+ - On directory creation: Interprets name as set theory tag query and automatically populates it with results
+ - On directory creation in `Search Images` or `Search Texts`: Interprets name as semantic search query (add top_k=42 to limit result size) and automatically populates it with results
+- Watches directories on the auto import list for user changes:
+ - Maps file changes (moves & renames) to DB
+ - On file creation: Adds new file/s with inferred tag/s and auto-indexes it (if supported file format).
+- Spawns DaemonService to load and expose models used for semantic search, speeding it up significantly
+
+```$ hypertag daemon```
+
+### Print all tags of file/s
+
+```$ hypertag tags filename1 filename2```
+
+### Print all metatags of tag/s
+
+```$ hypertag metatags tag1 tag2```
+
+### Print all tags
+
+```$ hypertag show```
+
+### Print all files
+
+Print names:
+```$ hypertag show files```
+
+Print paths:
+```$ hypertag show files --path```
+
+### Visualize HyperTag Graph
+Visualize the metatag graph hierarchy (saved at HyperTagFS root).
+
+```$ hypertag graph```
+
+Specify [layout algorithm](https://igraph.org/python/doc/tutorial/tutorial.html#layout-algorithms) (default: fruchterman_reingold):
+
+```$ hypertag graph --layout=kamada_kawai```
+
+### Generate HyperTagFS
+Generate file system based representation of your files and tags using symbolic links and directories.
+
+```$ hypertag mount```
+
+### Add directory to auto import list
+Directories added to the auto import list will be monitored by the daemon for new files or changes.
+
+```$ hypertag add_auto_import_dir path/to/directory```
+
+### Set HyperTagFS directory path
+Default is the user's home directory.
+
+```$ hypertag set_hypertagfs_dir path/to/directory```
+
+## Architecture
+- Python and it's vibrant open-source community power HyperTag
+- Many other awesome open-source projects make HyperTag possible (listed in `pyproject.toml`)
+- SQLite3 serves as the meta data storage engine (located at `~/.config/hypertag/hypertag.db`)
+- Added URLs are saved in `~/.config/hypertag/web_pages` for websites, others in `~/.config/hypertag/downloads`
+- Symbolic links are used to create the HyperTagFS directory structure
+- Semantic Search: boosted using [hnswlib](https://github.com/nmslib/hnswlib/)
+ - Text to text search is powered by the awesome [DistilBERT](https://arxiv.org/abs/1910.01108)
+ - Text to image & image to image search is powered by OpenAI's impressive [CLIP model](https://openai.com/blog/clip/)
+
+## Development
+- Find prioritized issues here: [TODO List](https://github.com/Ravn-Tech/HyperTag/projects/1)
+- Pick an issue and comment how you plan to tackle it before starting out, to make sure no dev time is wasted.
+- Clone repo: ```$ git clone https://github.com/SeanPedersen/HyperTag.git```
+- `$ cd HyperTag/`
+- Install [Poetry](https://python-poetry.org/docs/#installation)
+- Install dependencies: `$ poetry install`
+- Activate virtual environment: `$ poetry shell`
+- Run all tests: ```$ pytest -v```
+- Run formatter: ```$ black hypertag/```
+- Run linter: ```$ flake8```
+- Run type checking: ```$ mypy **/*.py```
+- Run security checking: ```$ bandit --exclude tests/ -r .```
+- Codacy: [Dashboard](https://app.codacy.com/gh/SeanPedersen/HyperTag/dashboard?branch=master)
+- Run HyperTag: ```$ python -m hypertag```
+
+## Inspiration
+
+**What is the point of HyperTag's existence?**<br/>
+HyperTag offers many unique features such as the import, semantic search, graphing and fuzzy matching functions that make it very convenient to use. All while HyperTag's code base staying relatively tiny at <2000 LOC compared to similar projects like [TMSU](https://github.com/oniony/TMSU) (>10,000 LOC in Go) and [SuperTag](https://github.com/amoffat/supertag) (>25,000 LOC in Rust), making it easy to hack on.
+
+
+%package help
+Summary: Development documents and examples for hypertag
+Provides: python3-hypertag-doc
+%description help
+# HyperTag
+
+HyperTag helps humans intuitively express how they think about their files using tags and machine learning. Represent how you think using tags. Find what you look for using semantic search for your text documents (yes, even PDF's) and images. Instead of introducing proprietary file formats like other existing file organization tools, HyperTag just smoothly layers on top of your existing files without any fuss.
+
+**Objective Function**: Minimize time between a thought and access to all relevant files.
+
+Accompanying blog post: https://blog.neotree.uber.space/posts/hypertag-file-organization-made-for-humans
+
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+**Table of Contents**
+- [HyperTag](#hypertag)
+ - [Install](#install)
+ - [Community](#community)
+ - [Overview](#overview)
+ - [CLI Functions](#cli-functions)
+ - [Import existing directory recursively](#import-existing-directory-recursively)
+ - [Add file/s or URL/s manually](#add-files-or-urls-manually)
+ - [Tag file/s (with values)](#tag-files--with-values)
+ - [Untag file/s](#untag-files)
+ - [Tag a tag](#tag-a-tag)
+ - [Merge tags](#merge-tags)
+ - [Query using Set Theory](#query-using-set-theory)
+ - [Index supported image and text files](#index-supported-image-and-text-files)
+ - [Semantic search for text files](#semantic-search-for-text-files)
+ - [Semantic search for image files](#semantic-search-for-image-files)
+ - [Start HyperTag Daemon](#start-hypertag-daemon)
+ - [Print all tags of file/s](#print-all-tags-of-files)
+ - [Print all metatags of tag/s](#print-all-metatags-of-tags)
+ - [Print all tags](#print-all-tags)
+ - [Print all files](#print-all-files)
+ - [Visualize HyperTag Graph](#visualize-hypertag-graph)
+ - [Generate HyperTagFS](#generate-hypertagfs)
+ - [Add directory to auto import list](#add-directory-to-auto-import-list)
+ - [Set HyperTagFS directory path](#set-hypertagfs-directory-path)
+ - [Architecture](#architecture)
+ - [Development](#development)
+ - [Inspiration](#inspiration)
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+## Install
+Available on [PyPI](https://pypi.org/project/hypertag/)
+
+`$ pip install hypertag` (supports both CPU only & CUDA accelerated execution!)
+
+## Community
+Join the HyperTag [matrix chat room](https://matrix.to/#/#hypertag:matrix.neotree.uber.space?via=matrix.neotree.uber.space) to stay up to date on the latest developments or to ask for help.
+
+## Overview
+HyperTag offers a slick CLI but more importantly it creates a directory called ```HyperTagFS``` which is a file system based representation of your files and tags using symbolic links and directories.
+
+**Directory Import**: Import your existing directory hierarchies using ```$ hypertag import path/to/directory```. HyperTag converts it automatically into a tag hierarchy using metatagging.
+
+**Semantic Text & Image Search (Experimental)**: Search for **images** (jpg, png) and **text documents** (yes, even PDF's) content with a simple text query. Text search is powered by the awesome [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) library. Text to image search is powered by OpenAI's [CLIP model](https://openai.com/blog/clip/). Currently only English queries are supported.
+
+**HyperTag Daemon (Experimental)**: Monitors `HyperTagFS` and directories added to the auto import list for user changes (see section "Start HyperTag Daemon" below). Also spawns the DaemonService which speeds up semantic search significantly (warning: daemon process is a RAM hog with ~2GB usage).
+
+**Fuzzy Matching Queries**: HyperTag uses fuzzy matching to minimize friction in the unlikely case of a typo.
+
+**File Type Groups**: HyperTag automatically creates folders containing common files (e.g. Images: jpg, png, etc., Documents: txt, pdf, etc., Source Code: py, js, etc.), which can be found in ```HyperTagFS```.
+
+**HyperTag Graph**: Quickly get an overview of your HyperTag Graph! HyperTag visualizes the metatag graph on every change and saves it at `HyperTagFS/hypertag-graph.pdf`.
+
+![HyperTag Graph Example](https://raw.githubusercontent.com/SeanPedersen/HyperTag/master/images/hypertag-graph.jpg)
+
+## CLI Functions
+
+### Import existing directory recursively
+Import files with tags inferred from the existing directory hierarchy.
+
+```$ hypertag import path/to/directory```
+
+### Add file/s or URL/s manually
+
+```$ hypertag add path/to/file https://github.com/SeanPedersen/HyperTag```
+
+### Tag file/s (with values)
+Manually tag files. Shortcut: `$ hypertag t`
+
+```$ hypertag tag humans/*.txt with human "Homo Sapiens"```
+
+Add a value to a file's tag:
+
+```$ hypertag tag sean.txt with name="Sean Pedersen"```
+
+### Untag file/s
+Manually remove tag/s from file/s.
+
+```$ hypertag untag humans/*.txt with human "Homo Sapiens"```
+
+### Tag a tag
+Metatag tag/s to create tag hierarchies. Shortcut: `$ hypertag tt`
+
+```$ hypertag metatag human with animal```
+
+### Merge tags
+Merge all associations (files & tags) of tag A into tag B.
+
+```$ hypertag merge human into "Homo Sapiens"```
+
+### Query using Set Theory
+Print file names of the resulting set matching the query. Queries are composed of tags (with values) and operands. Tags are fuzzy matched for convenience. Nesting is currently not supported, queries are evaluated from left to right.
+<br>Shortcut: `$ hypertag q`
+
+Query with a value using a wildcard: ```$ hypertag query name="Sean*"```<br>
+Print paths: ```$ hypertag query human --path```<br>
+Print fuzzy matched tag: ```$ hypertag query man --verbose``` <br>
+Disable fuzzy matching: ```$ hypertag query human --fuzzy=0```
+
+Default operand is AND (intersection): <br>
+```$ hypertag query human name="Sean*"``` is equivalent to ```$ hypertag query human and name="Sean*"```
+
+OR (union): <br>
+```$ hypertag query human or "Homo Sapiens"```
+
+MINUS (difference): <br>
+```$ hypertag query human minus "Homo Sapiens"```
+
+### Index supported image and text files
+Only indexed files can be searched.
+
+```$ hypertag index```
+
+To parse even unparseable PDF's, install tesseract: `# pacman -S tesseract tesseract-data-eng`
+
+Index only image files: ```$ hypertag index --image```<br>
+Index only text files: ```$ hypertag index --text```
+
+### Semantic search for text files
+A custom search algorithm combining semantic with token matching search.
+Print text file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag s`
+
+```$ hypertag search "your important text query" --path --score --top_k=10```
+
+### Semantic search for image files
+Print image file names sorted by matching score.
+Performance benefits greatly from running the HyperTag daemon.
+<br>Shortcut: `$ hypertag si`
+
+Text to image:
+```$ hypertag search_image "your image content description" --path --score --top_k=10```
+
+Image to image:
+```$ hypertag search_image "path/to/image.jpg" --path --score --top_k=10```
+
+### Start HyperTag Daemon
+Start daemon process with triple functionality:
+- Watches `HyperTagFS` directory for user changes
+ - Maps file (symlink) and directory deletions into tag / metatag removal/s
+ - On directory creation: Interprets name as set theory tag query and automatically populates it with results
+ - On directory creation in `Search Images` or `Search Texts`: Interprets name as semantic search query (add top_k=42 to limit result size) and automatically populates it with results
+- Watches directories on the auto import list for user changes:
+ - Maps file changes (moves & renames) to DB
+ - On file creation: Adds new file/s with inferred tag/s and auto-indexes it (if supported file format).
+- Spawns DaemonService to load and expose models used for semantic search, speeding it up significantly
+
+```$ hypertag daemon```
+
+### Print all tags of file/s
+
+```$ hypertag tags filename1 filename2```
+
+### Print all metatags of tag/s
+
+```$ hypertag metatags tag1 tag2```
+
+### Print all tags
+
+```$ hypertag show```
+
+### Print all files
+
+Print names:
+```$ hypertag show files```
+
+Print paths:
+```$ hypertag show files --path```
+
+### Visualize HyperTag Graph
+Visualize the metatag graph hierarchy (saved at HyperTagFS root).
+
+```$ hypertag graph```
+
+Specify [layout algorithm](https://igraph.org/python/doc/tutorial/tutorial.html#layout-algorithms) (default: fruchterman_reingold):
+
+```$ hypertag graph --layout=kamada_kawai```
+
+### Generate HyperTagFS
+Generate file system based representation of your files and tags using symbolic links and directories.
+
+```$ hypertag mount```
+
+### Add directory to auto import list
+Directories added to the auto import list will be monitored by the daemon for new files or changes.
+
+```$ hypertag add_auto_import_dir path/to/directory```
+
+### Set HyperTagFS directory path
+Default is the user's home directory.
+
+```$ hypertag set_hypertagfs_dir path/to/directory```
+
+## Architecture
+- Python and it's vibrant open-source community power HyperTag
+- Many other awesome open-source projects make HyperTag possible (listed in `pyproject.toml`)
+- SQLite3 serves as the meta data storage engine (located at `~/.config/hypertag/hypertag.db`)
+- Added URLs are saved in `~/.config/hypertag/web_pages` for websites, others in `~/.config/hypertag/downloads`
+- Symbolic links are used to create the HyperTagFS directory structure
+- Semantic Search: boosted using [hnswlib](https://github.com/nmslib/hnswlib/)
+ - Text to text search is powered by the awesome [DistilBERT](https://arxiv.org/abs/1910.01108)
+ - Text to image & image to image search is powered by OpenAI's impressive [CLIP model](https://openai.com/blog/clip/)
+
+## Development
+- Find prioritized issues here: [TODO List](https://github.com/Ravn-Tech/HyperTag/projects/1)
+- Pick an issue and comment how you plan to tackle it before starting out, to make sure no dev time is wasted.
+- Clone repo: ```$ git clone https://github.com/SeanPedersen/HyperTag.git```
+- `$ cd HyperTag/`
+- Install [Poetry](https://python-poetry.org/docs/#installation)
+- Install dependencies: `$ poetry install`
+- Activate virtual environment: `$ poetry shell`
+- Run all tests: ```$ pytest -v```
+- Run formatter: ```$ black hypertag/```
+- Run linter: ```$ flake8```
+- Run type checking: ```$ mypy **/*.py```
+- Run security checking: ```$ bandit --exclude tests/ -r .```
+- Codacy: [Dashboard](https://app.codacy.com/gh/SeanPedersen/HyperTag/dashboard?branch=master)
+- Run HyperTag: ```$ python -m hypertag```
+
+## Inspiration
+
+**What is the point of HyperTag's existence?**<br/>
+HyperTag offers many unique features such as the import, semantic search, graphing and fuzzy matching functions that make it very convenient to use. All while HyperTag's code base staying relatively tiny at <2000 LOC compared to similar projects like [TMSU](https://github.com/oniony/TMSU) (>10,000 LOC in Go) and [SuperTag](https://github.com/amoffat/supertag) (>25,000 LOC in Rust), making it easy to hack on.
+
+
+%prep
+%autosetup -n hypertag-0.6.3.3.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-hypertag -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.3.3.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8430dc2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+37e4ea9f75e4e940854ae8df8d3af906 hypertag-0.6.3.3.1.tar.gz