semvec/pypi-packages huggingface dataset:
watttime-api-wrapper 1.0.2
Python API wrapper for the WattTime API
Requires Python: >=3.7

# WattTime-API-Wrapper
Python API wrapper for the WattTime API: https://www.watttime.org/api-documentation
## Key Features
* Full support for all endpoints and parameters.
* API key will be automatically updated once it has expired (every 30 mins).
* Built in rate limiting to comply with WattTime API ussage guidelines (3000 requests/5 mins)
* Increased performance by reusing [session object](https://docs.python-requests.org/en/master/user/advanced/#session-objects) accross requests.
* Additional QoL features to facilitate working with response data.
    * Option to save Historical Emissions response as .zip file and extract contents.
    * Option to combine extracted .csv files into a single file.

# Installation Instructions
## Install Requirements (If Necessary)
* Both "pandas" and "requests" libraries are required to use this library.
```
pip install pandas
```
```
pip install requests
```

## Install Library
```
pip install watttime-api-wrapper
```

# Usage Instructions
## Register Account
* This step is only required if you do not already have a WattTime account.
```
from WattTime import WattTime


username = "{username}"  # required
password = "{password}"  # required
email = "{user@email.com}"  # required
org = "{organization}"  # optional
wt = WattTime.RegisterNewUser(username, password, email)
```
## Create a Client
* Once you have registered an account, saving your username and password as environment variables is recommended.
```
from WattTime import WattTime
import os


username = os.getenv("WATTTIME_API_USERNAME")
password = os.getenv("WATTTIME_API_PASSWORD")
wt = WattTime.GridEmissionsInformation(username, password)
```
## Use the Client
#### Determine Grid Region
```
latitude = 33.844978
longitude = -118.387238
wt.determine_grid_region(latitude, longitude)
```

The output is similar to the following:
```
> {'abbrev': 'CAISO_LONGBEACH', 'name': 'California ISO Long Beach', 'id': 233}
```

* For a full list of ussage examples, see the [WattTime API Demo.ipynb](https://github.com/aarongzmn/watttime-api-wrapper/blob/main/WattTime%20API%20Demo.ipynb) notebook that has been included in this repository.
disnake-paginator-easy 0.0.2
This is an additional module that will help you create a paginator

# Disnake Paginator
This is a simple library that can help you create a Paginator on Disnake

[![Downloads](https://pepy.tech/badge/disnake-paginator-easy)](https://pepy.tech/project/disnake-paginator-easy)

# Installation
```py
pip install disnakepaginator
```
# Parameters

| Name | Description |
|:-:|:-:|
| timeout | Button duration |
| footerpage |  Page counter in footer |
| footerdatetime | Current time in footer |
| footerboticon | Bot icon in footer (Can be used with everything) |
# Code example

```py
import disnake
from disnake.ext import commands
from disnake_paginator import Paginator

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print(f"Logged in as {bot.user} | ID: {bot.user.id}")
    print("------")

@bot.slash_command(name='test')
async def test-paginator(ctx):
    e1 = disnake.Embed(title='Test 1', description='Test 1', color=disnake.Color.blue())
    e2 = disnake.Embed(title='Test 2', description='Test 2', color=disnake.Color.green())
    e3 = disnake.Embed(title='Test 3', description='Test 3', color=disnake.Color.blurple())

    emb = [e1, e2, e3]
    msg = await ctx.send(embed=emb[0])

    pages = Paginator(msg, emb, ctx.author, bot, timeout=15, footerpage=False, footerdatetime=False, footerboticon=False)
    await pages.start()

bot.run('token')
```
# Support
[Lukef#3842](https://discordapp.com/users/689205223306297416) | [Server](https://discord.gg/CmMchZrDYg) | [Saeland](https://discord.com/api/oauth2/authorize?client_id=865905229575618570&permissions=545460846583&scope=bot%20applications.commands)