Python Forum
python to install printer drivers automatic
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python to install printer drivers automatic
#1
Hello:

Is there anyone can give me some tips of how to install printer drivers in python automatic.

because in IT daily work, we are boring of the end users talk to me install printer, I want to make a tool that they can install printer drivers easily

my code here
Reply
#2
You can start here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
I'm not sure, but believe that CUPS may be useful for this

Even if you don't use wxpython, you may wish to take a look at this: http://pythonhosted.org/wxPython/wx.Prin...wx.Printer
to get an idea of how to present the user end of a print driver,
and https://stackoverflow.com/questions/3105...ing-python
which is windows specific, but may also be useful.
Reply
#3
You need to specify which OS(s) you are using, whether the printer is local or networked and whether the printer is meant to work on Windows, Linux, Mac or a combination of them. For many of the common printers, Windows, Linux and I presume, Mac and other *nix systems already have the drivers available. It is simply a matter of 'clicking' add a printer, selecting your printer and that's about it. I'm not sure how Python is going to make that any simpler or faster. Perhaps if you let us know, briefly, what steps you currently have to convey to the end user, it might help in pointing you in the right direction.

Besides, what are you trying to do, Python your way out of a job? Big Grin
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
(Jun-26-2017, 12:51 PM)sparkz_alot Wrote: Besides, what are you trying to do, Python your way out of a job?
Interesting conversation related to this: https://workplace.stackexchange.com/ques...ted-my-job
Reply
#5
and as an FYI. wxpython has a printer routine:
see: https://wxpython.org/Phoenix/docs/html/w...wx.Printer
you may be able to look at the source and gain some insight
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information automatic document renaming lisa_d 2 348 Mar-20-2024, 06:34 PM
Last Post: Pedroski55
  Unexpected termination of program when using JDBC drivers in python with jaydebeapi skarface19 2 331 Feb-17-2024, 12:01 PM
Last Post: skarface19
  Trying to send file to printer with no results. chob_thomas 2 3,381 Dec-21-2022, 07:12 AM
Last Post: Pedroski55
  How do you marshal the default printer setup to print? hammer 0 1,281 May-29-2022, 02:54 PM
Last Post: hammer
  Can you print a string variable to printer hammer 2 1,949 Apr-30-2022, 11:48 PM
Last Post: hammer
  Matplotlib - automatic update frohr 1 1,101 Mar-29-2022, 07:05 PM
Last Post: deanhystad
  automatic create folders Mr_Kool 4 1,766 Dec-21-2021, 04:38 PM
Last Post: BashBedlam
  PyQt5 MySQL Drivers Not Loaded AdeS 7 5,073 Aug-06-2021, 08:34 AM
Last Post: AdeS
  Automatic user/password entry on prompt by bash script PBOX_XS4_2001 3 2,778 May-18-2021, 06:42 PM
Last Post: Skaperen
  Printing to a printer connected to pi 4 alan 2 2,449 Oct-04-2020, 10:08 PM
Last Post: alan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020