Giter Site home page Giter Site logo

xtractor's Introduction

xtractor

A python library which gives information about a specific file.

  • This library containing functions compute the following things:

    • Return the name of the file
    • Return the size of a given file name
    • Create and return the Sha1 hash
    • Create and return the MD5 hash

Getting started

Clone the xtractor repo using this command:

https://github.com/ppatel221/xtractor.git

After cloning the repo go into the xtractor repo and execute the command:

python fileInfo.py data/mydata.txt

  • The following test will return:

    getName(path): mydata.txt

    getSize(path): 44

    getSHA1(data): be417768b5c3c5c1d9bcb2e7c119196dd76b5570

    getMD5(data): 37c4b87edffc5d198ff5a185cee7ee09

Contributions

There is always a way to improve an existing project. Feel free to look at the code and request for PR

License

The project is currently licensed under the MIT license.

xtractor's People

Contributors

phillyphenning avatar ppatel221 avatar

Watchers

 avatar

Forkers

phillyphenning

xtractor's Issues

Add a way to get MD5 digest for a file

We need a way to get the MD5 digest for a file at a given path. For example, given a path like "/home/kim/mydata.txt", which contains the text The quick brown fox jumps over the lazy dog, it should return "9e107d9d372bb6826bd81d3542a419d6".

pythonic thinking

Currently this program goes about using the python interrupter to begin and execute each of its methods.

It would be advantageous to approach in a pythonic and application style.

  • Add main function
  • Call inner methods
  • Command line callable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.