Skip to main content

Test your code of "BIT Online coding homework" more easily and conveniently!

Project description

BIT Online Code Helper

Test your code of "BIT Online coding homework" more easily and conveniently!

Install

pip install bit-online-code-helper
And you should confirm that g++ command is available. For example, running g++ -v in the terminal to confirm.

Feature

With this, you can test and commit your code which use only 2 seconds totally:

  1. Save your code in the editor (Ctrl + S)
  2. Switch to show cmd or PowerShell window (Alt + Tab)
  3. Press "↑" on your keyboard to automatically repeat your last test command
  4. Press "Enter" on your keyboard, wait for test result!

Usage

# bch means 'BITOnline Code Helper'

# local code test
# -l means '--local'
bch -l [bit_online_problem_url] [source_file_url]

# online code test
# commit your code to BIT Online to test
# -o means '--online'
bch -o [bit_online_problem_url] [source_file_url]

# local and online code test
# automaticlly commit your code to BIT Online to test after local test passed
# -lo means '--local_online'
bch -lo [bit_online_problem_url] [source_file_url]

# e.g.
# bch -lo "http://lexue.bit.edu.cn/mod/programming/view.php?id=32165" "E:\coding\1.c"

TODO

  1. Use cache to store the problem info to avoid frequently request the website
  2. Improve related features which I don't realize now
  3. Fix bugs

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

BIT Online Code Helper-1.0.4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

BIT_Online_Code_Helper-1.0.4-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file BIT Online Code Helper-1.0.4.tar.gz.

File metadata

  • Download URL: BIT Online Code Helper-1.0.4.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for BIT Online Code Helper-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c15839e528ab237bf96feadc8ad64468964c93ce056ebe078351b231f41e92f7
MD5 fc53c9997e5dc05fa29752461638fde7
BLAKE2b-256 aa265b66b9c0d09d384288b3a2b99b5f17a9488e8c55a473252dafc59cf44468

See more details on using hashes here.

File details

Details for the file BIT_Online_Code_Helper-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: BIT_Online_Code_Helper-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for BIT_Online_Code_Helper-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 585f27868028995412b4d50a126adbd0b8f2bace7ee8fa248515b28c32b3ee80
MD5 f82ebd1e527249000c894cd5ba616243
BLAKE2b-256 a97eb5c0f936b5befe42dfc30e804b93f69b3aa4d99381104732da18d8f25362

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