Skip to main content

Verarbeitet JSON

Project description

# Dieses Packet verarbeitet “Pfade” um Json-Informationen abzufragen

##class JsonReader:

// init // Nimmt das Argument: // * file, ein String, der den Dateipfad zur Json-Datei darstellt. def __init__(self, file: str)

// write // Nimmt keine Argumente // Und schreibt den aktuellen Stand des Arbeits-Dictionarys in die Datei def write(self)

// read // Nimmt keine Argumente // Und liest die Datei ein def read(self)

// get_from_path // Nimmt das Argument: // * path, der Pfad zur Json-Information def get_from_path(self, path: str)

// set_from_path // Nimmt die Argumente: // * path, der Pfad zu der zu erstellenden Information // * value, der Wert auf den es gesetzt wird def set_from_path(self, path: str, value)

// delete_path // Nimmt das Argument: // * path, der Pfad, der gelöscht werden soll def delete_path(self, path: str)

// path_exists // Nimmt das Argument // * path, der Pfad der geprueft werden soll def path_exists(self, path: str)

// Sonst nur private Methoden

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

JsonReader-heureka-code-0.0.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

JsonReader_heureka_code-0.0.5-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

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