semvec/pypi-packages huggingface dataset:
amkiller 0.0.1
WASAP everybody
Requires Python: >=3.7

# PC KILLER WITH PYTHON
## this python script has only one File: **killer** and inside ther's just one funcion: **start**
## the script will use the **pyautogui**, **time**, **random** libraries and, the ONLY way to stop it is by shuting down the computer..
## by the way the program will start in a dramatic way
connect-four-game 0.1.6
Example PyPI (Python Package Index) Package
Requires Python: >=3.6
Keywords: connect_four_game,pypi,package

### Installation

```
pip install connect-four-game
```

## Usage

### Human vs Human
```python
from connect_four_game import Game, Agent

if __name__ == '__main__':
  red_agent = Agent('RED TEAM', 'red')
  blue_agent = Agent('BLUE TEAM', 'blue')
  lcm = Game(red_agent, blue_agent)
  lcm.start_game()
```

### AI vs AI
```python
from connect_four_game import Game

COLUMN_COUNT = 12 # normally 7
ROW_COUNT = 9 # normally 6

if __name__ == '__main__':
  red_rl_agent = RLAgent('red') # RLAgent is not included in the package
  blue_rl_agent = RLAgent('blue')
  game = Game(red_rl_agent, blue_rl_agent, row_count=ROW_COUNT, column_count=COLUMN_COUNT)
  game.start_game()
```

#### Example of an RL Agent which randomly chooses columns

```python
import random
from connect_four_game import BaseAgent
import numpy as np

class RLAgent(BaseAgent):
  def __init__(self, color: str, initial_exploration_rate=0.9):
    self.name = f'RL-Agent-{color.capitalize()}'
    self.color = color
    self.symbol = color[0].capitalize()

  def choose_action(self):
    return random.randint(0, len(self.game.grid[0]) - 1)

  def place_block(self):
    column = self.choose_action()
    return self.board.place_block(column, self.symbol)

  def post_evaluation_hook(self):
    print('This method is called after each move has been evaluated')
```

### Human vs AI
On the way...
regrez 2.1.9
Easiest way to implement linear regression.
Keywords: regression,machine learning

This is a simple Python package that aims to make using linear regression easier for programmers.

You can create a simple linear regression model as following:

```
from regrez import Models

m = Models.Simple("path/to/csv", "label for column that'll be used for x axis", "label for column that'll be used for y axis")
```

After that, you can train your model using `m.Train()` and test using `m.Test(test_x, test_y)`. Alternatively, there is a function called `m.TrainAndTest()` you can use if you only want to see how accurate would the model work. It separates 20% of the data for testing, trains the model with the rest of it, tests the model with separated data and shows how accurate your model is. You can use `m.Visualize()` after training if you want to see a plot showing both data points and the line to see how relative your variables are.

You can create a multiple regression model as following:

```
from regrez import Models
m = Models.Multiple("path/to/csv", ["X Label 1", "X Label 2", "X Label 3"], ["Y Label"])
```

After that, you can train your model using `m.Train()` and test using `m.Test(test_x, test_y)`. Alternatively, there is a function called `m.TrainAndTest()` you can use if you only want to see how accurate would the model work. It separates 20% of the data for testing, trains the model with the rest of it, tests the model with separated data and shows how accurate your model is. There is no `m.Visualize()` for multiple linear regression models.
zim2txt 1.0.0
A simple tool to extract articles from a .zim file into .txt files.
Keywords: zim,wikipedia,txt

zim2txt is a Python module that scrapes through a .zim file and creates .txt files from each article it contains. This tool is designed for Linux systems but it works with WSL (Windows Subsystem for Linux) as well. You must install zim-tools `(sudo apt-get install zimtools)` in advance for this module to work. Here is how to use the module: 
```
import zim2txt
zim2txt.ZimTools.Export("Path for .zim file", "Path for a temporary folder that will be deleted later (I used /usr/games/newfolder with WSL since it didn't work for any folder that is out of root directory. If it does for you, then you can use any other folder as well.)", "Path for .txt files to be saved (do not use same path with temporary files)", "encoding method, default set to utf8")

# Example

import zim2txt
zim2txt.ZimTools.Export("/data/articles.zim", "/usr/games/newfolder") # You don't have to pass encoding method any argument if you're cool with utf8
```
Amine 0.0.1
SUUUI
Requires Python: >=3.7

### PC KILLER WITH PYTHON
# this python script has only one File: **killer** and inside ther's just one funcion: **start**
# the script will use the **pyautogui**, **time**, **random** libraries and, the ONLY way to stop it is by shuting down the computer..
# by the way the program will start in a dramatic way
proxy-mgr 0.1.0
Proxy Manager
Requires Python: >=3.6,<4.0

> This module loads and uses a proxy for the convenience of using requests, aiohttp, etc.
> <br>Fork https://pypi.org/project/proxy-manager/
## Installation
This module is available via pip:
```
$ pip install proxy-MGR
```
## Basic Usage
`proxies.txt:`
```
https://00.11.222.33:4444
https://55.66.77.88:9999@username:password
socks5://10.11.121.13:1414@username:password
15.16.171.18:1919
20.21.222.23:2424@username:password
25.26.272.28:2929:username:password
```
`test.py:`
```python
from ProxyMGR import ProxyMGR

MGR = ProxyMGR("proxies.txt")
# MGR = ProxyMGR(proxy_list=["00.11.222.33:4444@username:password"])

# Random proxy
random_proxy = MGR.random_proxy()
print(random_proxy) # https://00.11.222.33:4444

# Next proxy
proxy = MGR.next_proxy()
print(proxy) # https://00.11.222.33:4444
proxy = MGR.next_proxy()
print(proxy) # https://55.66.77.88:9999@username:password
proxy = MGR.next_proxy()
print(proxy) # socks5://10.11.121.13:1414@username:password

# Proxy dict
print(random_proxy.get_dict()) # {'http': 'https://00.11.222.33:4444', 'https': 'https://00.11.222.33:4444'}

# Proxy info
print(random_proxy.get_info()) # {"ip":"81.222.188.37","success":true,"type":"IPv4","continent":"Europe" ...
```
## Documentation
## Proxy File Format
Proxies in proxy files must have one of the following formats:
```
ip:port
ip:port:username:password
ip:port@username:password
http://ip:port
...
```
These can be combined and alternated.
## ProxyMGR
`ProxyMGR(proxy_file_path)`<br>
`ProxyMGR(proxy_list)`
### Parameters
1. `proxy_file_path` (string) — File path to the proxy (Required, if proxy_list is not specified)
2. `proxy_list` (list) — List proxy (Required, if proxy_file_path is not specified)
3. `default_type` (string) — Default proxy type (example `ip:port` -> `https://ip:port`) (optional)
## ProxyMGR.random_proxy()
Returns a random proxy of those loaded into the proxy manager
## ProxyMGR.next_proxy()
### Parameters
1. `loop` (bool) — Repeat proxies if they run out
## ProxyMGR.get_dict()
dict - Proxy as a dict in the form `{'http':'http://...', 'https':'https://...'}` for use with requests
## ProxyMGR.get_info()
Website Request https://ipwho.is with proxy and return json
proxymgr 0.1.0
Proxy Manager
Requires Python: >=3.6,<4.0

> This module loads and uses a proxy for the convenience of using requests, aiohttp, etc.
> <br>Fork https://pypi.org/project/proxy-manager/
## Installation
This module is available via pip:
```
$ pip install proxy-MGR
```
## Basic Usage
`proxies.txt:`
```
https://00.11.222.33:4444
https://55.66.77.88:9999@username:password
socks5://10.11.121.13:1414@username:password
15.16.171.18:1919
20.21.222.23:2424@username:password
25.26.272.28:2929:username:password
```
`test.py:`
```python
from ProxyMGR import ProxyMGR

MGR = ProxyMGR("proxies.txt")
# MGR = ProxyMGR(proxy_list=["00.11.222.33:4444@username:password"])

# Random proxy
random_proxy = MGR.random_proxy()
print(random_proxy) # https://00.11.222.33:4444

# Next proxy
proxy = MGR.next_proxy()
print(proxy) # https://00.11.222.33:4444
proxy = MGR.next_proxy()
print(proxy) # https://55.66.77.88:9999@username:password
proxy = MGR.next_proxy()
print(proxy) # socks5://10.11.121.13:1414@username:password

# Proxy dict
print(random_proxy.get_dict()) # {'http': 'https://00.11.222.33:4444', 'https': 'https://00.11.222.33:4444'}

# Proxy info
print(random_proxy.get_info()) # {"ip":"81.222.188.37","success":true,"type":"IPv4","continent":"Europe" ...
```
## Documentation
## Proxy File Format
Proxies in proxy files must have one of the following formats:
```
ip:port
ip:port:username:password
ip:port@username:password
http://ip:port
...
```
These can be combined and alternated.
## ProxyMGR
`ProxyMGR(proxy_file_path)`<br>
`ProxyMGR(proxy_list)`
### Parameters
1. `proxy_file_path` (string) — File path to the proxy (Required, if proxy_list is not specified)
2. `proxy_list` (list) — List proxy (Required, if proxy_file_path is not specified)
3. `default_type` (string) — Default proxy type (example `ip:port` -> `https://ip:port`) (optional)
## ProxyMGR.random_proxy()
Returns a random proxy of those loaded into the proxy manager
## ProxyMGR.next_proxy()
### Parameters
1. `loop` (bool) — Repeat proxies if they run out
## ProxyMGR.get_dict()
dict - Proxy as a dict in the form `{'http':'http://...', 'https':'https://...'}` for use with requests
## ProxyMGR.get_info()
Website Request https://ipwho.is with proxy and return json