omegaUp
Library for interacting with omegaUp.
omegaup.validator.validatortest
Allows an input validator to be modeled as a standard unit test.
To use, write your validator as if it were a normal unittest.TestCase:
import logging
import unittest
import sys
from omegaup.validator import validatortest
class MyTest(unittest.TestCase):
def test_foo(self):
contestant_output = sys.stdin
case_name = sys.argv[1]
with open('data.in', 'r') as original_input, \
open('data.out', 'r') as original_output:
logging.info('This will be printed to stderr')
self.assertAlmostEqual(
float(contestant_output.readline().strip()),
float(original_output.readline().strip()))
if __name__ == '__main__':
validatortest.main()
Metadata
Release files for omegaup 2.0.18
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 |
|---|---|---|---|---|
| omegaup-2.0.18.tar.gz | 75.5 kB | Without provenance | Details for omegaup-2.0.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omegaup-2.0.18-py3-none-any.whl | Python 3 | none | any | Details for omegaup-2.0.18-py3-none-any.whl |
Total release size: 151.7 kB
Release files / omegaup-2.0.18.tar.gz
| Download URL | omegaup-2.0.18.tar.gz |
|---|---|
| Size | 75.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0c8c5da94544eb1b490aeaccf03c4489e7c27551947a77ace9641ec061af28a
|
|
BLAKE2b-256 checksum How to use checksums |
6f776e64b6dff915e33840d5818f0478f1f0b602813c5e91e09baff456d2e5af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / omegaup-2.0.18-py3-none-any.whl
| Download URL | omegaup-2.0.18-py3-none-any.whl |
|---|---|
| Size | 76.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9de8b76ea8f38ecdadbb2f8f052dfaac9b9eff41f0250486215958113f48736
|
|
BLAKE2b-256 checksum How to use checksums |
4de6aa5f5d8b8ca0b03bd4e388fd9735d6d11e142a0fe1406a3cead45dc94ba3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for omegaup 2.0.18
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.