Metadata-Version: 2.1
Name: conditional-get
Version: 0.1a0
Summary: CLI tool for fetching data using HTTP conditional get
Home-page: https://github.com/simonw/conditional-get
Author: Simon Willison
License: Apache License, Version 2.0
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: httpx
Requires-Dist: click
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-mock ; extra == 'test'

# conditional-get

[![PyPI](https://img.shields.io/pypi/v/conditional-get.svg)](https://pypi.python.org/pypi/conditional-get)
[![CircleCI](https://circleci.com/gh/simonw/conditional-get.svg?style=svg)](https://circleci.com/gh/simonw/conditional-get)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/conditional-get/blob/master/LICENSE)

CLI tool for fetching data using HTTP conditional get.

## Installation

    pip install conditional-get

## Usage

    conditional-get https://static.simonwillison.net/static/2020/Simon_Willison__TIL.png

This will save to a filename derived from the URL.

    conditional-get https://static.simonwillison.net/static/2020/Simon_Willison__TIL.png -o til.png

Use `-o` to specify a filename.

By default the ETags for the retrieved URLs will be stored in a `etags.json` file in the current directory.

Use `--etags otherfile.json` to store that file somewhere else.


