semvec/pypi-packages huggingface dataset:
sen-pai 3.0.1
A Anime wrapper for the Discord API
License: MIT
Requires Python: >=3.8.0

.. image:: https://svgshare.com/i/bd_.svg
   :target: https://github.com/senpai-development/
    :alt: Senpai Banner
    

.. image:: https://img.shields.io/discord/897666638831308811?color=blue&logo=discord&logoColor=white&label=Discord
   :target: https://discord.gg/jBtKDBneJg
   :alt: Discord server invite
.. image:: https://img.shields.io/pypi/v/sen-pai.svg?logo=python
   :target: https://pypi.python.org/pypi/sen-pai
   :alt: PyPI version info
.. image:: https://img.shields.io/pypi/pyversions/sen-pai.svg?logo=python
   :target: https://pypi.python.org/pypi/sen-pai
   :alt: PyPI download info
.. image:: 	https://img.shields.io/pypi/dm/sen-pai?color=blue&logo=python
   :target: https://pypi.python.org/pypi/sen-pai
   :alt: PyPI supported Python versions
.. image:: https://readthedocs.org/projects/senpai/badge/?version=latest
    :target: https://discord.readthedocs.io/en/master/?badge=master
    :alt: Documentation Status


A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.

Key Features
-------------

- Modern Pythonic API using ``async`` and ``await``.
- Proper rate limit handling.
- Optimised in both speed and memory.

Installing
----------

**Python 3.8 or higher is required**

To install the library without full voice support, you can just run the following command:

.. code:: sh

    # Linux/macOS
    python3 -m pip install -U sen-pai

    # Windows
    py -3 -m pip install -U sen-pai

Otherwise to get voice support you should run the following command:

.. code:: sh

    # Linux/macOS
    python3 -m pip install -U "sen-pai[voice]"

    # Windows
    py -3 -m pip install -U sen-pai[voice]


To install the development version, do the following:

.. code:: sh

    $ git clone https://github.com/senpai-development/senpai
    $ cd senpai
    $ python3 -m pip install -U .[voice]


Optional Packages
~~~~~~~~~~~~~~~~~~

* `PyNaCl <https://pypi.org/project/PyNaCl/>`__ (for voice support)

Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. ``apt``, ``dnf``, etc) before running the above commands:

* libffi-dev (or ``libffi-devel`` on some systems)
* python-dev (e.g. ``python3.6-dev`` for Python 3.6)

Quick Example
--------------

.. code:: py

    import senpai
    from senpai import anime

    bunny = anime.Bunny(command_prefix='>')
    
    @bunny.event
    async def on_ready():
        print('UwU online!')
    
    @bunny.command()
    async def ping(ctx):
        await ctx.send('pong uwu')

    bunny.run('token')

You can find more examples in the examples directory.

Utility Support
----———————————-
For other utilities such as music commands are available at `BunnyUtils <https://github.com/senpai-development/BunnyUtils>`_

This includes paginator and invite manager, more updates to BunnyUtils is coming soon!

Links
------

- `Documentation <https://discord.readthedocs.io/en/latest/index.html>`_
- `Official Discord Server <https://discord.gg/jBtKDBneJg>`_
- `Discord API <https://discord.gg/discord-api>`_
epkeeperlib 1.0.20
EPKEEPER common utility package
License: MIT

# epkeeperlib通用包

## common
通用模块
***
> - utils  
> 通用工具  
> `divide` 除法函数。可指定小数点位数，可生成占比、增减比例的百分值  
> `print_df` 打印pd.DataFrame。可直接复制进excel  
> `create_path` 若不存在该路径，则创建该路径  

## bill
电费账单相关工具
***
> - ep_calc  
> 电能计算工具  
> `get_ele_use` 根据输入的电能值的时间序列（pd.Series），输出用电量  

> - monitor_bill  
> 监控电费账单计算工具  
> `get_unit_price` 根据输入的电价参数匹配到相应的电价信息（pd.DataFrame）  
> `get_pf_adjust_rate` 功率因数调整比例计算函数  

> - tou  
> 分时段工具  
> `TOU_HOUR` 每个省份的分时段参数  
> `get_season_code` 获取电价的季节码（夏季、非夏季）  
> `get_tou_hour` 获取分时段小时  

## db
数据库工具
***
> - mysql_pool  
> MySQL工具  
> `MysqlPool` MySQL连接类  
> `mysql_fetch_data` MySQL数据获取函数   
> `mysql_execute` MySQL执行函数  
> `mysql_insert_df` 插入pd.DataFrame至MySQL数据库  

> - fetch_monitor  
> 监控数据获取工具  
> `get_oa_monitor_data` 获取OA监控数据库函数  

> - sql_faraday  
> 法拉第数据库SQL语句  
> `FARADAY_BILL_SQL` 账单SQL  
> `FARADAY_TARIFF_SQL` 电价表SQL  
> `FARADAY_TIME_OF_USE_SQL` 分时段表SQL  
> `FARADAY_INSPECT_RECORD_SQL` 巡检记录SQL  
> `FARADAY_DEFECT_RECORD_SQL` 缺陷记录SQL  

> - sql_oa  
> OA数据库SQL语句  
> `OA_USER_INFO_SQL` 用户基本信息SQL  
> `OA_USER_ELECTRICITY_SQL` 用户电气信息SQL  
> `OA_INSPECT_RECORD_SQL` 巡检记录SQL  
> `OA_MONITOR_INFO_SQL` 监控信息SQL  
> `OA_MONITOR_ALERT_SQL` 监控告警记录SQL  
> `OA_MAINTENANCE_SQL` 工程维护信息SQL  
> `OA_DEFECT_RECORD_SQL` 缺陷记录SQL  

## microgrid  
微电网相关工具  
***
> - epk  
> 自建微电网模型  
> `PVWattsAPI` PVWatts 光伏数据接口

> - nrel  
> REopt_Lite_API接口  
> `get_api_results` Function for posting job and polling results end-point  


# 版本日志


### *Ver 1.0.20*
***
- fix bug

### *Ver 1.0.19*
***
- add microgrid.epk.PVWattsAPI

### *Ver 1.0.18*
***
- add common.exceptions

### *Ver 1.0.16-17*
***
- add nrel_api

### *Ver 1.0.13-15*
***
- fix MysqlPool.insert_df

### *Ver 1.0.10-12*
***
- fix bug

### *Ver 1.0.9*
***
- add TOU_HOUR code

### *Ver 1.0.8*
***
- 加入README和HISTORY