Skip to content

Commit

Permalink
Merge dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Oct 18, 2024
2 parents 9c87cd0 + 83f375d commit 9284432
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Powerful Python util methods and classes that simplify common apis and tasks.

![Current Release](https://img.shields.io/badge/release-v1.63.0-blue)
![Current Release](https://img.shields.io/badge/release-v1.63.1-blue)
[![codecov](https://codecov.io/gh/owasp-sbot/OSBot-Utils/graph/badge.svg?token=GNVW0COX1N)](https://codecov.io/gh/owasp-sbot/OSBot-Utils)


Expand Down
10 changes: 5 additions & 5 deletions osbot_utils/helpers/Random_Guid.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# todo add to osbot utils
from osbot_utils.utils.Misc import random_guid
from osbot_utils.utils.Misc import random_guid, is_guid


class Random_Guid(str):
def __new__(cls, value=None):
if value is None:
value = random_guid()
return str.__new__(cls, value)

def __init__(self, value=None):
self.value = value if value is not None else random_guid()
if is_guid(value):
return str.__new__(cls, value)
raise ValueError(f'in Random_Guid: value provided was not a Guid: {value}')

def __str__(self):
return self
2 changes: 1 addition & 1 deletion osbot_utils/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.63.0
v1.63.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "osbot_utils"
version = "v1.63.0"
version = "v1.63.1"
description = "OWASP Security Bot - Utils"
authors = ["Dinis Cruz <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 9284432

Please sign in to comment.