BSD Ports

devel/py-json5 0.15.0 MidnightBSD

Python implementation of the JSON5 data format

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
b807d69740
License
Apache-2.0
Categories
devel, python

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
MidnightBSDdevel/py-json50.15.0
FreeBSDdevel/py-json50.15.0
DragonFlydevel/py-json50.9.11_1
HardenedBSDdevel/py-json50.15.0
GhostBSDdevel/py-json50.15.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}json5

From mports:

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

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}json5>0:devel/py-json5

Dependencies

As this port's Makefile names them.

Build 2

Build dependencies 2

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 1

DateCommitCreditsLog message
b807d69740 Lucas Holt Add LangChain AI ports and dependencies
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>