Skip to main content

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.

Project description

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.

La fonction 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.

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.

Function 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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repr_rw-1.0.6.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file repr_rw-1.0.6.tar.gz.

File metadata

  • Download URL: repr_rw-1.0.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for repr_rw-1.0.6.tar.gz
Algorithm Hash digest
SHA256 902b4761c7fd8e6eb12db2d161f04739d0f7a6d71ea40ee7acc50a349a98b92b
MD5 f099c606b06dee23db8163ea75edec55
BLAKE2b-256 a0d6601239a9e01de969d11345393e26f7c78f59dd4fa66b650ca0265735acd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page