PythonでIPATに投票する際に利用可能なモジュール
Project description
概要
使用方法
from ipathelper import *
def main():
try:
# モジュールのイニシャライズ
returnValue = init()
if returnValue == False:
return
# ログイン処理(各自自分のIDに変えてください)
returnValue = login('********', '********', '****', '****')
if (returnValue & 1) != 1:
print("ログインに失敗しました。")
return
# 馬券購入用のインスタンス取得
betData = ST_BET_DATA()
returnValue = get_bet_instance(KAISAI_NAKAYAMA, 11, 2020, 12, 27,
HOUSHIKI_FORMATION, SHIKIBETSU_TRIO, 100, "1,9-2,3,13-7,3,8,10", betData)
if (returnValue & 1) != 1:
print("馬券購入情報の取得に失敗しました。")
return
# 馬券購入処理実行
betDataList = (ST_BET_DATA * 1)()
betDataList[0] = betData
returnValue = bet(betDataList, 1, 0)
if (returnValue & 1) != 1:
print("馬券購入に失敗しました。")
return
# 馬券購入用のインスタンス取得(WIN5)
betDataWin5 = ST_BET_DATA_WIN5()
returnValue = get_bet_instance_win5(100, 2020, 12, 27, "1,14-9,13-12-2-1,1,3,5", betDataWin5)
if (returnValue & 1) != 1:
print("馬券購入情報(WIN5)の取得に失敗しました。")
return
# 馬券購入処理実行(WIN5)
returnValue = bet_win5(betDataWin5, 0)
if (returnValue & 1) != 1:
print("馬券購入(WIN5)に失敗しました。")
return
finally:
# ログアウト処理
logout()
# モジュールのファイナライズ
uninit()
if __name__ == '__main__':
main()
インストール方法
$ pip install ipathelper
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipathelper-1.0.6.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipathelper-1.0.6.tar.gz.
File metadata
- Download URL: ipathelper-1.0.6.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a6f3523bf9ae34f47a727c1b079986c3c9af5062bb0743cbe25b5baa55f71a
|
|
| MD5 |
664ea59e7e5e0f319affc4bc362b1bc9
|
|
| BLAKE2b-256 |
674997109505a12871d1d9dfaeb1359d5311206e1aff544235d03cb53656b6f6
|
File details
Details for the file ipathelper-1.0.6-py3-none-any.whl.
File metadata
- Download URL: ipathelper-1.0.6-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d08a14ea6baec535d5f9766d09875b1ca34dab27dd239a51d065b1723a8521
|
|
| MD5 |
34b76d4683bc2fcd0b79d82a8b038d5c
|
|
| BLAKE2b-256 |
0084d1138852d6c0e1ce1c3adfad78313876320cb571c1e35632fb8d1518f3b5
|