Metadata-Version: 2.1
Name: repr-rw
Version: 3.0.0
Summary: This library writes Python object representations in a text file and reads the file to recreate the objects. An object representation is a string returned by function repr.
Home-page: https://github.com/GRV96/repr_rw
Author: Guyllaume Rousseau
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE

## FRANÇAIS

Cette bibliothèque écrit la représentation d'objets Python dans un fichier
texte et lit le fichier pour recréer les objets. Une représentation d'objet
est une chaîne de caractères renvoyée par la fonction `repr`.

### Contenu

La fonction `write_reprs` écrit la représentation d'objets Python dans un
fichier texte. Chaque ligne du fichier est une représentation d'objet. Si le
fichier spécifié existe déjà, cette fonction l'écrase.

Le générateur `read_reprs` lit un fichier texte contenant des représentations
d'objet Python dans le but de recréer ces objets. Chaque ligne du fichier doit
être une représentation d'objet. Les lignes vides sont ignorées. Chaque
itération de ce générateur produit un objet.

Consultez la documentation des fonctions et les démos dans le dépôt de code
source pour plus d'informations.

## ENGLISH

This library writes Python object representations in a text file and reads the
file to recreate the objects. An object representation is a string returned by
function `repr`.

### Content

Function `write_reprs` writes the representation of Python objects in a text
file. Each line in the file is an object representation. If the specified file
already exists, this function overwrites it.

Generator `read_reprs` reads a text file that contains the representation of
Python objects in order to recreate those objects. Each line in the file must be
an object representation. Empty lines are ignored. Each iteration of this
generator yields one object.

Consult the functions' documentation and the demos in the source code
repository for the complete information.
