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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-json5 | 0.15.0 |
| FreeBSD | devel/py-json5 | 0.15.0 |
| DragonFly | devel/py-json5 | 0.9.11_1 |
| HardenedBSD | devel/py-json5 | 0.15.0 |
| GhostBSD | devel/py-json5 | 0.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
${PYTHON_PKGNAMEPREFIX}setuptools>=61: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 2
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| json5-0.15.0.tar.gz | 53278 | 7424d1f1eb1d56da6e3d70643f53619862b4ce81440bdb8ecfd6f875e5ba4a71 |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
b807d69740 |
Lucas Holt | Add LangChain AI ports and dependencies AI-Assisted-by: OpenAI Codex <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |