Skip to main content

No project description provided

Project description

OpenFrpLib

based on OpenFrp OPENAPI
presented by LxHTT

这是一个封装了OpenFrp OPENAPI的Python库。

安装


pip install OpenFrpLib

开始使用


导入

import OpenFrpLib

设置是否绕过系统代理

from OpenFrpLib import BYPASS_SYSTEM_PROXY

BYPASS_SYSTEM_PROXY(True) # True为开启绕过, False不绕过

登录

from OpenFrpLib import login

# 用一个列表存取,方便记录SessionID和Authorization
LoginInfo = login(user="用户名或邮箱", password="密码")

获取用户信息

from OpenFrpLib import getUserInfo

getUserInfo(Authorization="Authorization内容", session="Session ID")

获取用户隧道列表

from OpenFrpLib import getUserProxies

getUserProxies(Authorization="Authorization内容", session="Session ID")

新建隧道

from OpenFrpLib import newProxy
# 含有Optional为可选
newProxy(Authorization: str,
         session: str,
         node_id: int,
         type: str,
         remote_port: int,
         local_addr: Optional[str] = "127.0.0.1",
         local_port: Optional[int] = 25565,
         domain_bind: Optional[str] = "",
         host_rewrite: Optional[str] = "",
         request_from: Optional[str] = "",
         custom: Optional[str] = "",
         dataGzip: Optional[bool] = False,
         dataEncrypt: Optional[bool] = False,
         url_route: Optional[str] = "",
         name: Optional[str] = f"OfApp_{randint(30000, 99999)}",
         request_pass: Optional[str] = ""
        )

删除隧道

from OpenFrpLib import removeProxy
# 含有Optional为可选
removeProxy(Authorization="Authorization内容", session="Session ID", proxy_id="隧道ID")

获取节点列表

from OpenFrpLib import getNodeList
# 含有Optional为可选
getNodeList(Authorization="Authorization内容", session="Session ID")

编辑隧道

from OpenFrpLib import editProxy
# 含有Optional为可选
editProxy(Authorization: str,
          session: str,
          node_id: int,
          type: str,
          remote_port: int,
          proxy_id: int,
          local_addr: Optional[str] = "127.0.0.1",
          local_port: Optional[int] = 25565,
          domain_bind: Optional[str] = "",
          custom: Optional[str] = "",
          dataGzip: Optional[bool] = False,
          dataEncrypt: Optional[bool] = False,
          name: Optional[str] = f"OfApp_{randint(30000, 99999)}"
         )

签到

from OpenFrpLib import userSign

userSign(Authorization="Authorization内容", session="Session ID")
警告

请勿设计任何有关自动签到的相关功能,因为这是违反服务条款的行为,自动签到为滥用行为行为之一。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

OpenFrpLib-1.2.3-py3.10-none-any.whl (6.8 kB view details)

Uploaded Python 3

OpenFrpLib-1.2.3-py3.9-none-any.whl (6.8 kB view details)

Uploaded Python 3

OpenFrpLib-1.2.3-py3.8-none-any.whl (6.8 kB view details)

Uploaded Python 3

OpenFrpLib-1.2.3-py3.7-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file OpenFrpLib-1.2.3-py3.10-none-any.whl.

File metadata

  • Download URL: OpenFrpLib-1.2.3-py3.10-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for OpenFrpLib-1.2.3-py3.10-none-any.whl
Algorithm Hash digest
SHA256 f92416da8be04745df00523d4df10e1d3197bfe3248f11e652a58ae81af3a27f
MD5 af6bcb58f59662fb00619f28e8a0578a
BLAKE2b-256 6b84c40ea218ab73d3635dd11c1fd4d48f8ede3cf03a15eae05aed4116ca8fa4

See more details on using hashes here.

File details

Details for the file OpenFrpLib-1.2.3-py3.9-none-any.whl.

File metadata

  • Download URL: OpenFrpLib-1.2.3-py3.9-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for OpenFrpLib-1.2.3-py3.9-none-any.whl
Algorithm Hash digest
SHA256 e2acac30d423dbbe0b4db4a67da1083c572a0af7d88fea6c4898e0d6d483ecd5
MD5 d6346a0776ad0eb76277c99656bc73bb
BLAKE2b-256 772bf0102299567cd74e54eb67d2a5ba77704820b17eb494ea70713426161374

See more details on using hashes here.

File details

Details for the file OpenFrpLib-1.2.3-py3.8-none-any.whl.

File metadata

  • Download URL: OpenFrpLib-1.2.3-py3.8-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for OpenFrpLib-1.2.3-py3.8-none-any.whl
Algorithm Hash digest
SHA256 21ea0c2c30e9a412af579277ec9ccdaa9a949704edce6872269b88ccec828d63
MD5 9948cb120a68ccd08d27d1e922ec2113
BLAKE2b-256 9189d3e274e6a2fe2dc9e04ba896e47340827b95f0ed7701451eb16a275711cc

See more details on using hashes here.

File details

Details for the file OpenFrpLib-1.2.3-py3.7-none-any.whl.

File metadata

  • Download URL: OpenFrpLib-1.2.3-py3.7-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for OpenFrpLib-1.2.3-py3.7-none-any.whl
Algorithm Hash digest
SHA256 ffc30fdb955d54951ec23cf0bc388f0b5883ed2d5a2f8cf42c9b9e971055f972
MD5 89c62dd69a529e73d5291ea6bfd202b6
BLAKE2b-256 8450abae66ec47ec40430a42188ae1f8d481280974628bcac56853aeaac9b197

See more details on using hashes here.

Supported by

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