boxnotes2html

Convert Box's proprietary Box Notes to HTML, Markdown, or plain text
Log | Files | Refs | README | LICENSE

commit 52f9019a729b3de51300cb275baa3408f353fab2
parent d60add24fb595f9f7512b711c136399f8b735880
Author: alex wennerberg <awennerberg@cloudbakers.com>
Date:   Mon, 22 Jul 2019 15:52:53 -0500

sorted imports

Diffstat:
Mboxnotes2html/boxnote.py | 7++++---
Mboxnotes2html/cli.py | 5+++--
Mboxnotes2html/html.py | 4+---
Mtests/fixtures/notes.py | 5+++--
Mtests/test_cli.py | 1+
5 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/boxnotes2html/boxnote.py b/boxnotes2html/boxnote.py @@ -1,9 +1,10 @@ -from functools import reduce import json +import os import re -from . import html, markdown +from functools import reduce from xml.etree import ElementTree as ET -import os + +from . import html, markdown dir_path = os.path.dirname(os.path.realpath(__file__)) diff --git a/boxnotes2html/cli.py b/boxnotes2html/cli.py @@ -1,6 +1,7 @@ -import sys -import os import argparse +import os +import sys + from boxnotes2html.boxnote import BoxNote diff --git a/boxnotes2html/html.py b/boxnotes2html/html.py @@ -1,10 +1,8 @@ +import base64 import json import urllib.parse -import base64 - from collections import namedtuple - HTMLTag = namedtuple("HTMLTag", ["tag", "attributes"]) diff --git a/tests/fixtures/notes.py b/tests/fixtures/notes.py @@ -1,6 +1,8 @@ import os + import pytest -from boxnotes2html.boxnote import BoxNote, AttributeChunk + +from boxnotes2html.boxnote import AttributeChunk, BoxNote here = os.path.dirname(__file__) simple_note_path = "simple_note.boxnote" @@ -33,4 +35,3 @@ def complex_note(): @pytest.fixture() def simple_attribute(): return AttributeChunk("*1*4*10+2|1+1") - diff --git a/tests/test_cli.py b/tests/test_cli.py @@ -1,4 +1,5 @@ from unittest.mock import patch + from boxnotes2html import cli