BSD Ports

devel/py-fastjsonschema 2.19.1_1 DragonFly

Fastest Python implementation of JSON schema

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel, python
Package size
43.5 KiB, 301.1 KiB installed

Description

fastjsonschema implements validation of JSON documents by JSON schema. The library implements JSON schema drafts 04, 06 and 07. The main purpose is to have a really fast implementation. See some numbers:

  • Probably most popular jsonschema can take up to 5 seconds for valid inputs and 1.2 seconds for invalid inputs.
  • Second most popular json-spec is even worse with up to 7.2 and 1.7 seconds.
  • Last validictory, now deprecated, is much better with 370 or 23 milliseconds, but it does not follow all standards and it can be still slow for some purposes.

With this library you can gain big improvements as fastjsonschema takes only about 25 milliseconds for valid inputs and 2 milliseconds for invalid ones.

In the other systems

SystemPortVersion
DragonFlydevel/py-fastjsonschema2.19.1_1
FreeBSDdevel/py-fastjsonschema2.22.2
NetBSDtextproc/py-fastjsonschema2.22.2
MidnightBSDdevel/py-fastjsonschema2.21.2_1
HardenedBSDdevel/py-fastjsonschema2.22.2
GhostBSDdevel/py-fastjsonschema2.22.2

Install

Binary package:

pkg install py311-fastjsonschema

From DPorts:

cd /usr/dports/devel/py-fastjsonschema && make install clean

Dependencies

Run dependencies 1