hepi.data

Submodules

Functions

get_json_dir()

Get the path to the data directory

list_json_files()

List all files in the data directory

list_files()

get_json_file(filename)

Get the content of a file in the data directory

get_file(filename)

Package Contents

hepi.data.get_json_dir()[source]

Get the path to the data directory

Returns:

Path-like handle to the packaged JSON data directory.

Return type:

importlib.resources.abc.Traversable

hepi.data.list_json_files()[source]

List all files in the data directory

Returns:

List of files in the data directory

Return type:

list

hepi.data.list_files()[source]
hepi.data.get_json_file(filename)[source]

Get the content of a file in the data directory

Parameters:

filename (str) – Name of the file

Returns:

Path-like handle to the file

Return type:

importlib.resources.abc.Traversable

hepi.data.get_file(filename)[source]
Parameters:

filename (str)