Collects, processes and stores information on 'magic numbers'.
Project description
File Signature Collectors
Project focused on obtaining, processing and storing information related to "magic numbers" from the files.
You can save the data in a normal file (file_signatures
- default) or in a sqlite file (file_signatures.sqlite
- default).
Note: In the
Byte Offset
field, if it appears:
-512
=> last 512 bytes.+=188
=> every 188th bytes.
Install
pip install filesignaturecollectors
How to use - Python
from filesignaturecollectors import Controller
# Initializes the counter.
c = Controller()
# gets data from source.
data1 = c.get_data_wiki()
data2 = c.get_data_gck()
# filters and concatenates the elements into a single list.
c.consolidate_data(data1, data2)
# gets the list of formatted items for storage.
data_formatted = c.get_dict_data()
# saves to normal file.
c.to_file(data=data_formatted)
# saves to sqlite file.
c.to_db(data=data_formatted)
How to use - CLI
$ collectfilesignatures -h
usage: collectfilesignatures [-h] [-a] [-w] [-g] [-f] [-db]
Collect file signatures from sources.
options:
-h, --help show this help message and exit
-a, --all Gets data from all collectors.
-w, --wiki Gets data from all collectors.
-g, --gck Gets data from all collectors.
-f, --to_file Save the data into a file.
-db, --to_db Save the data into a sqlite db.
An easy way to get file signatures.
Sources
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
Built Distribution
File details
Details for the file filesignaturecollectors-0.1.7.tar.gz
.
File metadata
- Download URL: filesignaturecollectors-0.1.7.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.6.8-100.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d489eb2b167a70a4a74f5a9cea82d8d0a6d93912c96252b8a95b557b15173b |
|
MD5 | fd49435283b78cb8e0bd909121bec56c |
|
BLAKE2b-256 | 459d660cbf66944db05a1deff458bd9076366550d458273206b75c963ab92735 |
File details
Details for the file filesignaturecollectors-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: filesignaturecollectors-0.1.7-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.6.8-100.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf2c0921b04a9570fa4945624cecd281a853f78a8f30a6af0cae09e78ef6dec |
|
MD5 | 964bd31787885a96146f10cd66f45706 |
|
BLAKE2b-256 | 2effcc87df266a3d5f7a8589a5ef84e7b1d661f539abc2a3ca371a5f119b15ee |