Agent-friendly stock image search CLI. No rate-limit BS.
Project description
tteg
tteg is a Python CLI for agent-friendly stock-image search.
Current shape:
- one command
- Unsplash-backed search
- JSON output by default
- inline stitched preview as base64 JPEG
Setup
tteg reads environment variables from the shell and also loads a local .env file from the current working directory if present.
Supported keys:
UNSPLASH_ACCESS_KEYACCESS_KEYas a fallback alias
Usage
python3 -m tteg "mountain sunset"
python3 -m tteg "hero banner" --count 8 --orientation landscape --width 1920 --height 1080
Example response shape:
{
"query": "mountain sunset",
"results": [
{
"id": "abc123",
"source": "unsplash",
"image_url": "https://images.unsplash.com/...",
"thumb_url": "https://images.unsplash.com/...",
"photographer": "Jane Doe",
"width": 4000,
"height": 3000,
"html_url": "https://unsplash.com/photos/...",
"download_location": "https://api.unsplash.com/photos/.../download"
}
],
"preview": {
"mime_type": "image/jpeg",
"width": 320,
"height": 1108,
"data_base64": "..."
},
"warnings": []
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tteg-0.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tteg-0.1.0-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file tteg-0.1.0.tar.gz.
File metadata
- Download URL: tteg-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f78957d39de47f7c0a9f5baa5fba28e7cd9d5b39e53951d08dfe96885da1034
|
|
| MD5 |
8a6bb4f3a91fc17fa896542529afab48
|
|
| BLAKE2b-256 |
54d2a99e7b261581e33b3d8d040994eb4864c54ea992212df589f57c38ac76b8
|
File details
Details for the file tteg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tteg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
630cb49e7832ce5e67597f034155d7e42453c9765e3cdd8d9f5ed78defabc0e0
|
|
| MD5 |
bcb47455a96b74fefde12e2c74dfce92
|
|
| BLAKE2b-256 |
6d8c62e779490e5f2117502f046f18ee6b1d2ef64cc9c632e613dd2f0b17c7af
|