We start with the imports:
import dicom
import os
import numpy
The
pydicom
package can be installed throughpip
and can be found in https://pypi.python.org/pypi/pydicom/
import os, sys | |
import subprocess | |
def printToPrnter(name, city): | |
data = "^XA" \ | |
"^FO200,30^ADN,30,20^FB400,3,0,C^FD"+name+"^FS" \ | |
"^FO200,80^ADN,30,20^FB400,3,0,C^FD"+city+"^FS" \ | |
"^XZ" | |
try: |
REST_FRAMEWORK = { | |
'DEFAULT_FILTER_BACKENDS': [ | |
'django_filters.rest_framework.DjangoFilterBackend' | |
], | |
'DEFAULT_AUTHENTICATION_CLASSES': [ | |
'rest_framework_simplejwt.authentication.JWTAuthentication', | |
], | |
} |
# CONDA | |
# create env | |
conda config --add channels conda-forge | |
conda config --set channel_priority strict | |
conda create --strict-channel-priority -n jupyter | |
conda activate jupyter | |
# jupyter, notebook and old notebook extensions | |
conda install -y jupyterlab |
from sqlalchemy import (String, | |
Integer, | |
engine_from_config, | |
Column) | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker | |
Base_1 = declarative_base() | |
Base_2 = declarative_base() |
We start with the imports:
import dicom
import os
import numpy
The
pydicom
package can be installed throughpip
and can be found in https://pypi.python.org/pypi/pydicom/
<?xml version="1.0" encoding="utf-8"?> | |
<DieCutLabel Version="8.0" Units="twips"> | |
<PaperOrientation>Portrait</PaperOrientation> | |
<Id>Small30332</Id> | |
<PaperName>30332 1 in x 1 in</PaperName> | |
<DrawCommands> | |
<RoundRectangle X="0" Y="0" Width="1440" Height="1440" Rx="180" Ry="180" /> | |
</DrawCommands> | |
<ObjectInfo> | |
<TextObject> |