appyter package¶
Subpackages¶
- appyter.execspec package
- Subpackages
- appyter.execspec.implementations package
- Submodules
- appyter.execspec.implementations.cavatica module
- appyter.execspec.implementations.dispatch module
- appyter.execspec.implementations.docker module
- appyter.execspec.implementations.kube module
- appyter.execspec.implementations.local module
- appyter.execspec.implementations.subprocess module
- appyter.execspec.implementations.wes module
- Module contents
- appyter.execspec.implementations package
- Submodules
- appyter.execspec.core module
- appyter.execspec.registry module
- appyter.execspec.spec module
- Module contents
- Subpackages
- appyter.ext package
- Subpackages
- appyter.ext.asyncio package
- Submodules
- appyter.ext.asyncio.event_emitter module
- appyter.ext.asyncio.event_loop module
- appyter.ext.asyncio.helpers module
- appyter.ext.asyncio.subprocess module
- appyter.ext.asyncio.test_helpers module
- appyter.ext.asyncio.test_subprocess module
- appyter.ext.asyncio.try_n_times module
- Module contents
- appyter.ext.click package
- appyter.ext.fsspec package
- Subpackages
- Submodules
- appyter.ext.fsspec.chroot module
- appyter.ext.fsspec.core module
- appyter.ext.fsspec.drs module
- appyter.ext.fsspec.fuse module
- appyter.ext.fsspec.mapperfs module
- appyter.ext.fsspec.overlayfs module
- appyter.ext.fsspec.s3fs module
- appyter.ext.fsspec.sbfs module
- appyter.ext.fsspec.singleton module
- appyter.ext.fsspec.storage module
- appyter.ext.fsspec.test_chroot module
- appyter.ext.fsspec.test_drs module
- appyter.ext.fsspec.test_fuse module
- appyter.ext.fsspec.test_fuseless_mount module
- appyter.ext.fsspec.test_mapperfs module
- appyter.ext.fsspec.test_overlayfs module
- appyter.ext.fsspec.test_pathmap module
- appyter.ext.fsspec.test_sbfs module
- appyter.ext.fsspec.util module
- appyter.ext.fsspec.writecache module
- Module contents
- appyter.ext.nbclient package
- appyter.ext.pathlib package
- appyter.ext.socketio package
- appyter.ext.watchgod package
- appyter.ext.asyncio package
- Submodules
- appyter.ext.aiohttp module
- appyter.ext.contextlib module
- appyter.ext.cryptography module
- appyter.ext.dict module
- appyter.ext.drs module
- appyter.ext.emitter module
- appyter.ext.exceptions module
- appyter.ext.flask module
- appyter.ext.functools module
- appyter.ext.hashlib module
- appyter.ext.importlib module
- appyter.ext.io module
- appyter.ext.itertools module
- appyter.ext.json module
- appyter.ext.multiprocessing module
- appyter.ext.pytest module
- appyter.ext.re module
- appyter.ext.subprocess module
- appyter.ext.tempfile module
- appyter.ext.urllib module
- appyter.ext.uuid module
- Module contents
- Subpackages
- appyter.extras package
- Subpackages
- appyter.extras.catalog_integration package
- Submodules
- appyter.extras.catalog_integration.executor module
- appyter.extras.catalog_integration.notebooks module
- appyter.extras.catalog_integration.request module
- appyter.extras.catalog_integration.storage module
- appyter.extras.catalog_integration.uploads module
- appyter.extras.catalog_integration.user_config module
- appyter.extras.catalog_integration.userfs module
- Module contents
- appyter.extras.catalog_integration package
- Module contents
- Subpackages
- appyter.helpers package
- appyter.orchestration package
- appyter.parse package
- appyter.profiles package
- appyter.render package
- Subpackages
- appyter.render.flask_app package
- Submodules
- appyter.render.flask_app.constants module
- appyter.render.flask_app.core module
- appyter.render.flask_app.development module
- appyter.render.flask_app.drs module
- appyter.render.flask_app.execution module
- appyter.render.flask_app.export module
- appyter.render.flask_app.livereload module
- appyter.render.flask_app.prepare module
- appyter.render.flask_app.production module
- appyter.render.flask_app.room_manager module
- appyter.render.flask_app.socketio module
- appyter.render.flask_app.static module
- appyter.render.flask_app.upload module
- Module contents
- appyter.render.nbinspect package
- appyter.render.flask_app package
- Submodules
- appyter.render.form module
- appyter.render.nbconstruct module
- appyter.render.nbexecute module
- Module contents
- Subpackages
Submodules¶
appyter.cli module¶
appyter.context module¶
-
appyter.context.
get_env
(**kwargs)[source]¶ Try various methods to grab the application config (different based on whether we’re in a flask thread/somewhere else)
-
appyter.context.
get_env_from_click
()[source]¶ Traverse click context and use params for get_env_from_kwargs
appyter.fields module¶
This module contains appyter.fields.Field
, the base class for all fields
defined in appyter.profiles.default.fields
.
-
class
appyter.fields.
Field
(name=None, label=None, description=None, choices=[], required=False, default=None, value=None, section=None, _env=None, **kwargs)[source]¶ Bases:
dict
Base field for which all fields derive Base class for all Field objects representing a value that will later be provided via a front-end form. See
appyter.profiles.default.fields
for the actual fields.-
property
args
¶ Get the raw args, the values used to initialize this field
-
property
choices
¶ Potential values to choose from
-
constraint
()[source]¶ Return true if the received args.value satisfies constraints. Should be overridden by subclasses.
-
property
field
¶ Field name
-
property
js_url
¶ Template to use for rendering field
-
property
raw_value
¶ (UNSAFE) Raw value of the field
-
render
(**kwargs)[source]¶ Return a rendered version of the field (form)
- Parameters:
**kwargs –
The instance values of the form e.g.
Field.render(**field.args)
-
property
render_value
¶ (SAFE) Effective safe value ready to be displayed, specifically for Markdown output.
-
property
safe_value
¶ (SAFE) Effective safe value for use in code, we use
repr
to escape values as necessary
-
property
template
¶ Template to use for rendering field
-
property
value
¶ (SEMI-SAFE) Effective raw value of the field when parsed and constraints are asserted. When instantiating code, you should use safe_value.
-
property
-
exception
appyter.fields.
FieldConstraintException
(field, field_name, value, message=None)[source]¶ Bases:
Exception
appyter.magic module¶
IPython magic for making templating easy~. This basically just allows our jinja-type language to be executed in place injecting the defaults into the environment so we can easily debug the notebook at the same time as building the appyter.
The same call structure is used during preprocess and at runtime but performing different tasks–this way setting up a notebook is as simple as running it with different nbtemplate’s being provided for import.
Usage (put the following in the first cell):
#%%appyter init
from appyter import magic
magic.init(lambda _=globals: _())
-
appyter.magic.
init
(_globals, verbose=False, ipynb='app.ipynb', mode='magic', safe_mode=False, **kwargs)[source]¶ Initialize appyter magic.
Sets up a jinj2 environment and injects %%appyter magic into your environment.
- Parameters:
_globals – (Dict[str, Any]) A callable with your globals for the purpose of injection, basically just:
lambda _=globals: _()
verbose – (Optional[bool]) Expand exception reporting to be more verbose
Module contents¶
This module enables you to turn your jupyter notebook into a jinja2 template-driven web application. Or just parse for other purposes.