semvec/pypi-packages huggingface dataset:
nonebot-plugin-nikke 0.1.0.post4
胜利女神：妮姬nonebot2插件
License: MIT
Requires Python: <4.0,>=3.8
Keywords: nikke nonebot nonebot2 bot qq

<div align="center">
  <img src="https://github.com/Perseus037/data/blob/master/nikke.webp" alt="nonebot_plugin_nikke图标" >

# nonebot-plugin-nikke

_✨ 基于 NoneBot2 的胜利女神：妮姬 Wiki 插件✨ _

<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
<a href="https://pdm.fming.dev">
  <img src="https://img.shields.io/badge/pdm-managed-blueviolet" alt="pdm-managed">
</a>
<!-- <a href="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb">
  <img src="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb.svg" alt="wakatime">
</a> -->

<br />

<a href="./LICENSE">
  <img src="https://img.shields.io/github/license/lgc-NB2Dev/nonebot-plugin-uma.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-nikke">
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-nikke.svg" alt="pypi">
</a>
<a href="https://pypi.org/project/nonebot-plugin-nikke/">
  <img src="https://img.shields.io/pypi/dm/nonebot-plugin-nikke.svg" alt="pypi download">
</a>

</div>

<div align="left">

## 💬 前言

你说的对，但是《NIKKE》是由金亨泰联合腾讯研发的一款全新挂机收菜游戏。游戏发生在一个被称作「意外失败」的系统错误，
在这里，用户资讯初始化失败被授予「系统错误将重启游戏」，导引数据更新失败，(4/10)Add catalogue path。
你将扮演一位名为「数据更新失败」的神秘角色，在自由的旅行中邂逅无法获取好友资讯，和他们一起，无法获取商品资讯，购买异常——同时，逐步发掘「ERROR」的真相。

## 📖 介绍

一个胜利女神：妮姬的 Wiki 插件，主要数据来源为 GameKee 

给群友写着玩的，现在只有最基础的功能，最近又太忙，等过段时间有空了一点点加功能吧

还有个问题就是，没有找到合适api爬立绘live2D，也没有找到合适的图床，暂时先用github凑活吧。

## 💿 安装

</details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-nikke[all]

</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-nikke[all]

</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-nikke[all]

</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-nikke[all]

</details>

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_nikke"]

</details>

## ⚙️ 配置

无需配置，开箱即用。

## 🎉 使用

现有指令列表：

nk角评，nikke角评：输出一张包含对应角色数据，技能等信息的图片，支持模糊搜索

nk评分, nk角色评分：输出一张全角色评分图，默认输出爆裂阶段3的评分图,支持选择，输入nk评分 1，bot则会回复爆烈阶段3的评分图。

example：<img src="https://github.com/Perseus037/data/blob/master/nikke%20example.png" alt="示例" >

## 📞 制作者

### 黑纸折扇 [Perseus037] (https://github.com/Perseus037)

QQ：1209228678

## 🙏 感谢

在此感谢以下开发者(项目)对本项目做出的贡献：

-  [student_2333](https://github.com/lgc2333) 对于我学习编写插件和配置qqbot等过程中的无私帮助
-  [nonebot_plugin_bawiki](https://github.com/lgc-NB2Dev/nonebot-plugin-bawiki) 提供的结构和代码参考

插件数据源提供：

-  [GameKee](https://nikke.gamekee.com/) 
-  [Nikke-db](https://github.com/Nikke-db/Nikke-db.github.io) 

## 📝 更新日志

### 0.1.0.post2-post3
- 实现角色图片模糊搜索
- 增加新功能，nk角色评分

### 0.1.0.post1

- 从gamekee爬了n张图，敲爬虫敲的我手都麻了
- 重构代码，对原有代码进行模块化拆分便于维护
frostrose 0.1.1
A Python library for accessing the Norwegian Meteorological Institute frost.met.no API
License: MIT
Requires Python: >=3.10,<4.0

# Frostrose

`frostrose` is a Python library for easy access to the Norwegian Meteorological Institute's frost.met.no API. It simplifies the process of fetching weather data from various endpoints.

## Installation

```bash
pip install frostrose
```

## Usage

### Setting up the Client

You can use the `FrostClient` either by setting an environment variable `FROST_CLIENT_ID` or by providing the client ID directly during instantiation.

#### Using an Environment Variable

Set the environment variable `FROST_CLIENT_ID` with your API key:

```bash
export FROST_CLIENT_ID='your_api_key_here'
```

Then, in your Python code:

```python
from frostrose import FrostClient

client = FrostClient()
```

#### Providing Client ID on Instantiation

Alternatively, you can provide the client ID directly:

```python
from frostrose import FrostClient

client = FrostClient('your_api_key_here')
```

### Working with Sources (Weather Stations)

Weather stations are referred to as "sources" in the frost.met.no API. `frostrose` provides methods to find sources by name, near a specific longitude and latitude, or near another source.

#### Finding Sources by Name

```python
from frostrose import Sources

sources = Sources(client)
sources.fetch_all_sources()
tynset_sources = sources.get_sources_with_name_icontains('tynset')
```

#### Finding Sources Near a Specific Location

```python
nearby_sources = sources.get_sources_within_radius_of_lonlat(lon=5.1963, lat=59.2555, radius_km=50)
```

#### Finding Sources Near Another Source

```python
nearby_sources_of_id = sources.get_sources_within_radius_of_source_id('SN47230', radius_km=50)
```

### Finding Weather Elements

To find available weather elements:

```python
from frostrose import Elements

elements = Elements(client)
elements_data = elements.get_elements()
```

### Getting Observation Time Series

To get an observation time series for a specific weather element:

```python
from frostrose import Observations

observations = Observations(client)
temperature = observations.get_data_for_source_element_for_period('SN9580', 'air_temperature', date_start='2023-01-01')
```

### Converting to Pandas DataFrame

To convert the observation time series into a pandas DataFrame:

```python
import pandas as pd

flat_data = temperature.to_flat_dict_list()
df = pd.DataFrame.from_records(flat_data)
```

## License

Frostrose is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.