semvec/pypi-packages huggingface dataset:
wte 0.1.1
Convert content from the web to ebooks
Requires Python: >=3

# Web to ebook

WTE (web-to-ebook) helps you to convert content from some websites into an ebook (epub format) that you can read offline or on an ebook reader. It currently supports downloading any story from wattpad.

## Install

```bash
python3 -m pip install --upgrade wte
```

### Manually

You can also install `wte` manually, but is it not recomended. Clone the repository and intall or upgrade the dependencies. Start the programme using the `__main__.py` file :

```bash
git clone https://github.com/webalorn/web-to-ebook
python3 -m pip install --upgrade requests lxml pyquery ebooklib

cd web-to-ebook
python3 . # Starts __main__.py. Use this instead of 'wte'
```

## Usage

```bash
wte [url_of_the_page] # Simple usage
wte [url_of_the_page] --quiet -o [output.epub] # More options
wte -h # Show the help and all the options
```

### Currently supported

- [Wattpad](https://www.wattpad.com/) : Converts a whole book
wasteland-sort 1.1.0
Fully tested and documented version of the Wasteland sorting algorithm
Requires Python: >=3.8.2

# Wasteland-sort


Wasteland sort is an O(m + n) running time sorting algorithm developed with the intention of creating a general purpose O(n) sorting algorithm.

To run the algorithm, call wasteland_sort() and pass in your array to be sorted. The sort is pseudo in-place but unstable. Any element in the array will be replaced. Currently, Wasteland sort only sorts integers, so integer representations of objects can also be sorted, though it won't be very helpful if their hashes aren't unique.

If you have questions about the algorithm, feel free to open an issue and I'll get in contact.

----------------------------------------------------------------------------------------------

To import the module, you can use the statement `import wasteland`. To directly access the file where wasteland_sort lives, use `from wasteland import wasteland_sort`.


## Example usage

```
from wasteland import wasteland_sort as ws
from typing import List, Tuple

x : List[int] = [645,111234,78,4,72,9,3344,1]
y : List[int] = [645,111234,78,4,72,9,3344,1]

#Calling the wasteland find_extremes() method
least, most = ws.find_extremes(x)

#Calling the wasteland sorting algorithm
ws.sort(x, True)
ws.sort(y, False)

# y = [1, 4, 9, 72, 78, 645, 3344, 111234]
# x = [111234, 3344, 645, 78, 72, 9, 4, 1]
# least = 1
# most = 111234
```