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)
client.inspect(file)
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
inspect
Check if files included in the compressed file exist in the catalog.
This feature supports ZIP, 7z, RAR file.
simple-catalog-cli --inspect --host localhost --user user --password passwd --database catalog --file test.zip --file_password file_password --output_format json
Dependencies
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for simple_catalog-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a19da310a10c4cd371a438e368bd16f4e0335f558bc82b25e09e27f9629e3948 |
|
MD5 | 0a1d47dd131ea646c45d359aee0483ef |
|
BLAKE2b-256 | 185c7eb533742d518d9836739640162ca870ec001a241c0817d7a1e68cc4fda2 |