bobina 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. bobina/__init__.py +6 -0
  2. bobina/__main__.py +5 -0
  3. bobina/cli/__init__.py +17 -0
  4. bobina/cli/args.py +911 -0
  5. bobina/cli/common.py +1264 -0
  6. bobina/cli/device.py +483 -0
  7. bobina/cli/documents.py +523 -0
  8. bobina/cli/history.py +153 -0
  9. bobina/cli/library.py +277 -0
  10. bobina/codes.py +158 -0
  11. bobina/config.py +75 -0
  12. bobina/datasource.py +441 -0
  13. bobina/editor.py +58 -0
  14. bobina/emulator.py +150 -0
  15. bobina/engine.py +475 -0
  16. bobina/escpos.py +150 -0
  17. bobina/export.py +98 -0
  18. bobina/features.py +45 -0
  19. bobina/fidelity.py +234 -0
  20. bobina/fileio.py +219 -0
  21. bobina/fonts/AtkinsonHyperlegible-Bold.ttf +0 -0
  22. bobina/fonts/AtkinsonHyperlegible-Regular.ttf +0 -0
  23. bobina/fonts/BarlowCondensed-Regular.ttf +0 -0
  24. bobina/fonts/BarlowCondensed-SemiBold.ttf +0 -0
  25. bobina/fonts/DejaVuSans-Bold.ttf +0 -0
  26. bobina/fonts/DejaVuSans.ttf +0 -0
  27. bobina/fonts/IBMPlexMono-Bold.ttf +0 -0
  28. bobina/fonts/IBMPlexMono-Regular.ttf +0 -0
  29. bobina/fonts/LICENSES.md +16 -0
  30. bobina/fonts/TerminusTTF-4.49.3.ttf +0 -0
  31. bobina/fonts/TerminusTTF-Bold-4.49.3.ttf +0 -0
  32. bobina/fonts/licenses/AtkinsonHyperlegible-OFL.txt +92 -0
  33. bobina/fonts/licenses/Barlow-OFL.txt +93 -0
  34. bobina/fonts/licenses/DejaVu-LICENSE.txt +187 -0
  35. bobina/fonts/licenses/IBMPlex-OFL.txt +93 -0
  36. bobina/fonts/licenses/Spleen-BSD-2.txt +24 -0
  37. bobina/fonts/licenses/Terminus-OFL.txt +93 -0
  38. bobina/fonts/spleen-12x24.otf +0 -0
  39. bobina/history.py +296 -0
  40. bobina/imaging.py +211 -0
  41. bobina/layout.py +1069 -0
  42. bobina/library.py +93 -0
  43. bobina/model.py +96 -0
  44. bobina/nudges.py +192 -0
  45. bobina/paper.py +104 -0
  46. bobina/parser.py +301 -0
  47. bobina/paths.py +24 -0
  48. bobina/pay.py +581 -0
  49. bobina/pdfout.py +86 -0
  50. bobina/preview.py +91 -0
  51. bobina/problem_help.py +133 -0
  52. bobina/profile.py +130 -0
  53. bobina/profiles/SOURCES.md +10 -0
  54. bobina/profiles/bixolon-srp-s300.toml +106 -0
  55. bobina/profiles/citizen-ct-s651.toml +100 -0
  56. bobina/profiles/epson-tm-l90.toml +113 -0
  57. bobina/profiles/epson-tm-m30iii.toml +112 -0
  58. bobina/profiles/epson-tm-p80-42col.toml +113 -0
  59. bobina/profiles/epson-tm-p80.toml +113 -0
  60. bobina/profiles/epson-tm-t20ii-42col.toml +113 -0
  61. bobina/profiles/epson-tm-t20ii.toml +113 -0
  62. bobina/profiles/epson-tm-t20iii.toml +113 -0
  63. bobina/profiles/epson-tm-t70-sa.toml +91 -0
  64. bobina/profiles/epson-tm-t70.toml +99 -0
  65. bobina/profiles/epson-tm-t70ii-ch-58mm.toml +113 -0
  66. bobina/profiles/epson-tm-t70ii-ch.toml +113 -0
  67. bobina/profiles/epson-tm-t70ii-sa.toml +113 -0
  68. bobina/profiles/epson-tm-t70ii.toml +113 -0
  69. bobina/profiles/epson-tm-t88ii.toml +112 -0
  70. bobina/profiles/epson-tm-t88iii.toml +99 -0
  71. bobina/profiles/epson-tm-t88iv-sa.toml +91 -0
  72. bobina/profiles/epson-tm-t88iv.toml +99 -0
  73. bobina/profiles/epson-tm-t88v.toml +113 -0
  74. bobina/profiles/metapace-t-1.toml +96 -0
  75. bobina/profiles/mtp-ii-58.toml +114 -0
  76. bobina/profiles/netbye-nbtp-5880.toml +91 -0
  77. bobina/profiles/netbye-nbtp-8040.toml +91 -0
  78. bobina/profiles/netbye-nbtp-8080.toml +91 -0
  79. bobina/profiles/netum-nt-5890k.toml +110 -0
  80. bobina/profiles/netum-nt-80-v-ul.toml +110 -0
  81. bobina/profiles/seiko-rp-f10-58mm.toml +106 -0
  82. bobina/profiles/seiko-rp-f10-80mm.toml +106 -0
  83. bobina/profiles/xprinter-xp-q80k.toml +91 -0
  84. bobina/profiles/yhdaa-yhd-8390.toml +104 -0
  85. bobina/profiles/zijiang-zj-5870.toml +98 -0
  86. bobina/profiles/zjiang-pos-5890.toml +110 -0
  87. bobina/rasterfont.py +320 -0
  88. bobina/realistic.py +41 -0
  89. bobina/rows.py +89 -0
  90. bobina/sources.py +332 -0
  91. bobina/state.py +71 -0
  92. bobina/templates/card.bob.md +19 -0
  93. bobina/templates/clothing-tag.bob.md +35 -0
  94. bobina/templates/food-label.bob.md +25 -0
  95. bobina/templates/jewelry-tag.bob.md +17 -0
  96. bobina/templates/label.bob.md +24 -0
  97. bobina/templates/note.bob.md +13 -0
  98. bobina/templates/pay-sign.bob.md +20 -0
  99. bobina/templates/receipt.bob.md +37 -0
  100. bobina/templates/sale-price.bob.md +23 -0
  101. bobina/templates/shelf-price.bob.md +21 -0
  102. bobina/templates/shipping-label.bob.md +39 -0
  103. bobina/templates/todo.bob.md +20 -0
  104. bobina/templating.py +899 -0
  105. bobina/transport.py +394 -0
  106. bobina/view.py +139 -0
  107. bobina-0.1.0.dist-info/METADATA +204 -0
  108. bobina-0.1.0.dist-info/RECORD +117 -0
  109. bobina-0.1.0.dist-info/WHEEL +4 -0
  110. bobina-0.1.0.dist-info/entry_points.txt +3 -0
  111. bobina-0.1.0.dist-info/licenses/LICENSE +21 -0
  112. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/AtkinsonHyperlegible-OFL.txt +92 -0
  113. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/Barlow-OFL.txt +93 -0
  114. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/DejaVu-LICENSE.txt +187 -0
  115. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/IBMPlex-OFL.txt +93 -0
  116. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/Spleen-BSD-2.txt +24 -0
  117. bobina-0.1.0.dist-info/licenses/src/bobina/fonts/licenses/Terminus-OFL.txt +93 -0
bobina/__init__.py ADDED
@@ -0,0 +1,6 @@
1
+ from importlib.metadata import PackageNotFoundError, version
2
+
3
+ try:
4
+ __version__ = version("bobina") # one source of truth: pyproject.toml
5
+ except PackageNotFoundError: # running from a source tree that was never installed
6
+ __version__ = "0+unknown"
bobina/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
bobina/cli/__init__.py ADDED
@@ -0,0 +1,17 @@
1
+ """bobina — print Markdown on thermal roll printers. See docs/CLI.md."""
2
+
3
+ from .args import main, make_parser, normalize # noqa: F401
4
+ from .common import ( # noqa: F401
5
+ CONFIRM,
6
+ DOC,
7
+ LEFT_OUT,
8
+ MODE,
9
+ OK,
10
+ PRINTER_ERR,
11
+ SECURITY,
12
+ STRICT,
13
+ UNREACHABLE,
14
+ USAGE,
15
+ Fail,
16
+ printer_overrides,
17
+ )