semvec/pypi-packages huggingface dataset:
sorting-with-linus 0.1
Just a few sorting algorithms, which you may find useful (or not).
License: MIT
Requires Python: >=3.7

# Sorting with Linus

This package contains a few sorting methods which you might
find useful. Check below for proper usage but here is a short
list of all of them:

1. bubble sort
2. insertion sort
3. quick sort
4. selection sort

Have fun with these methods.

## bubble sort

```python
alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(bubbleSort(alist))
```

An inefficient but easy to implement sorting algorithm.

## selection sort

```python
alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(selectionSort(alist))
```

An inefficient but easy to implement sorting algorithm.

## insertion sort

```python
alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(insertionSort(alist))
```

An inefficient but easy to implement sorting algorithm.

## quick sort

```python
alist = [54,26,93,17,77,31,44,55,20]
quick_sort(alist)
print(alist)
```

An efficient but hard to implement sorting algorithm. Use this one!
spongebot 0.1.0
Monitor a directory for new files
License: MIT

# SpongeBot
*Monitor a directory for new files*

 When instantiating a new SpongeBot, you need to provide it with a path to a directory and a callback function. The callback function is called each time a new file is added to the directory, passsing the name of the new file as the first parameter.
 SpongeBot will run as a thread, making it possible to run multiple SpongeBots simultaneously.

 A typical usecase for SpongeBot would look like this:

	from spongebot import SpongeBot

	def my_callback_function(file_name):
		print('A new file was added to the directory!')

	 sb = SpongeBot('./my_directory', my_callback_function)
	 sb.start()

The following parameters can be passed to SpongeBot:

- **path**: The path to the directory that needs to be monitored
- **callback**: A callable that takes a filepath as the first parameter
- **interval**: The interval length in seconds that determines how frequently SpongeBot checks for new files. Defaults to 2 seconds.
- **static_args**: A list that will be unpacked and passed to the callback function
- **static_kwargs**: A dictionary that will be unpacked and passed to the callback function
- **snapshot_file**: A file that can be used by SpongeBot to keep track of the files tht are already in the directory. This is used to make SpongeBot more robust in the case of  system crashes. Defaults to "./.spongeBot_snapshot.txt".

Another example that uses more features of SpongeBot:

	from spongebot import SpongeBot
	import pandas as pd


	def my_callback_function(file_name, data_pool, verbose=False):
		if verbose:
			print('Processing file ' + file_name)
		df = pd.from_csv(file_name)
		with open(data_pool, 'a') as f:
			df.to_csv(f, index=False, header=False)

	data_pool = pd.from_csv('')

	sb = SpongeBot(
		'./file_pool/',
		my_callback_function,
		interval=30.0,
		static_args=['./big_data_pool.csv'],
		static_kwargs={'verbose': True},
		snapshot_file='./snapshot_spongeBot.txt')
	sb.start()
	print('SpongeBot is now running!')
qwant 0.1.4.2
Make qwant search easy
License: MIT
Keywords: Qwant,search,engine

```
#My qwant toolbox

Qwant is search context-independet and non-spying engine
* Better for e-commerce search than Google
* Free. Using on industrial scale
requires proxy that is way cheeper than google
* Available for multithreading
* Context-independet, that means a consistent output for you queries

import qwant

qwant.search("Barbie doll") 

#get only items of search. 10 by default
qwant.items("Barbie doll")

#but you can get more. It's done with multiple requests
qwant.items("Barbie doll",count=100)

#you can set web site of search
qwant.items("site:allegro.pl/oferta/ Barbie doll")

#add your proxy
session={<define your session here>}
qwant.items("site:allegro.pl/oferta/ Barbie doll",session=session)

#you can use luminati so EVERY request would be done from different IP
import luminati
session = luminati.session("<login>", "<password>")
qwant.items("site:allegro.pl/oferta/ Illuminati doll",session=session)
```