Skip to main content

Manager for multiple remote trac instances

Project description

Python wrapper over shell script that manages trac copying and .htpasswd management on remote server that serves mu;tiple trac instances in different folders.

This module may not have practical use for anyone except but it may be used as demonstration of shell-script wrapping in python


  1. Software on local host: ssh, apg
  2. Software on host with trac: htpasswd

Example usage

    >>> import pytracremote
    >>> t_r = pytracremote.TracRemote(ssh_host="", ssh_user="tracmanager", tracs_dir='/var/lib/trac/projects', htpasswd_path='/var/lib/trac/projects/.htpasswd', chgrp='apache2')
    >>> t_r.get_trac_users()
    ['user1', 'user2']
    >>> t_r.copy_trac('42-trac11-template', '42-test-deletemedelete')
    >>> # on remote directory '42-trac11-template' will be copied to '42-test-deletemedelete'
    >>> t_r.add_trac_user('42-test-deletemedelete', 'deletemedelete')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytracremote, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pytracremote-0.0.3.linux-x86_64.tar.gz (5.3 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size pytracremote-0.0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page