Skip to content

Releases: sayyid5416/generalpy

v1.11.2

Choose a tag to compare

@sayyid5416 sayyid5416 released this 23 Feb 07:07
e82e68a

Breaking change

  • Removed threaded argument from .emit(...) method of Signal class (It was inconvenient)

v1.11.1

Choose a tag to compare

@sayyid5416 sayyid5416 released this 22 Feb 16:57
3038b60

Improvements in DatabaseCollection(...).get_data_of_dataType(...)

  • If default != None, and type(data-of-dataType) != type(default), TypeError will be raised (Use ignoreError to suppress this behavior)
  • Proper type hints

v1.11.0

Choose a tag to compare

@sayyid5416 sayyid5416 released this 21 Feb 10:25
23ea79e

💠 [New] Signal class

  • A signal object that can be used to connect callback.
  • Simply connect a callback using .connect(...) method.
  • Emit the signal using .emit(...) method.

v1.10.2

Choose a tag to compare

@sayyid5416 sayyid5416 released this 20 Feb 11:14
559f631

Bug fix in replace_html_tags

v1.10.1

Choose a tag to compare

@sayyid5416 sayyid5416 released this 20 Feb 08:14
11e1010

Improved

  • remove_extra_spaces now removed invisible characters and html whitespace i.e  

v1.10.0

Choose a tag to compare

@sayyid5416 sayyid5416 released this 20 Feb 07:32
d53fdd4

New

  • Added ignore parameter to replace_html_tags
  • [New function] remove_extra_spaces: Removed extra spaces between words.

v1.9.1

Choose a tag to compare

@sayyid5416 sayyid5416 released this 20 Feb 06:36
4565ece

Improved

  • Added ignore parameter for retry_support decorator.

v1.9.0

Choose a tag to compare

@sayyid5416 sayyid5416 released this 20 Feb 05:20
9afd51f

New decorators:

  • retry_support: Retry the decorated function gracefully.

New general functions:

  • first_capital: Make first letter capital without changing any other thing.
  • get_first_non_alphabet: Returns the first non-alphabet character from string.
  • punctuate: Adds punctuation after string, if not present.
  • replace_html_tags: Replace html tags from a string.
  • similarized: Takes a list of strings and returns a list of sublists of similar-strings.
  • sliced_list: Slice a list into a list of sublists, where each sublist contains specific no. of items.

v1.8.0

Choose a tag to compare

@sayyid5416 sayyid5416 released this 31 Jan 11:25
8ba8153

💠 [NEW] DatabaseCollection class

  • Handles the data of a collection collectionName in some database.
  • This database will be in memory, but you can extend this functionality by using this class as a base class.
  • And you can create a class which handles db locally or on cloud like MongoDB.
  • Database structure should be: DataBase > collection > collection-data.
  • Structure of collection-data: dict[str, dict[str, Any]] i.e dataID: {dataType: dataValue, ...}, ...

💠 Added method in general module

  • [NEW] replace_multiple_chars: Replace multiple characters from a string.

  • Settings class moved to database module, where DatabaseCollection class is present. (settings module would be deprecated in future releases).
  • Docstring improvements in various classes and methods.
  • test.py improved a little.

v1.7.1

Choose a tag to compare

@sayyid5416 sayyid5416 released this 29 Jan 16:21
14157f5
  • Now logger: Logger can be set for ICACLS class during __init__ (class construction)