semvec/pypi-packages huggingface dataset:
ClientWars 1.4.1
War game, but for programmers.
License: MIT
Keywords: game,war,programming,win,multiplayers

# ClientWars

#### War game, but for programmers.


Python Library for playing in ServerWars Game.

### Install
```shell script
pip3 install -U ClientWars
```

### Example code:
```python
from client_wars import Game

game = Game("<TOKEN>")


def turn(game):
    conquers = game.conquerable_tiles()
    """
    The method conquerable_tiles return's list of per of neighbors tiles when your tile has more power
    >>> conquers
    >>> [(your_tile, enemy_tile), ...]
    """

    if not conquers:
        print("No conquers")
        return  # Here you can move reinforcements to the outside tiles for example

    game.move(conquers[0][0], conquers[0][1])
    print("Conquer", conquers[0][1])

game.set_turn_method(turn)
game.run()

```

### Usage
```
python3 your_code.py
```

### [Wiki](https://github.com/hvuhsg/ClientWars/wiki)
query-factory 0.1.0
Tool to organize query through factories.
License: MIT

QUERY FACTORY
=============

This tool should help organizing SQL queries into python projects.


USAGE
-----

You should seperate query template in a yaml file as in the following example:

```yaml
# template.yaml
description: |
  This is a simple query for demonstration purpose.

variables:
  start_date:
    description: UTC datetime string to gather data from (inclusive)
    required: true
  end_date:
    description: UTC datetime string to gather data to (exclusive)
    required: true
  category_id:
    description: Category id to filter on. If null, filter won't apply.
    required: false
    default: null
  market:
    description: Market scope (either 'pro' or 'part').
    required: false
    default: part

query_template: |
  SELECT *
  FROM db.table
  WHERE event_date >= {{ start_date }}
  AND event_date < {{ end_date }}
  AND market = {{ market }}
  {% if category_id %}
  AND category_id = {{ category_id }}
  {% endif %}
  LIMIT = 100;

```

Then get your factory up and run some queries:
```python
from query_factory import SQLQueryFactory

# factory setup.
factory = SQLQueryFactory("/path/to/template.yaml")
```

Factory carries some information about template as:
```python
>>> set(factory.required_variables)
{'end_date', 'start_date'}

>>> set(factory.optional_variables)
{'category_id'}

>>> factory.describe("start_date")
'UTC datetime string to gather data from (inclusive)'
```

Here is how you can variabilize your queries using a factory as define above:
```python
import pandas as pd

connection = connect_to_sql_query_engine()

data_2020_02_01 = pd.read_sql(
    factory(
        start_date="2020-02-01",
        end_date="2020-02-02"
    ),
    con=connection
)
data_2020_02_02_filtered_on_categ1 = pd.read_sql(
    factory(
        start_date="2020-02-02", 
        end_date="2020-02-03", 
        category_id="categ_1"
    ),
    con=connection
)
```
TextJustify 0.0.5
A text justify package
License: MIT
Keywords: justify

# A text alignment justification package.


The text alignment justifies package will provide you four types of alignment.

- Left (Default)
- Right
- Center
- Justify both

When you use the above three justification then maybe have a blank space and that space you can also fill the empty place with your own identifiers like `*` `#` or anything.

### Setup `TextJustify`


```bash
pip install TextJustify
```

# Usage


```python
import TextJustify

justify_text=TextJustify.justify_text(sample_text, width, align, fill)
print(justify_text)
```

Here `fill` is an optional value. If you don't pass any special symbol or identifier then it will use the default space.

```python

sample_text = "Your text that you want to justify"
width = 50 # Here 50 is an example value and it will be integer
align =  "left" # Default is "left". Rest of the alignment are "right", "center", "justify"
fill = " " # Default is a space. You can use your own like "*", "#" etc.

```


CHANGE LOG
-----------

0.0.5 (February 9, 2021)
------------------------
- Added documentations