BSD Ports

devel/py-json5 0.15.0 FreeBSD

Python implementation of the JSON5 data format

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
devel, python
Package size
56.2 KiB, 409.5 KiB installed

Description

pyjson5 is a Python implementation of the JSON5 data format.

JSON5 extends the JSON data interchange format to make it slightly more usable as a configuration language:

  • JavaScript-style comments (both single and multi-line) are legal.
  • Object keys may be unquoted if they are legal ECMAScript identifiers
  • Objects and arrays may end with trailing commas.
  • Strings can be single-quoted, and multi-line string literals are allowed.

This project implements a reader and writer implementation for Python; where possible, it mirrors the standard Python JSON API package for ease of use.

There is one notable difference from the JSON api: the load() and loads() methods support optionally checking for (and rejecting) duplicate object keys; pass allow_duplicate_keys=False to do so (duplicates are allowed by default).

In the other systems

SystemPortVersion
FreeBSDdevel/py-json50.15.0
DragonFlydevel/py-json50.9.11_1
MidnightBSDdevel/py-json50.15.0

Install

Binary package:

pkg install py312-json5

From the ports tree:

cd /usr/ports/devel/py-json5/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-json5>0:devel/py-json5

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.15.00.15.00.9.100.9.11_10.15.0
FreeBSD:14:quarterly0.15.00.15.0n/a0.9.11_10.15.0
FreeBSD:15:latest0.15.00.15.0n/a0.9.11_10.9.11_1
FreeBSD:15:quarterly0.15.00.15.0n/an/an/a
FreeBSD:16:latest0.15.00.15.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7
Required by 93

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
json5-0.15.0.tar.gz532787424d1f1eb1d56da6e3d70643f53619862b4ce81440bdb8ecfd6f875e5ba4a71
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.