Metadata-Version: 2.1
Name: dpi-maps
Version: 0.0.2
Summary: Download maps from the Deptment of Prime Industries for use in R license activites.
Author: Daniel Michaels
Author-email: dan@danielms.site
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: fake-useragent (>=1.1.1,<2.0.0)
Requires-Dist: httpx (>=0.23.3,<0.24.0)
Requires-Dist: playwright (>=1.31.1,<2.0.0)
Requires-Dist: structlog (>=22.3.0,<23.0.0)
Requires-Dist: typer[all] (>=0.7.0,<0.8.0)
Description-Content-Type: text/markdown

# DPI Maps

> Retrieve maps and species reports from the Department of Prime Industries

## Setup

`pip install dpi-maps`

To login you will need to provide either an environment variable, or use the flags.

Environment variables which can be set to login:

`DPI_USERNAME` and `DPI_PASSWORD`.

Alternatively, use `--username` and `--password` flag for each invocation of the command.

By default, all maps and report are downloaded to `/tmp/dpi`. Use `--directory` or `DPI_DIRECTORY`
to override this behaviour.

## Usage

![default.png](_docs%2Fdefault.png)

To view the available commands run `dpi-maps`

### Retrieve all maps

![scrape.png](_docs%2Fscrape.png)

`dpi-maps scrape` will retrieve all the most recent maps available.

This will get both `kmz` and `pdf`. Use `--map-type=pdf` or `--map-type=kmz`
to get only that type.

### Get the latest species report

![reports.png](_docs%2Freports.png)

`dpi-maps reports` will collect the latest species report.

