semvec/pypi-packages huggingface dataset:
ahstu-sign-up 1.1.1a1
a simple script to deal with daily sign-up in AHSTU
License: MIT
Requires Python: >=3.10.0,<3.11.0
Keywords: ahstu,automatic

## 安科填报自动化脚本
填报过程自动化，适用于安徽科技学院某填报系统，摆脱被班委催填报的尴尬，以造福劳苦大众

- 允许自定义填报信息
- 支持多人填报（需要相应配置文件）
- 支持Windows, Linux
- 与人工填写几经无差别

### 使用方法
- Windows用户提供一键脚本, 具体使用方法参见 [help.txt](https://github.com/NoSimpleApple/ahstu_sign_up/blob/remote/help.txt) 文件
- Linux用户需自建python虚拟环境（提供requirements.txt）
### 使用须知
1. 以下情况均不负责 
   - 因使用本脚本而被查处并记过
   - 因使用本脚本而造成填写内容不为实际信息（有bug在issue提出）
   - 因使用本脚本而造成本人实质性的损失
2. 本脚本制作本意仅为方便日常生活，减少重复工作的目的。个人应在保证自身身体健康的情况下使用，积极配合学校防疫工作，时刻检查自身身体情况，若察觉到异常情况，请关停该脚本，认真填写填报信息并上报。
3. 请低调使用
elvia 0.1.0
Python bindings for the Elvia API
License: MIT
Requires Python: >=3.6
Keywords: electricity

# Unofficial API bindings for Elvia's consumer facing APIs

![Build Status](https://github.com/andersem/elvia-python/actions/workflows/ci.yml/badge.svg)

With the Elvia API you can access information about your own power consumption and get the
current grid tariffes in Elvia's power grid.

## Installation

Install from pip by using:

```
pip install --upgrade elvia
```

### Requirements

- Python 3.6+

## Getting access tokens

Elvia's APIs are available for consumers using Elvia for their grid fees (nettleie).

The MeterValue and GridTariff APIs uses different authentication methods, and different tokens.

### Meter Value API

Get token using this guide: https://www.elvia.no/smart-forbruk/alt-om-din-strommaler/slik-gjor-du-det-aktivering-og-bruk-av-elvias-metervalueapi/

### Grid Tariff API

Get token by logging into https://elvia.portal.azure-api.net/signin and subscribe to the GridTariffAPI

## Using the API

```python
from elvia import Elvia
import json
import asyncio
import os

# token from elvia.no/minside
meter_value_token = os.environ.get("ELVIA_METER_VALUE_TOKEN")

# token from https://elvia.portal.azure-api.net/signin
grid_tariff_token = os.environ.get("ELVIA_GRID_TARIFF_TOKEN")

# the metering point id of your home
metering_point_id = os.environ.get("ELVIA_METERING_POINT_ID")

elvia = Elvia(meter_value_token = meter_value_token)

async def get_meter_values():
    meter_value_client = elvia.meter_value()
    meter_values = await meter_value_client.get_meter_values(
        start_time = "2021-12-08T01:00:00",
        end_time = "2021-12-08T02:00:00",
        metering_point_ids = [metering_point_id],
        include_production = True
    )
    print(json.dumps(meter_values))
asyncio.run(get_meter_values())

# And use it to get grid tariffs

elvia = Elvia(grid_tariff_token = grid_tariff_token)

async def get_grid_tariffs():
    grid_tariff_client = elvia.grid_tariff()

    grid_tariffs = await grid_tariff_client.grid_tariffs_for_metering_points(
        range = "today",
        metering_point_ids = [metering_point_id]
    )
    print(json.dumps(grid_tariffs))
asyncio.run(get_grid_tariffs())
```