semvec/pypi-packages huggingface dataset:
gsheet-player 0.2.1
Data class to hold a player information from a spreadsheet row
Requires Python: >=3.9

# Google Sheet Tennis Player

gsheet-player is a Python library for dealing with a Google Sheet of tennis
player information.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install gsheet-player.

```bash
pip install gsheet-player
```

## Usage

```python
import gsheet-player

# Given information about a Google Sheet in this dictionary
gsheet = {
        "spreadsheetId": "1eUR2RpS-yvA8cb-IlwHqmfphHgaKb2SXXREaYEPJrMU",
        "sheetId": "1088338784",
        "sheetName": "Members",
    }
# read_gsheet returns all rows in a list of lists
all_rows = read_gsheet(ssm_client, gsheet["spreadsheetId"], gsheet["sheetName"] + "!A1:N800")

# read_gsheets returns a dictionary with one value as key and the gsheetPlayer object as value
gsheetPlayers = read_gsheets(gsheet, all_rows)

```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
thelemic-date 5.93
A class for Thelemic date and time calculations.

# Thelemic Date Class for Python

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![GitHub Issues](https://img.shields.io/github/issues/LilithXara/ThelemicDate.svg)](https://github.com/LilithXara/ThelemicDate/issues)
[![GitHub Stars](https://img.shields.io/github/stars/LilithXara/ThelemicDate.svg)](https://github.com/LilithXara/ThelemicDate/stargazers)


Do what thou wilt shall be the whole of the Law. 

Welcome to Thelemic Date Class for Python! This Python package allows you to work with Thelemic dates, providing methods to obtain the current Thelemic date or calculate a specific Thelemic date based on a given Gregorian date and time.

## Features

- Get the current Thelemic date for a specific location.
- Calculate a specific Thelemic date and time based on a given Gregorian date and time.
- Easy to use and integrate into your Python projects.

## Easy Installation

pip install thelemic-date

## Usage
To use the Thelemic Date Class, follow the examples below:

```
from thelemic_date import ThelemicDate

## Get the current Thelemic date for a specific location
date_data = ThelemicDate()
location = "Las Vegas, NV"
current_date = date_data.now(location)
print(current_date)

## Calculate a specific Thelemic date and time based on a given Gregorian date and time
location = "Las Vegas, NV"
year, month, day, hour, minute = 1976, 1, 13, 8, 25
specific_day = date_data.in_day(year, month, day, hour, minute, location)
print(specific_day)
```

## License
This project is licensed under the MIT License. For more information, please refer to the LICENSE file.

## Issues
If you encounter any issues or have suggestions for improvements, please feel free to open an issue. Your feedback is highly appreciated.

## Contributing
Contributions are welcome! If you would like to contribute to this project, please follow the guidelines in CONTRIBUTING.md.

## Acknowledgments
This project was inspired by the principles and practices of Thelema. I also want to personally thank all of thoe on my discord server, http://discord.gg/agapethelema 

## Contact
For any inquiries or questions, please contact the project maintainer, Lilith Vala Xara, lvx@dream.am

Love is the law, love under will.  

Lilith
botlogging 2.0.0
A logging package for Discord bots
Requires Python: >=3.6

# BotLogging

BotLogging is a logging package for Discord bots. It allows bot developers to log to Discord channels along with the standard terminal console, providing an easy way to track events and errors.

```bash
pip install botlogging
```

## Logging Levels

The logging interface is designed to simulate the standard Python logging levels: `debug`, `info`, `warning`, and `error`. 

### Debug / Info / Warning

The first three levels by default do *not* send to Discord. However, setting `send=True` provides this.

```py
from discord.ext import commands
import botlogging

token = ""
bot = commands.Bot(token)
logger = botlogging.BotLogger(bot=bot, name="mybot")
logging_channel = 818657960038250216

@bot.command(name="echo")
async def echo(ctx, *, input: str):
    await logger.info("Executing echo command", send=True, channel=logging_channel)
    await ctx.send(content=input)
```

### Error

For errors, the default is to send to Discord along with a traceback. Note, `critical=True` will add a mention to the message, so the guild owner will be notified directly.

```py
@bot.command(name="run")
async def run(ctx):
    try:
        await some_function()
    except Exception as e:
        await logger.error(
            "Could not execute some_function!", 
            exception=e, 
            context=context, 
            channel=logging_channel, 
            critical=True
        )

    await ctx.send(content=input)
```

## Console

If you just want to log to the standard logging console, you can still reference it with the bot logger. This is useful because it is not an async method and can be used in synchronous code.

```py
def setup_bot_config(bot, logger):
    logger.console.debug("Loading bot config")
    # ...
```

## Delayed logs

To avoid rate limiting issues, you can delay log events using a delayed logger.

```py
from discord.ext import commands
import botlogging

logger = botlogging.DelayedLogger(bot=bot, name="mybot")
```

then within your event loop, run

```py
logger.register_queue()
```

## Custom embeds

You can override the embeds sent to Discord by passing in your own embeds.

```py
# create a custom embed
embed = discord.Embed(description="Custom embed!")
embed.add_field(name="Some custom field", value="some custom value")

await logger.info("Executing echo command", send=True, channel=logging_channel, embed=embed)
```

Note: this still adds in base formatting to the embed such as color and title.