skillfed

jsonseq

Python support for RFC 7464 JSON text sequences

jsonseq v1.0.0 800.1K downloads/30d#5,024 on PyPI9
Permissive license Abandoned released

What it is and what it does

jsonseq implements RFC 7464 JSON Text Sequences, a standard format for streaming multiple JSON objects in a single stream or file. It provides two main classes: JSONSeqEncoder takes Python objects and yields them as JSON with optional ASCII record separators (\x1e) and newlines, and JSONSeqDecoder reverses the process, reading delimited JSON sequences and yielding decoded Python objects.

The package is useful when you need to write or read multiple JSON objects sequentially—for example, writing one JSON object per line to a file, or reading a stream of JSON objects from a network connection. It handles both compact and pretty-printed JSON, and supports incremental encoding via iterencode() for streaming to files or network sockets.

Use it for:

  • Write streaming JSON logs where each line is a separate JSON object with record delimiters
  • Read JSON object sequences from a file or network stream that conform to RFC 7464
  • Encode Python objects to RFC 7464 format for interoperability with other tools that consume JSON sequences
  • Process large datasets as a stream of JSON objects without loading everything into memory at once

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Encodes and decodes JSON text sequences according to RFC 7464, allowing streaming of multiple JSON objects delimited by record separators and newlines.

Yes, if you specifically need RFC 7464 compliance and can accept an abandoned package. The code is simple, has no dependencies, and the standard is stable. However, verify compatibility with your target Python version and be prepared to maintain a fork if critical issues arise, since the last release was 2019-07-31.

Install

jsonseq on PyPI

pip

pip install jsonseq

uv

uv add jsonseq

poetry

poetry add jsonseq

Installing jsonseq

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last commit was 2021-11-20 and no releases since 2019-07-31. It remains marked Production/Stable but receives no maintenance.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.

Quickstart

from jsonseq.encode import JSONSeqEncoder
from jsonseq.decode import JSONSeqDecoder

# Encode objects to RFC 7464 format
for chunk in JSONSeqEncoder(with_rs=True).encode([{"a": 0}, {"a": 1}]):
    print(repr(chunk))

# Decode from RFC 7464 format
stream = ['\x1e', '{', '"a"', ': ', '0', '}', '\n']
for obj in JSONSeqDecoder().decode(stream):
    print(obj)

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.7 (classifiers list only up to 3.7, but no explicit requires_python constraint)
  • Whether there are known issues or edge cases in the abandoned codebase that affect production use

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 2,571 days since the last release
Last repo commit
First released
Downloads 800,142/month — #5,024 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: jsonseq-1.0.0-py3-none-any.whl

Keywords: json, rfc7464

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Tags

rfc 7464 json sequencesstreaming json objectsjson text sequencesrecord separator jsonjsonseq encoder decoderjson stream encodingmultiple json objects
json-streamingrfc-7464abandoned

More Text Processing packages