mayutils 1.2.22__tar.gz → 1.2.24__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mayutils-1.2.22 → mayutils-1.2.24}/PKG-INFO +1 -1
- {mayutils-1.2.22 → mayutils-1.2.24}/pyproject.toml +1 -1
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/memoisation.py +2 -0
- mayutils-1.2.24/src/mayutils/objects/hashing.py +30 -0
- mayutils-1.2.22/src/mayutils/objects/hashing.py +0 -17
- {mayutils-1.2.22 → mayutils-1.2.24}/LICENSE +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/README.md +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/data/read.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/export/slides.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/datetime.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/plotly/charts.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from hashlib import md5
|
|
3
|
+
from mayutils.objects.datetime import DateTime
|
|
4
|
+
from pendulum import DateTime as PendulumDateTime
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def serialise(
|
|
9
|
+
obj,
|
|
10
|
+
) -> str:
|
|
11
|
+
if isinstance(obj, (DateTime, PendulumDateTime, datetime)):
|
|
12
|
+
return obj.isoformat()
|
|
13
|
+
|
|
14
|
+
raise TypeError(f"Type {type(obj)} not serialisable")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def hash_inputs(
|
|
18
|
+
*args,
|
|
19
|
+
**kwargs,
|
|
20
|
+
) -> str:
|
|
21
|
+
return md5(
|
|
22
|
+
string=json.dumps(
|
|
23
|
+
obj={
|
|
24
|
+
"args": args,
|
|
25
|
+
"kwargs": kwargs,
|
|
26
|
+
},
|
|
27
|
+
sort_keys=True,
|
|
28
|
+
default=serialise,
|
|
29
|
+
).encode()
|
|
30
|
+
).hexdigest()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/matplotlib/__init__.py
RENAMED
|
File without changes
|
{mayutils-1.2.22 → mayutils-1.2.24}/src/mayutils/visualisation/graphs/matplotlib/template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|