semvec/pypi-packages huggingface dataset:
parse-broken-json 0.3
Python library to help parsing broken and invalid JSON.
Keywords: parsing, broken, json, invalid

# parse_broken_json

_A small library to help parse broken or invalid JSON strings_

## Overview

`parse_broken_json` is a Python library designed to parse malformed or incomplete JSON strings that would typically fail with standard JSON parsers. It's particularly useful when dealing with:

- Truncated JSON responses from APIs or LLMs
- Streaming JSON data that arrives incomplete
- JSON with missing closing brackets or braces
- Partial JSON extractions from text

## Installation

### Install with uv:
```bash
uv add parse_broken_json
```

### Install with pip:
```bash
pip install parse_broken_json
```

## Usage

The library provides a single function:

```python
parse_broken_json(text: str, allowed_keys: list[str]) -> Any
```

**Parameters:**
- `text`: The JSON string to be parsed (can be broken or incomplete)
- `allowed_keys`: List of keys allowed in the JSON nodes (helps guide the parser)

**Returns:** The parsed Python object (dict, list, etc.)

### Example

```python
from parse_broken_json import parse_broken_json

# Parse incomplete JSON
broken_json = '{"name": "John", "age": 30, "address": {"city": "New'
allowed_keys = ["name", "age", "address", "city", "street"]

result = parse_broken_json(broken_json, allowed_keys)
print(result)  # {'name': 'John', 'age': 30, 'address': {'city': 'New'}}
```

## Implementation

Internally, this library uses the interpreter pattern to parse and recover from malformed JSON structures.
gcp-utilities 0.0.3
Simple utilities for GCP BigQuery, Cloud Storage and Cloud Logging
Requires Python: >=3.12

# GCP Utilities

Simple wrapper for common GCP operations like:

- creating a Google CLoud Storage directory
- checking if a Google Cloud Storage directory exists
- adding a file to Google Cloud Storage
- loading tables from files to Google BigQuery
- logging messages to Google Cloud Logging

## Env Vars

The following environment variables need to be set:

```bash

export GCP_PROJECT_ID=""
export GCP_BUCKET_NAME=""
export GCP_DATASET_ID=""
export GCP_LOGGER_NAME=""
export GOOGLE_APPLICATION_CREDENTIALS=""

```
traffic-taffy 1.0
A tool for doing differential analysis of pcap files
Requires Python: >=3.7

# Traffic Analysis of Fluctuating Flows (TAFFy)

## About

Network and security operators are continually bombarded by strange
deviations in network traffic that are sometimes operationally
problematic, sometimes a threat to security, and other times just
plain odd.  Wouldn't it be wonderful to have a tool that accurately
tells you exactly what has changed in these traffic profiles?
This tool is designed to do just that.

## Installation

    uv tool install traffic-taffy

or

    pip install traffic-taffy

## Usage

See the online [readthedocs documentation](https://traffic-taffy.readthedocs.io/).

## Development

Traffic-taffy is under very rapid development with a fair amount of
refactoring as time goes on into better class architectures.  If you
are considering looking at portions of the code and submitting pull
requests, please reach out to Wes ahead of time to check what changes
might be coming that will cause merge conflicts.

# Copyright and License

Traffic-taffy was created by [Wes Hardaker], a computer scientist at
[USC/ISI], with support from the Comcast Innovation Fund.

[Wes Hardaker]: https://ant.isi.edu/~hardaker/
[USC/ISI]: https://www.isi.edu/

This project is copyrighted by the University of Southern California,
Information Sciences institute.  It is released under the Apache 2.0
license.

# Acknowledgments

We greatly thank Comcast for this project was made possible through
their Comcast Innovation Fund.