Skip to main content

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

Metadata

Release files for BIT-Online-Code-Helper 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BIT-Online-Code-Helper 1.0.4
File Size Uploaded
BIT Online Code Helper-1.0.4.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BIT-Online-Code-Helper 1.0.4
File Interpreter ABI Platform
BIT_Online_Code_Helper-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / BIT Online Code Helper-1.0.4.tar.gz

Download URL BIT Online Code Helper-1.0.4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c15839e528ab237bf96feadc8ad64468964c93ce056ebe078351b231f41e92f7
BLAKE2b-256 checksum
How to use checksums
aa265b66b9c0d09d384288b3a2b99b5f17a9488e8c55a473252dafc59cf44468
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / BIT_Online_Code_Helper-1.0.4-py3-none-any.whl

Download URL BIT_Online_Code_Helper-1.0.4-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
585f27868028995412b4d50a126adbd0b8f2bace7ee8fa248515b28c32b3ee80
BLAKE2b-256 checksum
How to use checksums
a97eb5c0f936b5befe42dfc30e804b93f69b3aa4d99381104732da18d8f25362
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page