Skip to main content

python库以在小陆同学上执行代码 | python library to execute code on 'xiaolu'

Project description

导入库的方式:

from pyxiaolu import pyxiaolu

pyxiaolu包括以下方法:

login(username,password)

username:小陆同学用户名

password:小陆同学密码

返回值:

当不成功,返回布尔值False

当成功,返回字符串token,该token需要保存好

execute(code,token)

code:要执行的代码,可以使用三个双引号来执行多行代码

token:login方法中返回的字符串token

返回值:

当不成功,返回布尔值False

当成功,返回这些代码的stdout

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

pyxiaolu-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file pyxiaolu-0.1.2.tar.gz.

File metadata

  • Download URL: pyxiaolu-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pyxiaolu-0.1.2.tar.gz
Algorithm Hash digest
SHA256 911a5429eb6b3b4fcfccb1b5ea13a2fa8da93ef3c06c542f5d531c8c9d736b40
MD5 b85e5e6a06a1bb76e7ea352a43b5d915
BLAKE2b-256 f3db158cf8ac1c3965883c17e89ae731f6559ec812d624585f81664d7398c11a

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