pupy

Package Contents

ljson(filepath)

Load a json file given a filepath and return the file-data

Parameters:filepath – path to the jasm file you want to load
Returns:Loaded file contents
load_jasm(filepath)

Alias for ljson (which stands for ‘load-json’)

loads(filepath)

Load a (txt) file as a string

Parameters:filepath – return:
lpak(filepath)

Alias for ljson (which stands for ‘load-json’)

sjson(filepath, data, min=False)

Save json-serial-ize-able data to a specific filepath.

Parameters:
  • filepath – save filepath
  • data – json ready data
  • min – minified format flag
Returns:

None

save_jasm(filepath, data, min=False)

Alias for sjson (which stands for ‘save-json’)

savings(filepath, string, clobber=True)

Save s(tring) to filepath as txt file

Parameters:
  • filepath – Filepath save location
  • string – File as a string to be saved
  • clobber – Save over a file if the filepath exists
Returns:

None? what do you want? confirmation?

spak(filepath, data, min=False)

Alias for sjson (which stands for ‘save-json’)

range