A library that provides text concatenation from given files
Project description
MergerPy
Linux |
Windows |
---|---|
Introduction
This library provides a fast text concatenation from files. It works with Python versions from 2.7+ and Python 3. The main aim to create this library is to create new passwords from given files which contain tokens. Then you can use btcrecover to get your password back.
Sample:
tokens.txt
A 1 e 2 a 3 |
B s h i r |
E i 34 26 s |
New created passwords.txt
ABE |
ABi |
AB34 |
AB26 |
ABs |
… |
Getting the code
The code is hosted at https://github.com/abdullahselek/MergerPy
Check out the latest development version anonymously with:
$ git clone git://github.com/abdullahselek/MergerPy.git $ cd MergerPy
To install test dependencies, run:
$ pip install -Ur requirements.testing.txt
Running Tests
The test suite can be run against a single Python version which requires pip install pytest and optionally pip install pytest-cov (these are included if you have installed dependencies from requirements.testing.txt)
To run the unit tests with a single Python version:
$ py.test -v
to also run code coverage:
$ py.test --cov=mergerpy
To run the unit tests against a set of Python versions:
$ tox
Sample Usage
With using only one function:
from mergerpy import merger merger.process('tests/resources/sample.txt')
Command Line Usage
With --input parameter:
python mergerpy.py --input tests/resources/sample.txt
Licence
MergerPy is released under the MIT license. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for mergerpy-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f672f58beb24aaf67ab25087bf55f1e8ee6f0a5588d1f9b0c4241926276cf66 |
|
MD5 | 1743b843a16192756a186bda6f1a10e2 |
|
BLAKE2b-256 | 9b80a1cb7eefa48c38be7c4eaa8ba35efbffc69119b2a70bb29616d446001a47 |