Tag and Attribute Database.
Project description
Description
TattrDB is a simple way to add Tags and Attributes to hostnames for use as a very generic service management database.
Installation
pip install tattrdb
Database Creation
Tattr uses sqlalchemy underneath and those uses a database url to connect. Once you’ve constructed your url you can plugin it into the example below:
from tattrdb import models models._sync(models.connect("sqlite:///tattr.sqlite"))
Configuration
Using the same url from the example above you’ll need to create a configuration file at /etc/tattr.yaml as follows:
db_uri: "sqlite:///tattr.sqlite"
Command-line
Once you’ve finished installing and configuring tattr you can use the tattr command line tool to add/rm/modify hosts/tags/attributes. Tattr uses subcommands and each individual subcommand has it’s own help messages.
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
File details
Details for the file tattrdb-0.1.2.tar.gz
.
File metadata
- Download URL: tattrdb-0.1.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f1fb5ed92785be8b0ab8bd5927b0bd8317f8127d595ddb5ac7f1a40a39fcb7 |
|
MD5 | da2ed78ecb9326e0b57d4822a4ca45cd |
|
BLAKE2b-256 | d3e81dd3c9e7c6026114a242e05f687dd23967c4d9c636a7ce2817e097a0ae0f |