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.

Source Distribution

pytracremote-0.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pytracremote-0.0.3.linux-x86_64.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page