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
Software on local host: ssh, apg
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pytracremote-0.0.3.tar.gz
.
File metadata
- Download URL: pytracremote-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434147947cd4c0526d1525841153e9b522367b3a5716c6a69576135210e6bfbf |
|
MD5 | 285a006765f5219b96730ce152742c9d |
|
BLAKE2b-256 | f52e479e2eea00e862f13db58a923923f5395940cf52b8563dea9f5fd7154e87 |
File details
Details for the file pytracremote-0.0.3.linux-x86_64.tar.gz
.
File metadata
- Download URL: pytracremote-0.0.3.linux-x86_64.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64d0b925148f1351c59acee009171059f529973322a1b3be98441aba66f1af95 |
|
MD5 | f77b8552774d123e2aa9558ecae2c5b6 |
|
BLAKE2b-256 | e0c78790050d4f93612b007c20527f5e161a7843e89daa21cd8783cf505ffbb6 |