semvec/pypi-packages huggingface dataset:
albumr 1.0.9
Imgur album downloader
License: MIT

# albumr

Imgur album downloader.

## Installation

    pip install albumr

## Usage

```
usage: albumr [<options>] [--] <album>...

Imgur album downloader

positional arguments:
  <album>               an album hash or URL

optional arguments:
  -h, --help            show this help message and exit
  -n, --numbers, --no-numbers
                        prepend numbers to filenames; default: False
  -t, --titles, --no-titles
                        append album titles to directory names; default: False
  -v, --version         show program's version number and exit
```

## Examples

From album URL:

    albumr http://imgur.com/a/adkET

From album hash, with numbers in filenames and album title in directory name:

    albumr -nt adkET

## License

[MIT License](LICENSE.txt)
pvrtc-decoder 1.0.2
A PVRTC decoder for PIL
License: MIT

# PVRTC Decoder
A PVRTC decoder for PIL.

The decoder uses PVRTDecompress from [PVRCore](https://github.com/powervr-graphics/Native_SDK/tree/master/framework/PVRCore) to decompress the data.


## Installation
- Cython required
### PIP
```
pip install pvrtc_decoder
```
### Manual
```cmd
python setup.py install
```


## Usage
do2bit_mode:
- 0 - PVRTC2 (8 bit)
- 1 - PVRTC4 (16 bit)

### PIL.Image decoder
```python
from PIL import Image
import pvrtc_decoder 
#needs to be imported once in the active code, so that the codec can register itself

raw_pvrtc_image_data : bytes
do2bit_mode = 0 # see above
img = Image.frombytes('RGBA', size, raw_pvrtc_image_data, 'pvrtc', (do2bit_mode))
```

### raw decoder
```python
from pvrtc_decoder import decompress_pvrtc, decompress_etc

# compressed PVRTC image bytes to RGBA bytes
rgba_data = decompress_pvrtc(compressed_data : bytes, do2bit_mode : int, width : int, height : int)

# compressed ETC image bytes to RGBA bytes
# mode seems to be unused, so use any value you want
rgba_data = decompress_etc(src_data : bytes, width : int, height : int, mode : int)
```