Metadata-Version: 2.4
Name: measyjson
Version: 0.1.0
Summary: A simple library to make working with JSON data easier.
Author: kirobotdev
License-Expression: MIT
Project-URL: Homepage, https://github.com/myndevdev/easyjson
Project-URL: Repository, https://github.com/myndevdev/easyjson
Project-URL: Issues, https://github.com/myndevdev/easyjson/issues
Keywords: json,utilities,parser,serialization
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# measyjson

A small Python library to make storing and manipulating JSON data easier.

## Installation

```bash
python -m pip install measyjson
```

Le paquet s'installe sous le nom `measyjson`, mais le module s'importe toujours
sous le nom `easyjson`.

## Installation depuis les sources

```bash
python -m pip install -e .
```

## Usage

`write` ecrit du contenu brut dans un fichier, `write_add` ajoute une cle a un objet JSON
existant, `append` pousse un element dans une liste JSON.

```python
import easyjson
from easyjson import core

chemin = "comptes.json"

easyjson.write(chemin, '{"Account": {"user": "sionukk", "password": "secret"}}')
core.write_add(chemin, "ville", "Nimes")

easyjson.write(chemin, '["Nimes", "Lyon"]')
core.append(chemin, "Marseille")
```

`write_add` attend un objet JSON et `append` attend une liste JSON.

## Tests

```bash
python -m unittest discover -s tests -v
```

or, with [uv](https://docs.astral.sh/uv/):

```bash
uv run pytest
```

Voir [docs/index.html](docs/index.html) pour le guide d'ecriture des tests.

## License

MIT
