Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
documento-printserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documento
documento-printserver
Commits
8035f63e
Verified
Commit
8035f63e
authored
2 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Update deps, readme and add cutting
parent
01407e7a
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
documento_printserver/print_server.py
+2
-1
2 additions, 1 deletion
documento_printserver/print_server.py
poetry.lock
+921
-1099
921 additions, 1099 deletions
poetry.lock
pyproject.toml
+15
-18
15 additions, 18 deletions
pyproject.toml
with
939 additions
and
1119 deletions
README.md
+
1
−
1
View file @
8035f63e
...
@@ -9,7 +9,7 @@ A print server for the documento document management system
...
@@ -9,7 +9,7 @@ A print server for the documento document management system
## Setup udev
## Setup udev
-
`sudo cp 99-escpos.rules /etc/udev/rules.d/99-escpos.rules`
-
`sudo cp 99-escpos.rules /etc/udev/rules.d/99-escpos.rules`
-
Add user to group
`dialout`
-
Add user to group
`dialout`
(
`sudo usermod -a -G dialout $USER`
)
-
Restart udev
`sudo service udev restart`
(In some new systems it is done with
`sudo udevadm control --reload`
)
-
Restart udev
`sudo service udev restart`
(In some new systems it is done with
`sudo udevadm control --reload`
)
...
...
This diff is collapsed.
Click to expand it.
documento_printserver/print_server.py
+
2
−
1
View file @
8035f63e
...
@@ -4,7 +4,7 @@ import time
...
@@ -4,7 +4,7 @@ import time
from
tempfile
import
TemporaryDirectory
from
tempfile
import
TemporaryDirectory
import
requests
import
requests
from
barcode
import
Code128
from
barcode
.codex
import
Code128
from
barcode.writer
import
ImageWriter
from
barcode.writer
import
ImageWriter
from
escpos.printer
import
Usb
from
escpos.printer
import
Usb
...
@@ -66,6 +66,7 @@ def print_info(document, categories=None):
...
@@ -66,6 +66,7 @@ def print_info(document, categories=None):
printer
.
ln
(
3
)
printer
.
ln
(
3
)
printer
.
control
(
"
LF
"
)
printer
.
control
(
"
LF
"
)
printer
.
cut
()
base_url
=
settings
.
get
(
"
server.url
"
)
base_url
=
settings
.
get
(
"
server.url
"
)
...
...
This diff is collapsed.
Click to expand it.
poetry.lock
+
921
−
1099
View file @
8035f63e
This diff is collapsed.
Click to expand it.
pyproject.toml
+
15
−
18
View file @
8035f63e
...
@@ -6,31 +6,28 @@ authors = ["Jonathan Weth <git@jonathanweth.de>"]
...
@@ -6,31 +6,28 @@ authors = ["Jonathan Weth <git@jonathanweth.de>"]
license
=
"GPL-3.0-or-later"
license
=
"GPL-3.0-or-later"
[tool.poetry.dependencies]
[tool.poetry.dependencies]
python
=
"^3.
6
"
python
=
"^3.
9
"
python-escpos
=
"^3.0a
8
"
python-escpos
=
"^3.0a
9
"
python-barcode
=
"^0.1
3
.1"
python-barcode
=
"^0.1
5
.1"
requests
=
"^2.25.1"
requests
=
"^2.25.1"
dynaconf
=
"^3.1.4"
dynaconf
=
"^3.1.4"
[tool.poetry.dev-dependencies]
[tool.poetry.dev-dependencies]
sphinx
=
"^3.5"
sphinx
=
"^7.0"
sphinx-autodoc-typehints
=
"^1.7"
sphinx-autodoc-typehints
=
"^1.23"
pytest
=
"^6.0"
pytest
=
"^7.4"
safety
=
"^1.8.5"
flake8
=
"^5.0.0"
flake8
=
"^3.9.0"
flake8-fixme
=
"^1.1.1"
flake8-fixme
=
"^1.1.1"
flake8-mypy
=
"^17.8.0"
flake8-bandit
=
"^4.1.1"
flake8-bandit
=
"^2.1.2"
flake8-builtins
=
"^2.1.0"
flake8-builtins
=
"^1.4.1"
flake8-docstrings
=
"^1.7.0"
flake8-docstrings
=
"^1.6.0"
flake8-rst-docstrings
=
"^0.3.0"
flake8-rst-docstrings
=
"^0.0.14"
black
=
"^23.7.0"
black
=
"^19.10b0"
flake8-black
=
"^0.3.6"
flake8-black
=
"^0.2.0"
isort
=
"^5.12.0"
isort
=
"^5.8.0"
flake8-isort
=
"^4.0.0"
flake8-isort
=
"^4.0.0"
pytest-cov
=
"^
2.8.1
"
pytest-cov
=
"^
4.1.0
"
pytest-sugar
=
"^0.9.2"
pytest-sugar
=
"^0.9.2"
tox
=
"^3.23.0"
[tool.black]
[tool.black]
line-length
=
100
line-length
=
100
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment