Skip to main content

Thin CLI client for the tteg image-search API.

Project description

tteg

tteg is a thin Python CLI for the hosted tteg-api service.

Current shape:

  • one command
  • no provider keys on the client
  • CLI calls tteg-api
  • API talks to Unsplash
  • JSON output by default

Setup

By default the CLI talks to a local API at http://127.0.0.1:8080.

Override the API URL with:

  • TTEG_API_URL

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": 1,
      "title": "Mountain sunset over alpine ridge",
      "image_url": "https://images.unsplash.com/...",
      "thumb_url": "https://images.unsplash.com/..."
    }
  ]
}

API service

The backend service lives in tteg-api/ and is designed for Cloud Run.

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.3.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tteg-0.3.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file tteg-0.3.0.tar.gz.

File metadata

  • Download URL: tteg-0.3.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tteg-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2865e0c93c81ca9a43f44c737d661ec5e421ac53ab1dfd228f65cad04773615e
MD5 4b4802c4a10a7e73b1c5a226284ca0e6
BLAKE2b-256 4b6557f4df0a5f1e6e7a2f4fd06ca917eeb803bc9e25ef2f859bd79f05d2e9b4

See more details on using hashes here.

File details

Details for the file tteg-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tteg-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tteg-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e34f50237bed2efe6d6fec7e813865d7b440eedf8cd901968490a65c71f40fc8
MD5 5dac484043da33626d7c72f4e54485ce
BLAKE2b-256 fcdde87dbd79ad5511aa752890a505f366627af65214ba2680d2e12ac6c677a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page