Skip to main content

This package will resolve all small intigrities of python data structures(List,Tuple,Dictionary,Set) which are not provided by-default.

Project description

PySuit

Read the Docs codecov PyPI version

A unified collection of python functions eg dictsort,nested_iterator etc

Purpose of the Package

  • The purpose of the package is to provide a collection of fuction and module indices in one unified libary

Documentation

Features

  • Collection of PySuit
    • DictCollection
    • NestedCollections
    • ExcludeRandom
    • DataTypeCollection
  • Collection of DictCollection
    • dictsort
    • etc
  • Collection of NestedCollections
    • nested_iterator
    • etc
  • Collection of ExcludeRandom
    • exclude_random
    • etc
  • Collection of DataTypeCollection
    • fake_random_datatype
    • etc

Getting Started

The package can be found on pypi hence you can install it using pip

Installation

pip install pysuit

Usage

Using the short forms or abbreviated forms of indices

DictCollection

from pysuit import DictCollections

dict_collection = DictCollections()

dict_collection.dict_sort(dictionary , flag)

Examples of DictCollections

from pysuit import DictCollections
dict_collection = DictCollections()
dict_collection.dict_sort({"b": 3, "a": 34, 67: "c", 1: 64} , keys)
Sorted Dictionary is => {1: 64, 'a': 34, 'b': 3, 67: 'c'}

NestedCollections

from pysuit import NestedCollections

nested_collection = NestedCollections()

nested_collection.nested_iterator(nested_list)

Examples of NestedCollections

from pysuit import NestedCollections
nested_collection = NestedCollections()
nested_collection.nested_iterator([[0, 4], [2, 3, 4], [0, 1, 2], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]])
Converted list is => [0, 4, 2, 3, 4, 0, 1, 2, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4]

ExcludeRandom

from pysuit import ExcludeRandom

exclude_random = ExcludeRandom()

exclude_random.exclude_random(start, stop, [exclude numbers])

Examples of ExcludeRandom

from pysuit import ExcludeRandom
exclude_random = ExcludeRandom()
exclude_random.exclude_random(1, 10, [4, 5, 9])
Random number is => 8

DataTypeCollection

from pysuit import DataTypeCollection

data_collection = DataTypeCollection()

data_collection.fake_random_datatype(datatype, length of datatype)

Examples of DataTypeCollection

from pysuit import DataTypeCollection
data_collection = DataTypeCollection()
data_collection.fake_random_datatype(list, 10)
Fake random data is => [93, 91, 9163, -1967.88203, 3, 'thousand', -197247.03, 913, 983, 'thousand']

Contribution

Contributions are welcome Notice a bug let us know. Thanks

Author

  • Main Maintainer: Avinash Tiwari
  • Team Thoughtwin

License

  • MIT

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

pysuit-1.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysuit-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pysuit-1.0.1.tar.gz.

File metadata

  • Download URL: pysuit-1.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Linux/5.15.0-48-generic

File hashes

Hashes for pysuit-1.0.1.tar.gz
Algorithm Hash digest
SHA256 028718bd98f3dfaef8d3b17e52a84a96fef72ea1ab258994d366aa7f73a6b5ce
MD5 c884ede028940cf922fa4d0179ec69c0
BLAKE2b-256 d930551f6ac7e9a938755949d231b3938726b30720f162983bae270a80f85347

See more details on using hashes here.

File details

Details for the file pysuit-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysuit-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Linux/5.15.0-48-generic

File hashes

Hashes for pysuit-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5605006f77d592d5f6a0be2ca16fec1c54bad8bce6ab335d493d00a41380365
MD5 63a7c7bae991a5fd406d35d8d6f69e10
BLAKE2b-256 3889c38bd5acd926f41cb171363da8e7e092dc453fb3149032431e001fb7187e

See more details on using hashes here.

Supported by

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