-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c57f2d6
commit 4b5a43d
Showing
5 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
Data Integrity Fingerprint (Python implementation) | ||
=================================================== | ||
DIF Reference Implementation in Python | ||
====================================== | ||
|
||
![GitHub](https://img.shields.io/pypi/l/dataintegrityfingerprint?style=flat) | ||
[![PyPI](https://img.shields.io/pypi/v/dataintegrityfingerprint?style=flat)](https://pypi.org/project/dataintegrityfingerprint/) | ||
|
||
**Data Integrity Fingerprints (DIF)** | ||
* **GUI and command line tool** | ||
* **Python library** | ||
|
||
Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF | ||
|
||
--- | ||
|
||
*Released under the MIT License* | ||
|
||
Oliver Lindemann ([email protected]) & Florian Krause ([email protected]) | ||
|
||
Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF | ||
--- | ||
|
||
Python implementation: https://github.com/expyriment/dataintegrityfingerprint-python | ||
|
||
## Install | ||
|
||
Install | ||
------- | ||
|
||
``` | ||
python -m pip install --index-url https://test.pypi.org/simple/ dataintegrityfingerprint | ||
python -m pip install dataintegrityfingerprint | ||
``` | ||
|
||
|
||
Run DIF GUI | ||
----------- | ||
## Usage DIF tools | ||
### GUI | ||
|
||
``` | ||
python -m dataintegrityfingerprint -G | ||
|
@@ -32,8 +40,7 @@ dataintegrityfingerprint -G | |
``` | ||
|
||
|
||
DIF Command line interface | ||
-------------------------- | ||
### Command line interface | ||
|
||
``` | ||
python -m dataintegrityfingerprint | ||
|
@@ -45,8 +52,7 @@ or if installed via pip: | |
dataintegrityfingerprint | ||
``` | ||
|
||
DIF Python library | ||
------------------- | ||
## DIF Python library | ||
|
||
``` | ||
from dataintegrityfingerprint import DataIntegrityFingerprint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,13 @@ | |
from setuptools import setup | ||
import codecs | ||
import os | ||
from sys import version_info as _vi | ||
|
||
package_name = "dataintegrityfingerprint" | ||
application_name = package_name | ||
from dataintegrityfingerprint import PACKAGE_NAME | ||
|
||
application_name = PACKAGE_NAME | ||
install_requires = [] | ||
|
||
entry_points = {'console_scripts': | ||
['{}={}.__main__:run'.format(application_name, package_name)]} | ||
|
||
if _vi.major< 1: | ||
raise RuntimeError("{0} requires Python 3 or larger.".format(package_name)) | ||
['{}={}.__main__:run'.format(application_name, PACKAGE_NAME)]} | ||
repository = "https://github.com/expyriment/dataintegrityfingerprint-python" | ||
|
||
def readme(): | ||
directory = os.path.dirname(os.path.join( | ||
|
@@ -30,6 +25,7 @@ def readme(): | |
) as file: | ||
return file.read() | ||
|
||
|
||
def get_version(package): | ||
"""Get version number""" | ||
|
||
|
@@ -42,15 +38,15 @@ def get_version(package): | |
|
||
if __name__ == '__main__': | ||
setup( | ||
name = package_name, | ||
version=get_version(package_name), | ||
name = PACKAGE_NAME, | ||
version=get_version(PACKAGE_NAME), | ||
description='Create a Data Integrity Fingerprint', | ||
author='Florian Krause, Oliver Lindemann', | ||
author='Oliver Lindemann, Florian Krause', | ||
author_email='[email protected], [email protected]', | ||
license='MIT Licence', | ||
url='http://expyriment.github.io/DIF', | ||
packages=[package_name], | ||
include_package_data=True, | ||
url=repository, | ||
packages=[PACKAGE_NAME], | ||
include_package_data=False, | ||
setup_requires=[], | ||
install_requires=install_requires, | ||
entry_points=entry_points, | ||
|