semvec/pypi-packages huggingface dataset:
xiangcheck 0.1.2
Validate move correctness for Xiangqi apps
License: MIT

# Xiangqi Checker

A simple module for checking the legality of xiangqi moves, derived from https://github.com/shaochuan/Xiangqi. Currently untested and experimental.

## Get it
`pip install xiangcheck`

## Use it

Currently uses a move notation that has no relation to the real game. Translation coming soon.

```python
import xiangcheck

checker = xiangcheck.Checker()

# can move a soldier forward?
checker.check_move((4,6),(4,5))
# True

# move that soldier forward
checker.make_move((4,6),(4,5))

# that old move is no longer valid
checker.check_move((4,6),(4,5))
# False
```
gettup 0.3.0
A command-line file sharing utility for ge.tt
License: MIT
Keywords: CLI filesharing file sharing upload command-line

GettUp
======

GettUp is a simple command line utility which lets you share and upload files to the [ge.tt](http://ge.tt) sharing service quickly and easily.

## Installation 
GettUp is distributed as a python package. Do the following to install

``` 
sudo pip install gettup
OR 
sudo easy_install gettup
OR
# download source and cd to it
sudo python setup.py install
```

## Usage
1. Make an account on [Ge.tt](http://ge.tt)
2. Obtain an api key by [creating an app](http://ge.tt/developers/create).
3. Run the application. The app will ask for your credentials the first the app is run. 

```
$ gett file1.txt
Please enter your Ge.tt email: example@example.com
Please enter your Ge.tt password: verysecurepassword
Please enter your API KEY: supersecretapikey
Validating credentials ...
Credentials verified ...
Constructing a new share ...
Uploading file: README.md
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/6zkcEkB1/v/0
----------------------------------------
```

## Examples
`gett` displays a helpful help text when run with the `-h` flag.
``` 
$ gett
usage: gett.py [-h] [-s share_id] [-t share_title] [-i share_id]
               [-d share_id [share_id ...]] [-l] [-r file_url [file_url ...]]
               [-q]
               [files [files ...]]

Upload files to ge.tt via the command line
```

Command Examples - 
```
$ gett                            # show help
$ gett file1 file2 file3          # upload files (in same share)
$ gett *.py                       # linux globs (upload)
$ gett *.py -s sharename          # upload file in the specific share
$ gett *.py -s sharename -t title # gives the title to the new share
$ gett --list                     # show list of shares
$ gett -d share1 share2 share3    # deletes the shares
$ gett -r url1 url2 url 3         # deletes the file url
$ gett -q {etc}                   # quiet mode
$ gett -i sharename               # get share info
```

To upload a file, use the -u flag. By default, `gett` will create a new share for uploading the file. Use the -s flag, alongwith a sharename to upload to an existing share
```
$ gett something.txt
Constructing a new share ...
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/1NcgabB1/v/0
----------------------------------------

$ gett something.txt -s 5d1ctaB1
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/5d1ctaB1/v/1
```

To delete a share use the -d flag. To get more info about a share, use the -s flag accompanied by a sharename.
```
$ gett -d 1NcgabB1
Destroying share ...
1NcgabB1 share has been destroyed

$ gett -r http://ge.tt/6zkcEkB1/v/0
Deleting file ...
File has been successfully destroyed
```

## Upgrade
To upgrade GettUp run the following command
```
sudo pip install -U gettup
```

## Thanks 
Thanks to [gett-cli](https://bitbucket.org/mickael9/gett-cli) for inspiration, which is, at present, for Python 3 only.

## License
Gettup is released under the MIT license.
pngcanvas 1.0.3
A minimalist library to render PNG images using pure Python.
License: MIT

pngcanvas
=========

A minimalist library to render PNG images using pure Python inspired by Thomas Fuchs' spark_pr library, originally published here in 2005.

Given that I get a couple of mails about it every quarter or so, and that it's been consistently popular with the Google App Engine crowd, I decided to release it under the MIT license and welcome any contributions towards speeding it up, cleaning it up and making it generally more useful.

So ping me if you want commit access (or just send me a pull request with any enhancements).

Features
--------

As it stands, you can do the following things with a `PNGCanvas` instance:

* Set single pixels
* Draw antialiased lines and polylines
* Draw rectangles (outlined and filled)
* Draw vertical gradients
* Copy (and blend) a rectangular segment of the image onto another location
* Save it as a PNG file
* Load a PNG file into it (with some restrictions)

...all of it in pure Python.