semvec/pypi-packages huggingface dataset:
Battleships-api 0.1.2
Play Battleships, includes a basic cli front end
Requires Python: >=3.6

Python project to write a cli version of the classic game battleships. Uses classes. Works as an API, called from a seperate file, only imports needed are the references. Started as a project to cement my knowledge of the MVC patten, python classes, OOP and parts of the python standard libaries.

Features:
  human player input to place ships (checks for valid ship placements)
  auto populate boards for computer players
  human readable boards
  separate boards to record moves taken
  cheat mode to see the computer player's board

  To use the CLI front end, and play the game, install the module, then simply run
   `Battleships_api.CLIBattleships`
   eg.
   `py -m Battleships.CLIBattleships`

This is the list of things that I think will end up with a reasonable working version of battleships. Please add to this list if you think of things that will be useful to the project.

- Documentation for the API!!
- Unittests
- Have ship placement done on an individual basis so that front end can control display of the board.
- Refactor winner method so that take shot returns simpler results. Winner should only return the winner not moves made as well.
- Highlight last incoming shot when displaying player board in cli
- Implement unit tests for public methods
- Build a web front end
- Use a framework such as Flask to make calls to the api according to GET and POST requests.

In the future I plan to rebuild this in c++ for the command line, and possibly Java to run as a back end to a web app.
SBP-geologyHeron 0.0.1
A scientific package to solve Heron shortest path problem in geometry
Requires Python: >=3.6
Keywords: "Science By Programming","Geometry","Python","Heron shortest path problem"

# SBP-geologyHeron Package

Hi, I'm Mohammad Ghiasvand Mohammadkhani, the author of this python scientific package .
This package and the programming idea of this package to solve the Heron shortest problem is unique in the World Wide Web and I am the first person who has created this python package .

To use this scientific package,at first you need to install it by pip command, then you have to import SBP-geologyHeron from it ;Then if you want to see an output from that, you need to do the following path in the next paragraph .

The description of Heron shortest path problem is 'Which path minimizes the distance needed to get water from the river and then transport it to the green village from the position that you were at first ?'
If you imagine the all of the Axis x as the river and code the text in the quotation, "print(SBP-geologyHeron.heronShortestPath())", you need to pass 4 arguments into heronShortestPath function ;The first one is the x-coordinate of the first position and the second one is the y-coordinate of the first position and the third one is the x-coordinate of the green village position and the fourth one is the y-coordinate of the green village position ;Then if you run the code it will give you the exact spot of the river that you have to pick up water from that to wend the shortest possible path (it means, if you go to that spot from your first position in a straight line and go to the green village afterwards in a straight line, you have transported water by wending the shortest possible path).

But please note that if you enter one of the y coordinates equal to zero, or entering one of the y coordinates negative and also the other one positive, you will encounter to an error (because in that case Heron shortest path problem is not defined due to it would be really easy to solve it in that way and the answer would be a straight line that matches the first position to the green village position). 

Thanks,
Hope to be helpfull for you .
snakecraft 0.2.1
Describe your Terraform project using Python with inheritance
Requires Python: >=3.6.1,<4.0
Keywords: terraform,codegeneration

# Snakecraft: Generate Terraform code from Python

Have you ever felt writing Terraform code was very verbose? Have you ever disliked passing variables into layers of modules?

Snakecraft allows you to write your Terraform configuration in Python and generate the necessary Terraform code (as a `.tf.json` file).

Python 3.6 is required at least.

## Installing and running Snakecraft

You can install Snakecraft using `pip`:

```bash
pip install -U snakecraft
```

Afterwards, you can author Snakecraft modules/packages in Python code. If you want to
dive into Snakecraft by reading the [examples](https://github.com/xoraxax/snakecraft/tree/main/examples), you can clone them from Github
and process them using Snakecraft:

```bash
git clone https://github.com/xoraxax/snakecraft.git

cd snakecraft/examples

# The next commands reads snakecraft.ini:
snakecraft

# Now we can run Terraform:
cd simple_example
terraform init
terraform plan
```

As Snakecraft is still in an early stage, documentation is to be done.