Skip to content
forked from WTFox/printers

A python interface for printers. Mainly Ricoh.

Notifications You must be signed in to change notification settings

radiskis/printers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ricoh

About

Whenever my organization hires or fires someone, I have to go into each of our 5 printers and add/remove the user. This is often the step I forget to do, and it's definitely the one I like the least.

So I've written a python wrapper for dealing with these machines from Hell.

Compatibility

This works on the following models:

  • Ricoh Aficio MP 6002
  • Ricoh MP C6502
  • Ricoh Aficio MP 9002

Installation

git clone https://github.com/WTFox/printers.git
cd printers
python setup.py install

Usage

from printers import Ricoh

printer_conn = dict(
    host='10.10.2.13',
    username='admin',
    password=''
)

# Access via context manager so that all connections are closed automatically.
with Ricoh(**printer_conn) as ricoh:
    print(repr(ricoh))
    # <Ricoh(10.10.2.8)> at 51441168
    
    print(ricoh)
    # There are 94 users in 10.10.2.8
    
    print(len(ricoh))
    # 94
    
    for user in ricoh:
        print(user.id, user.name)
        # 1 John Doe
        # 2 Billy Bob
        # 3 ...
        
        # add a user
        r.add_user(userid='jean', name='James Dean', displayName='James D', email='[email protected]') 
        
        # delete user (by id)
        r.delete_user(138) 

Disclaimer

Even though I've tested this thoroughly, I'm not responsible for any damage it may cause to your fickle, weak-blooded hounds of hell printers.

Contact me here for questions or concerns. Thanks!

About

A python interface for printers. Mainly Ricoh.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%