semvec/pypi-packages huggingface dataset:
alpha-trainer 0.1.0
Framework designed for training machine learning models for custom games
Requires Python: >=3.10

# Alpha Trainer - Machine Learning Game Training Framework

The Alpha Trainer package is a versatile framework designed for training machine learning models for custom games. It simplifies the process of training and evaluating models on custom game environments. This README provides an overview of the package and focuses on the main function, `simulate_game`.

## Installation

You can install the `alpha_trainer` package using pip:

```bash
pip install alpha_trainer
```

The "Example" section now includes a code snippet showing how to use the `simulate_game` function within the README.md file. You can customize the example to match your specific use case and provide more detailed information as needed.


### Example

Here's an example of how to use the `simulate_game` function:

```python
from alpha_trainer import simulate_game, AlphaTrainableGame, AlphaMove

# Define your custom game class
class MyGame(AlphaTrainableGame):
    # Implement your custom game logic here

# Simulate a game and collect data
game_results = simulate_game(MyGame, num_simulations=1000, model=my_model)

# Use the collected data to train and evaluate your machine learning model
# ...
```
spetslogging 0.0.1
SpetsLogging is a simple way to log in the console and in a file.
Requires Python: >=3.7
Keywords: Logging,write to file

SpetsLoging
=====

SpetsLogging is a simple way to log in the console and in a file.


Installing
----------

Install and update using [pip](https://pip.pypa.io/en/stable/getting-started/):
```text
$ pip install spetsloging
```


A Simple Example
----------------


main.py
```python
import spetslogging
import time
log = spetslogging.logger.Log()
log.settings(
    Format='%d%.%m%.%y% %h%:%m%:%s% %stat% >> %message%',
    Colors={
        'INFO': 'CYAN',
        'DEBUG': 'YELLOW',
        'WARNING': 'LIGHTRED'
    }
)
for i in range(5):
    log.info(i, file='test.log')
    log.error('Test', file='test.log')
    time.sleep(0.5)

log.debug('Program completed')
```

Output
```text
31.10.2023 12:10:41 [INFO] >> 0
31.10.2023 12:10:41 [ERROR] >> Test
31.10.2023 12:10:42 [INFO] >> 1
31.10.2023 12:10:42 [ERROR] >> Test
31.10.2023 12:10:42 [INFO] >> 2
31.10.2023 12:10:42 [ERROR] >> Test
31.10.2023 12:10:43 [INFO] >> 3
31.10.2023 12:10:43 [ERROR] >> Test
31.10.2023 12:10:43 [INFO] >> 4
31.10.2023 12:10:43 [ERROR] >> Test
31.10.2023 12:10:44 [DEBUG] >> Program completed
```


test.log
```log
31.10.2023 12:10:41 [INFO] >> 0
31.10.2023 12:10:41 [ERROR] >> Test
31.10.2023 12:10:42 [INFO] >> 1
31.10.2023 12:10:42 [ERROR] >> Test
31.10.2023 12:10:42 [INFO] >> 2
31.10.2023 12:10:42 [ERROR] >> Test
31.10.2023 12:10:43 [INFO] >> 3
31.10.2023 12:10:43 [ERROR] >> Test
31.10.2023 12:10:43 [INFO] >> 4
31.10.2023 12:10:43 [ERROR] >> Test
```


Donate
------

To support the development of the library, support its author.
https://donationalerts.com/r/dinamition


Links
-----

-   PyPI Releases: https://pypi.org/project/SpetsLoging/
-   Source Code: https://github.com/DiNAMitiON/SpetsLoging/
-   Issue Tracker: https://github.com/DiNAMitiON/SpetsLogging/issues/
-   SpetsDevelopers | Support: https://discord.gg/z5hEVQ5agn/
alphaess 0.0.18
A python library to retrieve energy statistics from your Alpha ESS inverter by polling the Alpha ESS web API.

## alphaess
This Python library logs in to cloud.alphaess.com and retrieves data on your Alpha ESS inverter, photovoltaic panels, and battery if you have one.

## Usage

Create a new Alpha ESS instance, log in, retrieve a list of Alpha ESS systems and request energy statistics of one of those Alpha ESS systems. 

## API

Currently this package uses an API that I reverse engineered the API from the Alpha ESS web app. This is an internal API subject to change at any time by Alpha ESS.

### Note

As of AlphaCloud V5.0.0.2 (2022-10-16) Alpha ESS introduced anti-crawl efforts to make retrieving data more difficult for packages like this one.

To be good internet citizens, it is advised that your polling frequency for any AlphaCloud endpoints are 10 seconds at a minimum.

# Methods

There are four public methods in this module

`authenticate(username, password)` - attempts to authenticate to the ALpha ESS API with a username and password combination, returns True or False depending on successful authentication or not

`getdata()` - having successfully authenticated attempts to get statistical energy data on all registered Alpha ESS systems - will return None if there are issues retrieving data from the Alpha ESS API.

`setbatterycharge(serial, enabled, cp1start, cp1end, cp2start, cp2end, chargestopsoc)` - having successfully authenticated set battery grid charging settings for the SN.

`setbatterydischarge(serial, enabled, dp1start, dp1end, dp2start, dp2end, dischargecutoffsoc)` - having successfully authenticated set battery discharge settings for the SN.
MIDP 0.0.4
Medical Image Development Packages

# Repo for Medical Image Analysis Tools
```shell
Copyright IDEA Lab, School of Biomedical Engineering, ShanghaiTech. Shanghai, China

Licensed under the the GPL (General Public License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Repo for Medical Image Analysis Tools (MIA-Tools)
Contact: JiamengLiu.PRC@gmail.com
```