Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 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

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.

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 hashes
Filename, size pytracremote-0.0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page