Skip to main content

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.

Release files for tattrdb 0.1.2

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

Source distribution (sdist)

Source distribution for tattrdb 0.1.2
File Size Uploaded
tattrdb-0.1.2.tar.gz 6.7 kB Details

Release files / tattrdb-0.1.2.tar.gz

Download URL tattrdb-0.1.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67f1fb5ed92785be8b0ab8bd5927b0bd8317f8127d595ddb5ac7f1a40a39fcb7
BLAKE2b-256 checksum
How to use checksums
d3e81dd3c9e7c6026114a242e05f687dd23967c4d9c636a7ce2817e097a0ae0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

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