semvec/pypi-packages huggingface dataset:
nonogram-solver 0.1
A nonogram puzzle solver.
License: MIT
Keywords: puzzles nonogram solver puzzle

Nonogram Solver
===============

|  |ci-status|

This project provides a general nonogram solver. It can determine if a puzzle is not solveable by a human, and if it is solveable, can provide the solution.

This solver can be used to create nonogram puzzles given a successful final solution. If the given solution is not solvable, the solver will suggest "hint" squares to be filled in when the nonogram is given to a human solver.

.. |ci-status| image:: https://travis-ci.org/mprat/nonogram-solver.svg?branch=master
    :target: https://travis-ci.org/mprat/nonogram-solver
    :alt: Build status
config_tool 0.0.13
config_tool is a simple configuration management tool for JSON files.
License: MIT
Keywords: json config read write validate configuration utility

config_tool (A simple configuration management tool for JSON files)
===================================================================

The MIT License (MIT)
Copyright (c) 2016 Sam Caldwell.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to 
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

Description:

config-tool is a simple configuration management tool for JSON files.
This tool allows the user to easily read, write and validate a JSON
file from command line as well as from a python script which imports
the Config class.



============================
USAGE (FROM THE COMMANDLINE)
============================



Given a configuration file (sample.json):

-----------------------------------------

{
    "foo":{
        "bar":1
    }
}

-----------------------------------------




We can create a shell script (reader.sh) like this:

---------------------------------------------------

#!/bin/bash

foo_bar="$(config --read --key foo.bar --config ./sample.json)"

echo "foo.bar:$foo_bar"

---------------------------------------------------




Executing this script will return this:

---------------------------------------

root# reader.sh

foo.bar:1

---------------------------------------
average-pixels 1.1.0
Average pixels from multiple images off Bing Image Search
License: MIT

# Average Pixels [![Build Status](https://travis-ci.org/liviu-/average-pixels.svg?branch=develop)](https://travis-ci.org/liviu-/average-pixels)

Command line tool which takes a bunch of images, and outputs a JPEG combining the images using a weighted average where the weights are samples drawn from the Dirichlet distribution.

```sh
$ average-pixels download "party explosions boom" --offset 90 --count 30
```

![party_explosions_boom](images/party_explosions_boom.jpg)



## Installation

```sh
$ python3 -m pip install average-pixels
```
    
## Configuration
The application in `download` mode uses [Bing Search API](https://www.microsoft.com/cognitive-services/en-us/bing-image-search-api) to search for images so it requires the user to have an API key activated for Bing's search service. To obtain one:

- [Create a Microsoft account](https://signup.live.com/signup) if you don't have one
- Get an API key for the [Bing Image Search Service](https://www.microsoft.com/cognitive-services/en-us/bing-image-search-api)
    
    
Once obtained, the key may be provided through various methods:

- When prompted by the application
- By storing it in `~/.average_pixels_api`
- Or via the `AVERAGE_PIXELS_API` environment variable (e.g. `$ export AVERAGE_PIXELS_API=$key`)

## Example usage:

The application has 2 modes:

- `local`: Combines local files and outputs the combined image
- `download`: Takes keywords from the user, and combines images from Bing Image Search

```sh
$ average-pixels download "black cats"
```
    
![black_cats](images/black_cats.jpg)

```sh
$ average-pixels download "green field blue sky"
```
    
![green_field_blue_sky](images/green_field_blue_sky.jpg)

```sh
$ average-pixels download "just give me some random photo"
```

![just_give_me_some_random_photo](images/just_give_me_some_random_photo.jpg)

```sh
$ average-pixels download "no"
```

![no](images/no.jpg)

```sh
$ average-pixels download "insects" --count 30
```

![insects](images/insects.jpg)

```sh
$ average-pixels local /tmp/average_images --offset 40
```

![existing_dir](images/existing_dir.jpg)

```sh
$ average-pixels download "turner" --count 20
```

![turner](images/turner.jpg)

```sh
$ average-pixels download "jackson pollock painting" --count 10 --offset 30
```

![jackson_pollock](images/jackson_pollock_painting.jpg)

```sh
$ average-pixels download "green" --count 100
```

![green](images/green.jpg)

```sh
$ average-pixels local images/
```

![local_dir](images/output.jpg)