semvec/pypi-packages huggingface dataset:
MySB-datatraffic 4.1
MySoftBank dataTraffic
Keywords: Python3 MySoftBank

# MySB_dataTraffic
[MySoftBank](https://www.softbank.jp/mysoftbank/)をスクレイピングしてデータ残量をLINEに通知するやつ
## Install
GitHubから直接Cloneすることを推奨します。この方法の場合はMySB_dataTrafficディレクトリ内のsample.pyを書き換えることで使用することができます。
```
$ git clone https://github.com/0x0u/MySB_dataTraffic
$ cd MySB_dataTraffic
```
pipでのインストールも可能です。
```
$ pip3 install MySB-datatraffic
```
## How to use
ライブラリのインポート
```Python
import MySBdt
```
LINE通知には[LINE Notify](https://notify-bot.line.me/ja/)を使用するのでアクセストークンを取得しておく必要があります。telnum、password、line_access_tokenを自分のものに置き変えます。
```Python
telnum = "電話番号"
password = "MySoftbankのパスワード"
line_access_token = "LineNotifyのアクセストークン"
```
インスタンスを作成  
```Python
api = MySBdt.API(telnum=telnum, password=password, line_access_token=line_access_token)
```
データ（使用量、残量、繰越残量、追加量、追加使用量、追加繰越量、追加繰越使用量）の取得ができます。
```Python
data = api.get_data()
print(data)

# 実行結果
# {'used_data': 6.34, 'remain_data': 0.02, 'step_remain_data': 0.0, 'additional_data': 1.0, 'additional_used_data': 0.98, 'given_data': 0.36, 'given_used_data': 0.36}
```
LINEに通知します。
```Python
status = api.send_message()
print(status)

# 実行結果
# 200
```
実行すると以下のような情報がLINEに通知されます。戻り値はrequestsのHTTPステータスコードが返ります。

![](https://user-images.githubusercontent.com/34241526/66271995-2170de80-e89f-11e9-9a66-a32cfef9747f.jpg)

## Author
@qxi_(https://twitter.com/qxi_)
rpg-0bs1d1an 0.0.10
Risk plot generator
Requires Python: >=3.6

[![pipeline status](https://gitlab.com/0bs1d1an/rpg/badges/master/pipeline.svg)](https://gitlab.com/0bs1d1an/rpg/commits/master)

# Risk plot generator (rpg)

This tool takes a CSV or YAML file with your observations and can output either a grid plot, or a donut ring.
It also accepts a CSV or YAML file with recommendations to output a recommendations grid.

## Rationale

I was fed-up with having to manually create these graphs for a client and I wanted to make my life easier.
And since I want to increase my Python skills some more, this would be a fun little project to catch two birds with one stone.

## Dependencies

1. argparse (dev-python/argparse);
2. matplotlib (dev-python/matplotlib);
3. python (dev-lang/python).

## Install

Using Pip:

`pip install --user rpg-0bs1d1an`

Using setup.py:

`python setup.py install`

## Usage

You can use sr2t in two ways:

* When installed as package, call the installed script: `rpg --help`.
* When Git cloned, call the package directly from the root of the Git
repository: `python -m rpg --help`

```
$ rpg -h
usage: rpg [-h] (-iC INPUT_CSV_FILE | -iY INPUT_YAML_FILE) (-g | -d | -r)
           [-oP OUTPUT_PNG_FILE] [--axis-labels AXIS_LABELS]
           [--axis-arrows AXIS_ARROWS] [--legend LEGEND]

Converting scanning reports to a tabular format

optional arguments:
  -h, --help            show this help message and exit
  -iC INPUT_CSV_FILE, --input-csv-file INPUT_CSV_FILE
                        specify an input CSV file (e.g. observations.csv).
  -iY INPUT_YAML_FILE, --input-yaml-file INPUT_YAML_FILE
                        specify an input YAML file (e.g. observations.yml).
  -g, --grid            generate a risk grid plot.
  -d, --donut           generate a risk donut.
  -r, --recommendations
                        generate a risk recommendations plot.
  -oP OUTPUT_PNG_FILE, --output-png-file OUTPUT_PNG_FILE
                        specify an output PNG file (e.g. risk.png).
  --axis-labels         specify to print the axis labels
  --axis-arrows         specify to print arrows along the axis
```

## Example

A few examples

### Risk grid plot

To generate a risk grid plot: `$ rpg -iC example/input/observations.csv -oP example/output/grid.png -g`

Or if you prefer YAML: `$ rpg -iY example/input/observations.yaml -oP example/output/grid.png -g`

![Grid](example/output/grid.png)

### Risk donut

To generate a risk donut: `$ rpg -iC example/input/observations.csv -oP example/output/donut.png -d`

Or if you prefer YAML: `$ rpg -iY example/input/observations.yaml -oP example/output/donut.png -d`

![Donut](example/output/donut.png)

### Risk recommendations

To generate a recommendations plot: `$ rpg -iC example/input/recommendations.csv -oP example/output/recommendations.png -r`

Or if you prefer YAML: `$ rpg -iY example/input/recommendations.yaml -oP example/output/recommendations.png -r`

![Recommendations](example/output/recommendations.png)
example-pkg-Van13 0.0.1
Help you calculate time differences
Requires Python: >=3.6

You can use this package , enter two special times(such as '2020-03-05 16:29:02' . Tips : don't change and miss '-' , ' ' , ':') , and you will get a feedback about the bridge of two times . Besides , you can use an end time to sub a start time , and get the difference between them.
#E.g:
start_time = Mytimer('2017-01-20 12:00:00')
end_time = Mytimer('2017-02-22 12:30:20')
print(end_time.calseconds(start_time))
print(end_time - start_time)
github-hooker 0.2
Simple github webhooks handler
Keywords: github webhooks python handler

github-hooker
=============

Easily handle github hooks. This package allows easily handling github webhooks by running a simple bottle
webserver to handle requests coming from github. All it requires is a module containing functions with
predefined names to handle the github event transmitted via webhook.

The webhook at Github should be configured to send event data as JSON and not as url form encoded.

Example:

.. code:: bash

    github_hooker -c config.json -m github_actions.py
nss2 3.9.6
Simple and fast database operation

NSS2 is a database operation module made by Nanshan team.
It is simple and fast to use nssql.
The module can create database, create list, read database, change database, associate operation, import and export.
Functions included in this module: 
new_sql(sql_name='default_sql',password='None',existet=False): create a new database 
cursor(name=1): create cursor 
new_list(sql_name='default_sql',list_name='list0',existet=False,password='None'): create list 
new_position(sql_name='default_sql',list_name='list0',position_name='position0',data='NanShanSQL',password='None'): create location and add data 
del_position(sql_name='default_sql',obj='default_sql\\list1\\position0',password='None'):Delete a position
close_sql(sql='default_sql'): close the database to open a new database 
open_sql(sql='default_sql',password='None'): get the contents of the database 
change_sql(sql_name='default_sql',list_name='list0',position_name='position0',new_data='NanShanSQL',password='None'): change the contents of the database 
change_password(sql='default_sql',new_password='None'): if there is a password, this function can change the password 
new_relation(sql='default_sql',obj1='default_sql\\list0\\position0',obj2='default_sql\\list1\\position0',password='None'): create a new relation 
open_relation(sql='default_sql',obj='default_sql\\list0\\position0',password='None'): open the data corresponding to the Association 
del_sql(sql_name='default_sql',password='None'): delete database 
export_sql(ea='nssea',sql_name='default_sql',file_position='D:\\',password='None'): export the database to a file 
import_sql(file='D:\\default_sql.nss',sql_name='default_sql',existet=False,password='None'): import the database file 
open_sql_set():Get which databases in the database set
del_every_sql(): delete all databases