Skip to main content

Simple way to add file catalog with python

Project description

Simple Catalog

Register information with the catalog server to facilitate the integrity checks of built files in the build system.

Installation

install the latest stable version using pip

pip install simple-catalog

Usage

import simple_catalog

client = simple_catalog.Client(
    host="localhost",
    user="user",
    password="passwd",
    database="db",
    salt="abcd1234",
    product="product",
    revision="1234",
    hash="abcdefg",
)

client.add(file)

if client.check(file) is not None:
    removed_entry = client.delete(file)
    for entry in removed_entry:
        print(entry)

Use console scripts

add

simple-catalog-cli --add --host localhost --user user --password passwd --database catalog --file test.exe --salt abcd1234 --product productname --revision 1234 --hash abcdefg

delete

simple-catalog-cli --delete --host localhost --user user --password passwd --database catalog --file test.exe --salt abcd1234 --product productname --revision 1234 --hash abcdefg

check

simple-catalog-cli --check --host localhost --user user --password passwd --database catalog --file test.exe --salt abcd1234

Dependencies

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

simple_catalog-0.0.6-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

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