Skip to main content

ALDashboard.create_package

log​

space_to_underscore​

bold​

DAObject​

DAList​

DAFile​

DAFileList​

path_and_mimetype​

user_info​

SavedFile​

directory_for​

datetime​

zipfile​

os​

re​

Optional​

Any​

Dict​

List​

Tuple​

Union​

__all__​

get_files​

def get_files(user_id, section="playground", project="default")

get_list_of_projects​

def get_list_of_projects(user_id)

project_name​

def project_name(name)

create_user_playground_zip​

def create_user_playground_zip(user_id: int,
name: str,
project: str = "default",
fileobj: Optional[DAFile] = None)

create_package_zip​

def create_package_zip(pkgname: str,
info: dict,
author_info: dict,
folders_and_files: dict,
fileobj: Optional[DAFile] = None) -> DAFile

Given a dictionary of lists, with the keys representing folders and the values representing a list of DAFiles, create a Python package with Docassemble conventions. info: (created by DAInterview.package_info()) license author_name readme description url version dependencies // interview_files replaced with folders_and_files // template_files // module_files // static_files author_info: author name and email folders_and_files: questions->list of absolute file paths on the local filesystem templates modules static sources

Strucure of a docassemble package:

  • docassemble-PKGNAME/ LICENSE MANIFEST.in README.md setup.cfg setup.py +-------docassemble init.py +------PKGNAME init.py SOME_MODULE.py +------data +------questions README.md +------sources README.md +------static README.md +------templates README.md