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
File details
Details for the file simple_catalog-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: simple_catalog-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ff006f4ce059e4f89d6cc906cdadc6c154e6754fa7299833c3781fc5ab719e |
|
MD5 | 39bcf298d912b62fdd506b0e18dabe8a |
|
BLAKE2b-256 | 851303ce7d849285d1582b9c2f22c95dbab0738373e759a0dba13738508d291d |