skip to navigation
skip to content

twiki 0.0.3

A bunch of tools which allow manage a TWiki

# python-twiki

python-twiki is a bunch of tools which allow manage a TWiki.

# Install

## From the source

```sh
$ git clone https://github.com/psaavedra/python-twiki.git
$ cd python-twiki
$ sudo python setup.py install
```

## From PyPI

```sh
$ sudo pip install twiki
```

# Examples

## Configuration file (setup.cfg)

```
[global]
loglevel:20
logfile:/dev/stdout
url:http://localhost/twiki

[auth]
type:http_basic
username:user
password:pass
```
where `url` is something like: ''https://wiki.igalia.com/twiki''

In the other hand, the `auth` settings refer to HTTP Basic
authentication parameters, in necessary case.

## Getting Topics from a Web

```sh
$ twiki-get-topics -c setup.cfg -o list.csv -w WebName

```

where `list.csv` results something like this:

```
"WebName/WebTopic1",
"WebName/WebTopic2",
```

## Moving a Topic to another Topic parent

```sh
$ twiki-move-topic -c setup.cfg -t WebName/WebTopic -p NewWebTopicParent
$ twiki-move-topic -c setup.cfg -i list.csv
$ twiki-move-topic -c setup.cfg -i list.csv -p NewWebTopicParent

```

where `list.csv` is something like this:

```
"WebName/WebTopic1", "NewWebTopicParent1"
"WebName/WebTopic2", "NewWebTopicParent2"

```

## Renaming Topics

```sh
$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n NewWebName/NewWebTopic
$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n WebName/NewWebTopic
$ twiki-rename-topic -c setup.cfg -t WebName/WebTopic -n NewWebName/WebTopic
$ twiki-rename-topic -c setup.cfg -i list.csv
```

where `list.csv` is something like this:

```
"WebName/WebTopic1", "NewWebName/NewWebTopic1"
"WebName/WebTopic2", "NewWebName/NewWebTopic2"
```


 
File Type Py Version Uploaded on Size
twiki-0.0.3.tar.gz (md5) Source 2017-04-22 4KB
  • Author: Pablo Saavedra
  • Home Page: http://github.com/psaavedra/python-twiki
  • Download URL: https://github.com/psaavedra/python-twiki/zipball/master
  • Keywords: python twiki csv
  • License:
    Copyright 2017 Pablo Saavedra <psaavedra@igalia.com>
    
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the 
    "Software"), to deal in the Software without restriction, including 
    without limitation the rights to use, copy, modify, merge, publish, 
    distribute, sublicense, and/or sell copies of the Software, and to 
    permit persons to whom the Software is furnished to do so, subject to 
    the following conditions:
    
    The above copyright notice and this permission notice shall be 
    included in all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
  • Categories
  • Package Index Owner: Pablo.Saavedra.Rodio
  • DOAP record: twiki-0.0.3.xml