From 6ba35a2db1143434339227070d3f365e25596de5 Mon Sep 17 00:00:00 2001 From: silviana amethyst <1388063+ofloveandhate@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:04:33 -0500 Subject: [PATCH] improved imports to declutter base namespace module namespaces are still clogged with things like `os` -- for example, `mc.canvas_objects.os`. The `os` there shouldn't make it out. But I'm running out of time to work on this. --- markdown2canvas/__init__.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/markdown2canvas/__init__.py b/markdown2canvas/__init__.py index 97294dc..78d0ff4 100644 --- a/markdown2canvas/__init__.py +++ b/markdown2canvas/__init__.py @@ -36,27 +36,30 @@ __version__ = '0.' __author__ = 'silviana amethyst, Mckenzie West, Allison Beemer' -__all__ = ['logging','exception','translation_functions','canvas2markdown','tool'] +__all__ = ['logging','exception','translation_functions','course_interaction_functions', + 'CanvasObject', 'Document', 'Page', 'Assignment', 'Image', 'File', 'BareFile', 'Link', + 'canvas2markdown','tool'] -import markdown2canvas.logging -import markdown2canvas.exception +import markdown2canvas.logging as logging -from .setup_functions import * +import markdown2canvas.exception as exception +from .setup_functions import get_canvas_key_url, make_canvas_api_obj -import markdown2canvas.translation_functions -from .course_interaction_functions import * +import markdown2canvas.translation_functions as translation_functions + +import markdown2canvas.course_interaction_functions as course_interaction_functions ################## classes from .canvas_objects import CanvasObject, Document, Page, Assignment, Image, File, BareFile, Link -import markdown2canvas.canvas2markdown +import markdown2canvas.canvas2markdown as canvas2markdown -import markdown2canvas.tool +import markdown2canvas.tool as tool