RepoProof

TEST RECORD / VLDDCRT

Validators tested on Ubuntu: what our test showed

Short answer

The recorded run of validators 0.36.0 on Ubuntu under WSL2 finished with exit code 0 and produced the output shown below. Compare input and output yourself; we add no reading the record cannot back up.

  • Not covered: anything beyond this one input, version and setup. The project states a limit of its own; see Limits of this test.
  • Tested: validators 0.36.0 on Ubuntu under WSL2, .

Turn a plain check into a validator.

Visit official site ↗

A direct, non-affiliate link to the official project.

What is validators?

Turn a plain check into a validator.

Turn a plain check into a validator.

Apart from marked quotes, everything on this page comes from our own test run.

How we tested validators

We ran validators 0.36.0 on (UTC) in an isolated sandbox: Ubuntu under WSL2. Networking was switched off, so nothing was downloaded or sent during the test. The test ran as an unprivileged user with an empty home directory.

Sandbox checks recorded before the run, all passed: network disabled, home directory blocked, secrets blocked, writes limited to the test workspace.

Setup as recorded: WSL2 no-network sandbox; installed release and dependencies verified against official wheel SHA-256; no installation.

  1. The input file example.py (104 bytes) was placed in an empty workspace.
  2. We ran bin/test example.py. It exited with code 0.
  3. We kept the exact output (91 bytes) and compared it with the input byte for byte.
  4. The terminal session was recorded (6.56 seconds).

bin/test is defined by the test definition in our repository (config/curation/validators-0.36.0-1030.json), shown below as it stood when this page was built. The script itself is not part of the hashed test record, unlike the input, output and command above.

#!/usr/bin/python3 -I
import contextlib,io,sys,time
START=time.perf_counter()
sys.path.insert(0,"/tmp/ws")
N={"__name__":"curated_example"}
OUT=[]
def check(label,test):
    try: ok=bool(test())
    except Exception as error:
        ok=False
        print(type(error).__name__,file=sys.stderr)
    OUT.append((ok,label))
try:
    with contextlib.redirect_stdout(io.StringIO()):
        exec(compile(open(sys.argv[1],encoding="utf-8").read(),sys.argv[1],"exec"),N)
except BaseException as error:
    print("Example failed: "+type(error).__name__,file=sys.stderr)
check('Even passes',lambda: N["ok"] is True)
check('Odd is falsy',lambda: not N["bad"])
check('Error object',lambda: type(N["bad"]).__name__=="ValidationError")
check('Error value',lambda: N["bad"].value==5)
for ok,label in OUT: print(("PASS " if ok else "FAIL ")+label)
print("%d/%d passed in %.2f s"%(sum(o for o,_ in OUT),len(OUT),time.perf_counter()-START))

What we saw

What we tried: Local documented API adaptation: Even passes, Odd is falsy, Error object, Error value.

What went in: 6 lines of text (104 bytes).

What came out: 5 lines of text (91 bytes).

Exact recorded input and output. Invisible characters are written out (for example \x1b is the escape character) so you can see them.

Before (input)
import validators
@validators.validator
def even(value):
 return not (value % 2)
ok=even(4)
bad=even(5)
After (output)
PASS Even passes
PASS Odd is falsy
PASS Error object
PASS Error value
4/4 passed in 0.03 s

Measured result

Input size
104 bytes
Output size
91 bytes
Sandbox run time
10.97 seconds: the whole isolated sandbox run, including sandbox start-up. This is not the tool's own processing time.
Demo recording length
6.56 seconds

Recorded measurement: 4 of 4 sandbox checks passed in 0.03 seconds.

Limits of this test

Only one custom even check ran; the built-in email, URL, and card validators were not tested.

This record covers one input, one version (0.36.0) and one platform (Ubuntu under WSL2). It is not a speed benchmark: the sandbox time includes start-up. We did not run it on Windows or macOS here, so results there may differ.

Is validators a fit for you?

Questions this test answers

Did we test validators on Windows?

No. This record ran on Ubuntu under WSL2. It does not show how validators behaves in a Windows console.

Which version did we test, and when?

validators 0.36.0, on (UTC).

Did the test need internet access?

No. The sandbox had networking switched off for the whole run.

What does validators not handle?

Our single input does not probe this. The project names its own limit, quoted under Limits of this test; inputs like that need their own test.

Test records

Each test keeps the code shown in its video. Code VLDDCRT leads here; you can also search any code on Find a code.

CodeTestedVersionPlatformResult
VLDDCRT0.36.0Ubuntu under WSL2see record

Official links

Related tools we tested

License and attribution

  • MIT — validators by python-validators (MIT)
    Rights holder: python-validators. Permission: use_modify_distribute License source ↗
  • LicenseRef-RepoProof-Owned — RepoProof
    Rights holder: RepoProof. Permission: use_modify_distribute License source ↗
    Covers 6 assets: demo input, demo output, demo recording, input frame, output frame, demo extra checks json.
  • LicenseRef-RepoProof-Owned — RepoProof capture of github.com/python-validators/validators
    Rights holder: RepoProof. Permission: use_modify_distribute License source ↗
    Covers 3 assets: demo extra github page png, demo extra github stars png, demo extra github json.

Production note

AI-assisted script and synthetic narration; demo recorded by our automated test workflow.

Page text is assembled from the recorded test data. Sentences taken from the tool's README are marked as quotes.

Find the code from a video