semvec/pypi-packages huggingface dataset:
jschon-sort 0.2.0
Sorts a JSON or YAML document to match a JSON Schema's order of properties
Requires Python: >=3.8

Provides JSON tools:

- `jschon-sort` sorts a JSON or YAML document according to its JSON Schema:
object properties are ordered to match the order in which JSON Schema properties (that match them) are declared.

- `jschon-remove-additional-props` removes properties not defined in the JSON Schema.

The "jschon" name relates to it being based on the [jschon](https://github.com/marksparkza/jschon) library
for JSON Schema handling.

## Motivation

Per the JSON RFC, an object is an unordered collection. In practice, within serialized JSON or YAML files,
a particular order of properties can benefit readability: for example,
`{"start": 10, "end": 20}` read more naturally than naive lexicographic order of `{"end": 20, "start": 10}`
(that would result from `json.dumps(..., sort_keys=True)`).
While there are [several](https://github.com/json-schema/json-schema/issues/119)
[attempts](https://github.com/json-schema-org/json-schema-spec/issues/571)
to introduce property ordering into JSON Schema, here we're taking a different approach.
By leveraging the fact that the JSON Schema itself is written with human maintainers in mind,
we can extrapolate the intuitive order from the JSON Schema definitions' ordering and apply it on the document itself.

## Usage

**Shell**:

```shell
jschon-sort --schema ../schema.json file.yaml
```

**API**:

```python
import jschon
import jschon_tools

jschon.create_catalog('2020-12')
...
sorted_doc_data = jschon_tools.process_json_doc(
    schema_data=schema_data,
    doc_data=doc_data,
    sort=True,
)
```

## Example

Given **schema**:

```json
{
  "type": "object",
  "properties": {
    "range": {
      "type": "object",
      "properties": {
        "start": {"type": "number"},
        "end": {"type": "number"}
      }
    }
  }
}
```

the following **document**:

```json
{"range": {"end": 20, "start": 10}}
```
would be reordered as:
```json
{"range": {"start": 20, "end": 10}}
```
datastuff 0.1.3
A package that provides functions for a collection of common data science tasks
Requires Python: >=3.8,<4.0

# datastuff

A simple python package that provides functions for a collection of common data science tasks

[![PyPI Version][pypi-image]][pypi-url]
[![Build Status][build-image]][build-url]
[![Code Coverage][coverage-image]][coverage-url]
[![][stars-image]][stars-url]

## Getting started

You can [get `datastuff` from PyPI](https://pypi.org/project/datastuff),
which means it's easily installable with `pip`:

```bash
pip install datastuff
```

## Changelog

Refer to the [CHANGELOG.rst](CHANGELOG.rst) file.

<!-- Badges: -->

[pypi-image]: https://img.shields.io/pypi/v/datastuff
[pypi-url]: https://pypi.org/project/datastuff/
[build-image]: https://github.com/benthecoder/datastuff/actions/workflows/build.yaml/badge.svg
[build-url]: https://github.com/benthecoder/datastuff/actions/workflows/build.yaml
[coverage-image]: https://codecov.io/gh/benthecoder/datastuff/branch/main/graph/badge.svg
[coverage-url]: https://codecov.io/gh/benthecoder/datastuff/
[stars-image]: https://img.shields.io/github/stars/benthecoder/datastuff/
[stars-url]: https://github.com/benthecoder/datastuff
cleverchuk-search-engine 0.0.4
simple and extensible search engine backend
Requires Python: >=3.10

# CleverChuk Search Engine
A simple and extensible search engine backend built while taking CIS-536 at UMICH. This library has a main.py file that you can execute following the HOW-TO below.

# How To Run
- get dataset from [here](https://drive.google.com/file/d/1oYBWxEwSvaBOB6zIhwRKBxuVoJElLi3B/view?usp=sharing)
- ensure you have python 3.10+ installed.
- execute `pip install -r requirements.txt` to get the required dependencies.
- execute `python indexing.py` to create the inverted index. This will take ~15 minutes so go do other stuff.
    - nltk might ask you to download some stuff for the stemmer so just follow the instructions.
- execute `python main.py` to interact with the gui and enter queries.