Skip to main content

zhongkui core utils package

Project description

zhongkui-core

zhongkui core analysis package

Installation

  1. install exiftool
#!/bin/sh

# only test on ubuntu18.04

export EXIFTOOL=12.01
echo "Installing exiftool..." 
curl -Ls https://exiftool.org/Image-ExifTool-$EXIFTOOL.tar.gz > /tmp/exiftool.tar.gz 
cd /tmp 
tar xzf exiftool.tar.gz 
cd Image-ExifTool-$EXIFTOOL 
perl Makefile.PL 
make test 
make install 
  1. install zhongkui-core
$ git clone git@git.kongkongss.com:zhongkui/zhongkui-core.git
$ cd zhongkui-core
$ pip install -e .

Getting Started

>>> from zhongkui.core import File
>>> sample = File("tests/sample/pe_upx")
>>> print(sample.basicInfo())
>>>
{
    "name": "pe",
    "md5": "ff2a00e3d07afcf32a7459040bc9cc41",
    "sha1": "61e810f352866cc5f3184489c796fba4c21b99ec",
    "sha256": "fb12aec2553bd2567a82f18ca2e0710e8d72b22b1d2bdcf3a296e987ad3c398a",
    "fileType": "win32exe",
    "fileSize": 3901952,
    "isProbablyPacked": true
}

Running the tests

$ cd zhongkui-core
$ pytest -s

Changelog

release Changelog

Authors

  • kongkong Jiang - Initial work - jyker

License

This project is licensed under the MIT License - see the LICENSE file for details

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

zhongkui-core-0.1.0.linux-x86_64.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

zhongkui_core-0.1.0-py3-none-any.whl (7.8 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