Skip to main content

Tools for broadcast management

Project description

Collection of scripts for managing Outernet content repository.

Installing

Install using pip straight from the repository:

pip install https://github.com/Outernet-Project/outernet-broadman/archive/master.zip

Git also needs to be installed on your system.

Note that only Unix/Linux systems are supported at this moment.

Environment variables

Broadman scripts work on a content pool directory. Usually, you need to be in the root of the content pool when using the commands. To work with the content pool regardless of the current working directory, you can set the OUTERNET_CONTENT environment variable to the content pool path.

Overview

There are two main aspects when it comes to working with the content pool. There is a master pool, which contains the actual content, and there are servers which hold symlinks to content.

Before we begin working on a content pool, we need to initialize it. Use the following tool for the purpose:

  • pinit - initialize content pool

The following tools are used for working with the content:

  • zimport - import legacy zipball into master pool

  • update - for making changes to content permanent, resetting and reverting changes

  • lschanged - listing changed content

Tools for working with metadata metadata:

  • mcat - viewing metadata

  • med - editing metadata

  • mclean - clean up metadta file

  • filter - filter paths according to metadata rules

The following tools are used for navigating the content pool:

  • getpath - obtaining a path to content directory or symlink by content ID

  • getcid - obtaining content ID from content directory path

For managing servers, these tools are available:

  • srvadd - add content to server

  • srvdel - remove content from server

  • srvsync - sync backlog with servers

Using the tools

We won’t go into each tool in detail. Instead we’ll take a look at some general principles.

All tools have --help switch that provides short usage notes and descriptions of all arguments they take/require.

Most tools can be used as usual by passing arguments to them, or they can be used in a pipe. When used in a pipe, most tools will take content IDs and/or paths. You can usually convert between paths and IDs using getpath and getcid commands in a pipe.

Most tools will show their status as OK, ERR, or WARN. These are always output to STDOUT. Additional error information can be output to STDERR. These messages can be piped to a file to aid troubleshooting.

Apart from conent IDs and paths, tools may have different switches that alter their behavior. Some tools may require switches to be used.

Tools can and should be used alongside common Unix tools like sed, awk, grep.

The entire content pool is a Git repository. Common git techniques apply. However, you should avoid using Git directly.

Broadman tools will usually be able to get you where you need to be without too much effort. The tools output commit log messages in a particular machine-readable format, which is the main reason direct usage of git should be avoided.

Backlog

Every time a content is added to or removed from a server, this is recorded in a backlog file located at ${OUTERNET_CONTENT}/.backlog. This file is in a machine-readable format, and automation tools may be added later to help sync the content pool changes to actual servers.

Reporting bugs

Please report bugs and feature requests to the issue tracker.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

outernet-broadman-0.4.zip (48.8 kB view details)

Uploaded Source

outernet-broadman-0.4.tar.gz (33.0 kB view details)

Uploaded Source

File details

Details for the file outernet-broadman-0.4.zip.

File metadata

File hashes

Hashes for outernet-broadman-0.4.zip
Algorithm Hash digest
SHA256 4d1893cada235c0d84565cb60f3dd67f4b347b358f031e2a0c3a52da3be58b5c
MD5 64356537c5ca5488c8721f71ec104b70
BLAKE2b-256 119c15d4aabb75684bbe40aff39a4ebe4493f6a4f87758ea207e31708721861a

See more details on using hashes here.

File details

Details for the file outernet-broadman-0.4.tar.gz.

File metadata

File hashes

Hashes for outernet-broadman-0.4.tar.gz
Algorithm Hash digest
SHA256 3b2311d288b6ad6fb3201c96c6cd1abf7660b3ee2e3350629655bfbe5be06565
MD5 48b25f676a0b17c90da602da92f47e78
BLAKE2b-256 db64b29ebd5ea389835092546e7b713c2a618c3d38ece914602b584586c0e7d7

See more details on using hashes here.

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