Skip to content

littlebutt/Arcapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arcapi

A third-party API for ARC Prober in Python.

Language: English/中文/日本語

Quick Start

Install

To use Arcapi, you can install it by pypi.

$pip install Arc-api

Usage

This api support synchronized and asynchronized methods to connect the websocket provide by Prober. To run in a synchronized way:

from Arcapi import SyncApi

# Initialize an API with user code
api_ = SyncApi(user_code='000000000') 

# You can assign the constant range here, or just leave it in a default
print("userinfo: ", api_.userinfo(start=8, end=12)) 

Otherwise, you can run in an asynchronized way. If you deploy your service with a bot, I strongly recommend you to do in this way:

import asyncio
from Arcapi import AsyncApi

# Initialize an API with user code
api_ = AsyncApi(user_code='000000000')

# You can assign the constant range here, or just leave it in a default
asyncio.get_event_loop().run_until_complete(api_.userinfo(start=8, end=12))

About

A Python API for Arc Prober.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages