Table of Contents
This small tool was created as a result of this discussion on bitcointalk.org.
Python3 on GNU/Linux
To get a local copy up and running follow these simple steps.
Note: Python2 is not supported.
- Python3 libs
sys, pprint, argparse
-
Ensure you are running Python3
python3 -V
-
Clone this repository
git clone https://github.com/citb0in/range_slicer.git
-
Either make the python program executable
chmod +x ./range_slicer.py
and run it by
./range_slicer.py
or just execute it by
python3 range_slicer.py
Current version allows two ways of execution. The range is mandatory and must always be entered as a parameter so that the program has something to do. By default, the program will use the "n slices" mode, where n is the number of slices desired. If no input is made for 'n', the default value 2 is used.
However, there are also cases where the user wants a certain size of the slices to be generated and doesn't care about the total number of slices to be generated. I integrated this "chunks" mode that can be used with the command line switch -c (for chunks).
Examples:
Range 20 - 90 will be sliced into 15 equal parts
./range_slicer.py -r 20 90 -n 15
Range 20 - 90 will be sliced into 15 equal parts with non-overlapping range edges
./range_slicer.py -r 20 90 -n 15 -nov
Range 20 - 95 will be sliced into chunks with size of 10
./range_slicer.py -r 20 95 -c -n 10
Display version
./range_slicer.py -V
- Add Changelog
- Add back to top links
- Implement input validation
- Add "non-overlapping range edges" function to n-slices mode
- Add hex support
- Multi-language Support
- Spanish
- French
- Chinese
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPLv3 License. See LICENSE.txt
for more information.
Project Link: https://github.com/citb0in/range_slicer
Helpful ressources and credits to: