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 multiple trac instances in different folders.

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

Requirements

  1. Software on local host: ssh, apg

  2. Software on host with trac: htpasswd

  3. ssh access to remote host by pubkey

Example usage

    >>> import pytracremote
    >>> t_r = pytracremote.TracRemote(ssh_host="trac.example.com", 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')
    '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')
'ays5Quatda'

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.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pytracremote-0.0.2.linux-x86_64.tar.gz (4.5 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