Skip to main content

No project description provided

Project description

# Collect_framework ### Installation To use in your project just use your dependency manager to install it, with pip is like this:

pip install collect-pkg ### 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 command

python -m collect_pack –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

### 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

collect_pack-1.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

collect_pack-1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file collect_pack-1.3.tar.gz.

File metadata

  • Download URL: collect_pack-1.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for collect_pack-1.3.tar.gz
Algorithm Hash digest
SHA256 4bd59011afdebb19179a58e4dad6444079b5382d5065067fbc6a6edf21899f6a
MD5 59a3291bb677eb1ee385e1330c22ff2c
BLAKE2b-256 b19b9d61b4ddd25fbe8e9ff3d7db9cfb9d0830aa43deae4b30f4f44d0d90c937

See more details on using hashes here.

File details

Details for the file collect_pack-1.3-py3-none-any.whl.

File metadata

  • Download URL: collect_pack-1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for collect_pack-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ecce04460de42535b143a7076f5dcd24350eda15781bb3dc8c4f91f47e31e2b3
MD5 d7bdf1f9f55e471ee1d84f4a1f954caf
BLAKE2b-256 31507a3d8e3346728f83515f041c3e54a60d439f0540fa7ccce100b08959a5a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page