Referencing Datastore Keys in Jinja¶. You can use {{st2kv.system.foo}} to access key foo from the datastore. Note that prior to v2.1, the expression to access key foo from the datastore was {{system.foo}}.This is now deprecated, and the leading st2kv. namespace is required.. Currently, all data in the datastore is represented as strings.
Python - Replace String in File. To replace a string in File using Python, follow these steps: Open input file in read mode and handle it in text mode. Open output file in write mode and handle it in text mode. For each line read from input file, replace the string and write to output file. Close both input and output files.