Skip to main content

File integrity checking tool

Project description

FICT is a simple file integrity checking tool.

Usage

Basic usage is as follows.

cd ~
fict init
fict add ~/Documents
fict list
fict compute
fict check

The database will is stored in ~/.fict/fict_db. The fict_db file that's normally in ~/.fict can be manipulated manually. The changes will be ingested upon next run.

The location of where the fict_db can be stored can be specified with the option --fict-dir. The default is in your $HOME

--hash-tool defaults to sha512sum. Though you can pass in whatever tool you want to use. Some options are b2sum, md5sum, sha1sum, crc32. Use the tool that you feel best about. md5sum is available everywhere and is a good middle ground. b2sum is faster but not as available. We do a b2sum on every file by default but this can also be adjusted via --default-hash-tool. crc32 is simple but may take longer than all even though it's supposed to be faster. crc32 is meant for short communication verification rather than a 27GB mp4.

Note that if your fict-db is defined to use one tool and you change it after the fact. The software will get confused. In that case it's recommended you open the fict_db file and use a tool like sed(1) to change all occurrences.

The fict_db is written out every so often. At the time of writing this at around every 1000 computations. This can be changed in the code but it's not at the moment a cli parameter. The bigger the number the more potential lost work you can have if your system crashes. The shorter the number the more churn on your disk.

If you notice any bugs feel free to email me.

Note I use a Linux desktop so that's what I run this on. There may need to be adapting to get it to work on Macs.

Installing

pip install Fict

You can also clone the code from github and run the fict command.

Publishing to Pypi

pip install twine
python3 setup.py sdist
twine upload dist/*

Project details


Download files

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

Source Distribution

Fict-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file Fict-1.0.0.tar.gz.

File metadata

  • Download URL: Fict-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for Fict-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79effdea5cb00f62edec10e67bcb890974c6bb6246ef0889b477b351a40638c4
MD5 f26b32127d85d5b96c37ac89a1c428a9
BLAKE2b-256 28890d75169c75fcf54c598ef0cea034dc4894b0a7f3f10f8263a20b0f2f541e

See more details on using hashes here.

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