Skip to main content

MiaoSpeed Client Library Implementations for Python.

Project description

MiaoSpeedLib

MiaoSpeed Client Library Implementations for Python.

Usage

from pypi:

pip install miaospeedlib -U

example:

import asyncio
import miaospeedlib as miaolib


slave_cfg = {
    "id": "local",
    "comment": "Local",
    "hidden": False,
    "token": "miaospeed-dev",
    "type": "miaospeed",
    "address": "127.0.0.1:8765",
    "option": {
        "downloadDuration": 8,
        "downloadThreading": 4,
        "pingAverageOver": 20,
        "taskRetry": 3,
        "downloadURL": "https://dl.google.com/dl/android/studio/install/3.4.1.0/android-studio-ide-183.5522156-windows.exe",
        "pingAddress": "http://www.google.com/generate_204",
        "stunURL": "udp://stunserver2024.stunprotocol.org:3478",
        "taskTimeout": 3000,
        "dnsServer": [
            "119.29.29.29:53",
            "223.5.5.5:53"
        ],
        "apiVersion": 2
    },
    "skipCertVerify": True,
    "tls": False,
    "invoker": "114514",
    "buildtoken": "MIAOKO4|580JxAo049R|GEnERAl|1X571R930|T0kEN",
    "path": "/miaospeed"
}

local_slave = miaolib.MiaoSpeedSlave().from_obj(slave_cfg)
isalive = asyncio.run(miaolib.MiaoSpeed.isalive(local_slave))
print("miaospeed slave isalive:", isalive)

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

miaospeedlib-0.1.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

miaospeedlib-0.1.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file miaospeedlib-0.1.0.tar.gz.

File metadata

  • Download URL: miaospeedlib-0.1.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for miaospeedlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ecb063183cf02b99d3800beaed6e7820ce960727888200ba87cd24cd56f6da9
MD5 098eb04b3f3395f2ebb844c056f4e0f0
BLAKE2b-256 1949e92d6c26e367118169af2347908fb392e663c36597308033dadffa578a03

See more details on using hashes here.

File details

Details for the file miaospeedlib-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for miaospeedlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fad189619ac26dd20ebd8d44310ad04ba30d0316ce7ebae3201ccafdc6495313
MD5 6fd90b0a76741df3f311d99d6b4b0ac9
BLAKE2b-256 0208e53838b0aec0f7d045fc2173ab8d793276ba39ff66036313c228f318ea21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page