semvec/pypi-packages huggingface dataset:
lastwrapper 0.0.1
LastWrapper is an API wrapper Last.FM, it is still in early development.
Requires Python: >=3.6

# LastWrapper
LastWrapper is an API wrapper for the [LastFM API](https://last.fm/api).
It is still in early development stages but look forward to more consistant updates

## Installation
Before anything, make sure you have the most up to date pip version.

Windows:
```
py -m pip install --upgrade pip
```
Linux/MAC OS
```
python3 -m pip install --upgrade pip
```

Now we can get into actually installing the package.

Method 1:
```
pip install git+https://github.com/owlq/lastwrapper.git
```
Method 2:
```
python -m pip install -U lastwrapper
```

## Getting an API key
To get an API key, you must first create an account on [LastFM](https://last.fm/join).
Once you have created an account, you can go to the [API page](https://www.last.fm/api/account/create) and create an API key.
Once you have created an API key, you can use it to access the wrapper.

## Examples

This project is mainly used for discord.py, but can be used for other reasons along the way.
Here is an example on how you can use this package in discord.py

```
import discord, lastwrapper
from discord.ext import commands

class Bot(commands.Bot):
    def __init__(self) -> None:
        intents = discord.Intents.default()
        intents.message_content = True

        super().__init__(intents=intents, command_prefix='!')

    async def on_ready(self) -> None:
        print(f'Logged in {self.user} | {self.user.id}')

bot = Bot()

@bot.command()
async def lastfm(ctx: commands.Context,  user: str) -> None:
    """Simple command to get the currently playing song, artist, and album of a user"""
    handler = LastFMHandler(username=user, apikey=APIKEY)

    data = await handler.get()
    await ctx.send(f"{user} is currently listening to {data['track']['name']}\n by {data['artist']['name']}\n on {data['album']['name']}")
```
PyStatsLearn 0.0.1
This is a python module which is made for learning purpose.
Requires Python: >=3.6

# PyStatsLearn

This is a python module which is made for education purpose. The aim is to implement machine learning algorithms and publish it. Currenlty this package has 2 functionalities
1. Calculating mean by taking a dataframe as an input. (Mean Calculates is not done by using any library. The code is developed from scratch)
2. Implemeted Gaussian Naive Bayes Classifier which is build upon numpy

# Installation

```
pip install PyStatsLearn
```

# Usage

```
import pandas as pd
from PyStatsLearn import Measure, GaussianNaiveBayesClassifier
from sklearn.model_selection import train_test_split

df = pd.read_excel('data.xlsx')

a = Measure(df)
print(a.mean('Insulin'))

b = GaussianNaiveBayesClassifier()

X = df.iloc[:, :-1]
y = df.iloc[:, -1]

X = X.to_numpy()
y = y.to_numpy()
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=.25)

nb_classifier = GaussianNaiveBayesClassifier()

nb_classifier.train(X_train, y_train)

predictions = nb_classifier.predict(X_test)
print(predictions)
```
twitch-thumbnail 1.1.1
Download Twitch channel thumbnail
Requires Python: >=3.9

# twitch-thumbnail

Download Twitch channel thumbnail

## Install

```bash
pip install twitch-thumbnail
```

**Require FFMPEG**

## Usage

### synchronous

```py
from twitch_thumbnail import download_thumbnail

download_thumbnail("woowakgood", "thumbnail.png")
```

### asynchronous

```py
import asyncio
from twitch_thumbnail.asynchronous import download_thumbnail

async def main():
    await download_thumbnail("woowakgood", "thumbnail.png")

asyncio.run(main())
```

## Twitch OAuth Token

https://twitch.tv -> Devtools Console

```js
document.cookie.split("; ").find((item) => item.startsWith("auth-token="))?.split("=")[1];
```

```py
download_thumbnail("woowakgood", "thumbnail.png", twitch_oauth="your-personal-oauth-token")
```