pnoj-tg
This is a testcase generator for the PNOJ Online Judge.
It is recommended to install pnoj-tg using the PIP package available on PYPI.
Installation
pip install pnoj-tg
Usage
First create a file named config.yaml. Change the content to suit your needs.
config.yaml:
version: v1
generator:
input: ["python3", "generator.py"] # command to execute the input generator
output: ["python3", "solution.py"] # command to execute the solution
testcase:
batch:
- name: batch1 # batch name
points: 100 # points
testcase:
name: t-{0} # testcase name, "{0}" is replaced with the testcase number
num: 10 # number of testcases
- name: example
points: 0
testcase:
name: sample
num: 1
Then create two programs generator.py and solution.py.
generator.py should generate a random case.
solution.py should be the reference solution to the problem you are creating testdata for.
Then run:
pnoj-tg config.yaml
Build Instructions
git clone https://github.com/pnoj/pnoj-tg.git # clones the repository
cd scrapec
pip install . # install pnoj-tg
Metadata
Release files for pnoj-tg 20.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pnoj-tg-20.6.0.tar.gz | 2.9 kB | Without provenance | Details for pnoj-tg-20.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pnoj_tg-20.6.0-py3-none-any.whl | Python 3 | none | any | Details for pnoj_tg-20.6.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / pnoj-tg-20.6.0.tar.gz
| Download URL | pnoj-tg-20.6.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
962bdd34c48f2bc3591b04915b18f39b1c5444c2ee8030805959e0e7fef93019
|
|
BLAKE2b-256 checksum How to use checksums |
b70dcb6f837375d47e830954d41f6bd378fe176cbcfc1eb82141e59a451d7a3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / pnoj_tg-20.6.0-py3-none-any.whl
| Download URL | pnoj_tg-20.6.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32e1981b4fcf1241391171246dd9cabb24947b2ad77cd9343de516004967d394
|
|
BLAKE2b-256 checksum How to use checksums |
9af95221279226ef703c323e0dc9985f3b3301f41d592183e5c4050329c7acbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for pnoj-tg 20.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.