Skip to main content

CLI Program for downloading images. Maybe by location too...

Project description

latz

This is a command line tool used for retrieving images from various image search backends (e.g. Unsplash, Google). This tool is primarily developed for educational purposes to show people how to develop plugin friendly Python applications. Furthermore, it is an example project that shows how to effectively pair a handful of popular Python libraries to write command line applications.

To facilitate our plugin architecture, the pluggy library is used. Other libraries used include the following:

  • click: used for structuring the command line application 🖱 💻
  • pydantic: used for handling configuration file validation 🗃
  • rich: used for UX/UI elements and generally making the application more pretty 🌈

Why "latz"

"latz" is short and easy to type! This is super important when writing CLI programs. I also thought about adding a geolocation search feature, so it is a reference to the word "latitude".

Quick Start

Installation

latz is available for install either on PyPI:

# Run from a new virtual environment
$ pip install latz

or my own anaconda.org channel:

$ conda create -n latz 'thath::latz'

If you are interested in tinkering around with the code yourself, you can also run it locally:

$ git clone git@github.com:/travishathaway/latz.git
$ cd latz
# Create a virtual environment however you like..
$ pip install -e .

Configuring

latz comes initially configured with the "unsplash" image search backend. To use this, you will need to create an Unsplash account and create a test application. After getting your "access_key", you will need to configure it by adding it to your .latz.json config file. An example is show below:

{
  "backend": "unsplash",
  "unsplash_config": {
    "access_key": "your-access-key"
  }
}

This file must be stored in your home directory or your current working directory.

To see other available image search backends, see Available image search backends below.

Usage

coming soon 😉

Available image search backends

coming soon 😉

How to extend and write your own image search backen

coming soon 😉

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

latz-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

latz-0.1.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file latz-0.1.0.tar.gz.

File metadata

  • Download URL: latz-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/21.3.0

File hashes

Hashes for latz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7e75a442171aae68067318ad9617422028232fc45a5dfdb51f953150800ac85
MD5 27fd1cc1f50b3e71a030456731990653
BLAKE2b-256 53c3130da6c5a37c23c5d3aaed4ece82cca054331644f51e86bc683a0a205bc7

See more details on using hashes here.

File details

Details for the file latz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: latz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/21.3.0

File hashes

Hashes for latz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead9590dc9d467020b82b42d3e9bbd1766fa8a0dbacb4e88785347e0cba98e12
MD5 3b54a37318fd2c4ad49c65669dc2a72a
BLAKE2b-256 e5e75e5b21e1bb36616aa51a23c1967bfaef325db8b310c6ab2e6e05e7ca4758

See more details on using hashes here.

Supported by

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