Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.1 KB

README.md

File metadata and controls

65 lines (43 loc) · 2.1 KB

Thinga

GitHub repo status GitHub license GitHub contributors GitHub tag (latest by date) GitHub repo size

Compare and vote for the option you want to get a better rating!

How to Use

Install uv ("An extremely fast Python package and project manager, written in Rust."):

macOS and Linux Windows Using pip
curl -LsSf https://astral.sh/uv/install.sh | sh powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" pip install uv

To develop and contribute, install these tools:

Or run this code on your Unix-like operating system:

tools=(ruff pytest)
for tool in "${tools[@]}"; do
  uv tool install --force "${tool}"@latest
done

Make sure the tests pass before running the server:

pytest -rSp

Run the Thinga web application:

uv run uvicorn thinga.main:app --port 9906

Now go to http://127.0.0.1:9906 and use it!

The front-end codebase for this project is available on GitHub.

Automation Scripts

Collect images from DuckDuckGo based on a query easily:

uv run python scripts/image_collector.py 'Hollywood celebrities' --max-images 15

Upload collected images to the Thinga API:

./scripts/upload_collected_images.sh -u root -p toor

License

This project is licensed under the MIT license found in the LICENSE file in the root directory of this repository.