astrocyte package

Submodules

astrocyte.api module

astrocyte.api.check_token()[source]
astrocyte.api.get_valid_token()[source]
astrocyte.api.init_storage()[source]
astrocyte.api.read_storage()[source]
astrocyte.api.upload_meta(pkg)[source]
astrocyte.api.write_storage(data)[source]

astrocyte.exceptions module

exception astrocyte.exceptions.AstroError[source]

Bases: Exception

exception astrocyte.exceptions.BuildError[source]

Bases: astrocyte.exceptions.AstroError

exception astrocyte.exceptions.GliaApiError[source]

Bases: astrocyte.exceptions.UploadError

exception astrocyte.exceptions.InvalidDistributionError[source]

Bases: astrocyte.exceptions.UploadError

exception astrocyte.exceptions.InvalidMetaError[source]

Bases: astrocyte.exceptions.UploadError

exception astrocyte.exceptions.StructureError[source]

Bases: astrocyte.exceptions.AstroError

exception astrocyte.exceptions.UploadError[source]

Bases: astrocyte.exceptions.AstroError

astrocyte.templates module

astrocyte.templates.create_template(name, target, locals={})[source]
astrocyte.templates.get_constants()[source]
astrocyte.templates.parse_template(name, locals={})[source]

Module contents

class astrocyte.Mod(pkg, namespaced_name)[source]

Bases: object

get_full_name()[source]
get_mod_file()[source]

Return the full filename of the mod file.

get_writername()[source]
is_point_process()[source]
sanitize_mod_file()[source]
set_names(name=None, variant=None)[source]

Change this Mod’s names. Updates the mod file and __init__.py

class astrocyte.Package(path, pkg_data)[source]

Bases: object

add_mod_file(file, name=None, variant='0')[source]
build()[source]
built()[source]
commit(message)[source]
edit_asset(mod_part, name=None, variant=None)[source]
get_distribution()[source]
get_mod_path(*args)[source]
get_source_path(*args)[source]
import_mod_file(origin, destination, name)[source]
increment_version()[source]
install()[source]
set_path(path)[source]
uninstall()[source]
upload()[source]
class astrocyte.Writer(obj)[source]

Bases: object

content(indent=0)[source]
exclude = ['pkg', 'writer']
find_line(line, return_indent=False)[source]
find_tagline(find_end=False)[source]
footer(indent=0)[source]
get_endline()[source]
get_init_path()[source]
get_tagline()[source]
header(indent=0)[source]
in_it()[source]
insert()[source]
line(msg, indent=0)[source]
property_line(k, v, indent)[source]
read_block()[source]
replace(old, new)[source]
repr_types = [<class 'int'>, <class 'bool'>, <class 'str'>]
update()[source]
write()[source]
astrocyte.execute_command(cmnd)[source]
astrocyte.execute_python(script)[source]
astrocyte.find_files(path_pattern)[source]
astrocyte.get_asset_name(namespace, name, variant='0')[source]
astrocyte.get_glia_version()[source]
astrocyte.get_minimum_glia_version()[source]
astrocyte.get_package(path=None)[source]
astrocyte.get_path_mod_name(path)[source]
astrocyte.load_local_pkg()[source]
astrocyte.parse_asset_name(name)[source]