Metadata-Version: 2.5
Name: PyOJ
Version: 1.0.2
Summary: An Offline Judge that can check other language code project
Project-URL: Homepage, https://github.com/th4nhnh4nl32013-wq/PyOJ
Author-email: SCTi-gon <th4nhnh4nl32013@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# PYOJ - Python Offline Judge v1.0
## 1. Introduction
This package is a triute of a popular Python package unittest, but it is easier to use and have more language code to use. You can apply Django and this package to make a Online Judge

## 2. How to use
Download this package by using the code at the top in the terminal. <br>
``` Bash
pip install pyoj
```
To import, create a Python file and type this first line:
```Python
import pyoj
```
Make a folder contains all the users' solution you wnat to check. Use this line
```Python
file = pyoj.setup(dir="")
```
Then, set the compiler you want to check, set the input type and output type as follow:
```Python
set_compiler("lang", "filename_you_want_to_compile")
set_io("input type: stdin, filein", "output type: stdout, fileout", "ext for input file if choose filein", "ext for output file if choose fileout")
```

Use `execute()` to run the program

Use all type of assert to check if the output has the relationship to the expected output.

The final code is to run the project as `run()`

## 3. Contract
If you have some error, you can ask me in one of two ways:
- Email: th4nhnh4nl32013@gmail.com
- Github: https://github.com/th4nhnh4nl32013-wq/PyOJ