Skip to main content

pytracremote

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'

Metadata

Release files for pytracremote 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytracremote 0.0.3
File Size Uploaded Provenance
pytracremote-0.0.3.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytracremote 0.0.3
File Interpreter ABI Platform
pytracremote-0.0.3.linux-x86_64.tar.gz Details

Total release size: 9.3 kB

Release files / pytracremote-0.0.3.tar.gz

Download URL pytracremote-0.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
434147947cd4c0526d1525841153e9b522367b3a5716c6a69576135210e6bfbf
BLAKE2b-256 checksum
How to use checksums
f52e479e2eea00e862f13db58a923923f5395940cf52b8563dea9f5fd7154e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytracremote-0.0.3.linux-x86_64.tar.gz

Download URL pytracremote-0.0.3.linux-x86_64.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
64d0b925148f1351c59acee009171059f529973322a1b3be98441aba66f1af95
BLAKE2b-256 checksum
How to use checksums
e0c78790050d4f93612b007c20527f5e161a7843e89daa21cd8783cf505ffbb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytracremote 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page