semvec/pypi-packages huggingface dataset:
Occurrences-DontDoDrugs 0.0.3
Operation with occurrences and more
Requires Python: >=3.6

This is a package for operating with occurrences and counting.

Some examples:
ex1:
 
import occurrences

string = "hi from python3!"
search = Occurrences(string,["hi","python3"])

print(search.element_count())


output:

{'hi':1,'python3':1}
  

ex2:
 
import occurrences

string = "python is good!"
check = Occurrences(string,"good")

print(check.element_check())

output:
True