semvec/pypi-packages huggingface dataset:
dominion 0.0.1
Generate kingdom sets for the card game Dominion
License: MIT
Requires Python: >=3.6

# Kingdom generator for Dominion

This script generates recommended "kingdoms" for the card game [Dominion](https://en.wikipedia.org/wiki/Dominion_%28card_game%29) and its expansions.
It scrapes the [Dominion Strategy Wiki](http://wiki.dominionstrategy.com/index.php/Main_Page) to find connections between cards and then uses this graph to find sets of cards that should play well together.
In general, I've found the resulting games to be more fun than the randomly generated ones.

## Installation

The best way to install is using pip:

```bash
python -m pip install dominion
```

## Usage

You can generate a random, well-connected kingdom using all the expansions:

```bash
dominion generate
```

You can restrict the code to a subset of the expansions:

```bash
dominion generate -s base -s prosperity -s seaside
```

Note that you can list the supported expansions using:

```bash
dominion list sets
```

You can start the kingdom off with your favorite cards:

```bash
dominion generate -c "king's court" -c village
```

As above, you can see the available cards using:

```bash
dominion list cards
# or
dominion list cards -s prosperity -s base
```

Finally, for good measure you can get a deterministic result using:

```bash
dominion generate --seed 42
```

## Updating the graph

The graph of card information and connections is included in this repository, but you can update it using:

```bash
dominion setup data/cards.json
```

You'll need to have [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/) and [requests](https://requests.readthedocs.io) installed, and installing [tqdm](https://tqdm.github.io/) doesn't hurt.
dsa-reg 1.1.4
Register DSA items thumbnails and return homography matrix, image size,  x offset, y offset, scale x, and scale y. The registration code is based on OpenCV
License: MIT
Requires Python: >=2.7

## dsa_reg

This package approximately computes the offsets needed to register DSA (Digital Slide Archive) item thumbnails.



## Installations
__Through pypi package__
``` Shell
$ pip install dsa-reg
```

__From Source__
``` Shell
$ git clone git@github.com:mmasoud1/dsa_reg.git

```

## Usage
After the package is installed, main operation can be performed as follows:

__Register by Thumbnails__
``` Python
from dsa_reg import rigidRegByThumb

#param refItemId (string): ref image Id 
#param targetItemId (string): target image Id
#param xBaseUrl (string): DSA Server URL e.g. https://styx.neurology.emory.edu/girder/api/v1
#param xAuthentication: boolean (0,1)  
#param xEnhancement: boolean (0,1)  
#return (Dict): homography metrix, psnr, x offset, y offset, horizontal scaleX, vertical  scaleY

rigidRegByThumb(refItemId, targetItemId, xBaseUrl)

# e.g. 
rigidRegByThumb(refItemId = "5e361da534679044bda81b16", 
	            targetItemId = "5e361-SOME-OTHER-ID", 
	            xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1")



# if using a private DSA collection,  set xAuthentication = 1 to provide login credentials:

rigidRegByThumb(refItemId = "5e361da534679044bda81b16", 
	            targetItemId = "5e361-SOME-OTHER-ID", 
	            xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1", 
	            xAuthentication = 1, 
	            xEnhancement = 0)

# If a preprocessing is needed such that the tile needs enhancement before registration, set xEnhancement boolean value to 1

```


__Register by Magnification__
``` Python
from dsa_reg import rigidRegByMagnification

rigidRegByMagnification(refItemId, targetItemId, xBaseUrl)

#e.g. 
rigidRegByMagnification(refItemId = "5e361da534679044bda81b16", 
			            targetItemId = "5e361-SOME-OTHER-ID", 
			            xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1")

# magnification default value is 1



rigidRegByMagnification(refItemId, targetItemId, xBaseUrl, magnification,  xAuthentication)
# magnification can be smaller value < = 1 for fast processing and wise resources use

rigidRegByMagnification(refItemId, targetItemId, xBaseUrl, magnification,  xAuthentication, xEnhancement)

#e.g. 
rigidRegByMagnification(refItemId = "5e361da534679044bda81b16", 
			            targetItemId = "5e361-SOME-OTHER-ID", 
			            xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1",
			            magnification = 0.5,
			            xAuthentication = 1,
			            xEnhancement = 1)

```

## For contributing, issues and suggestions
Your contribution to enhance the registration technique is welcomed, please start by new issue or  pull a request.


### Next:
1. This is a demo of initial and approximated rigid registration results, the target is to extend the functionality to whole slide images registration in fast, accurate mode.