No project description provided
Project description
# Collect_framework ### Short explanation Program takes string or file(high priority if string too transferred) and return amount and characters which ar unique
call it from command line with this commands
python collect_framework.py –string <your string –file <your file>>
The package has 4 functions - amount_of_unique_char
takes string and return tuple amount of unique char in input string and list with them - format_return
format the result of previous func - cli
add two arguments –file and –string and return parser with them - work_with_args
parse arguments from command line and detect a priority if hand over two arguments ### Installation To use in your project just use your dependency manager to install it, with pip is like this:
pip install collect-pkg ### How it works :new_moon_with_face: Here a some examples
` from collect_pack import amount_of_unique_char print(amount_of_unique_char('qwerrr')) # result (3,['q','w','e']) `
` from collect_pack import format_return, amount_of_unique_char print(format_return('qwerrr')) # before format format the result it call amount_of_unique_char in his body """ result "qwerrr" => 3 q,w,e are present once. """ `
` from collect_pack import work_with_args print(work_with_args(file="",string="qwerr")) # result 'qwerr' print(work_with_args(file="text.txt",string="qwerr")) # result 'text from file like one string ' argument file has a higher priority `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for collect_pack-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e77fa77e589d4598c5a2058c0e37ba17c7e4891f37c85ee8bbe5b8a074cd09 |
|
MD5 | 0c9782161a15ff712c396088d421b70b |
|
BLAKE2b-256 | f6e9bb68973a8788173fe54b858b07be9bb5cdeb4c3eff71958cbf6f5871d77d |