mayutils 1.2.5__tar.gz → 1.2.7__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.5 → mayutils-1.2.7}/PKG-INFO +1 -1
- {mayutils-1.2.5 → mayutils-1.2.7}/pyproject.toml +1 -1
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/datetime.py +51 -1
- {mayutils-1.2.5 → mayutils-1.2.7}/LICENSE +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/README.md +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/data/read.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/memoisation.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/export/slides.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/hashing.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/plotly/charts.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.5 → mayutils-1.2.7}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
from contextlib import _GeneratorContextManager
|
|
3
3
|
from sqlite3 import register_adapter
|
|
4
|
-
from typing import Any, Optional, Self, Literal
|
|
4
|
+
from typing import Any, Iterator, Mapping, Optional, Self, Literal, overload
|
|
5
5
|
import datetime as _datetime
|
|
6
6
|
import numpy as np
|
|
7
7
|
from pendulum import (
|
|
@@ -453,6 +453,16 @@ class Interval(BaseInterval):
|
|
|
453
453
|
absolute=absolute,
|
|
454
454
|
)
|
|
455
455
|
|
|
456
|
+
def __deepcopy__(
|
|
457
|
+
self,
|
|
458
|
+
_memo: Mapping,
|
|
459
|
+
) -> Self:
|
|
460
|
+
return self.__class__(
|
|
461
|
+
start=self._start,
|
|
462
|
+
end=self._end,
|
|
463
|
+
absolute=self._absolute,
|
|
464
|
+
)
|
|
465
|
+
|
|
456
466
|
@property
|
|
457
467
|
def start(
|
|
458
468
|
self,
|
|
@@ -515,6 +525,46 @@ class Intervals(object):
|
|
|
515
525
|
|
|
516
526
|
return self
|
|
517
527
|
|
|
528
|
+
def __repr__(
|
|
529
|
+
self,
|
|
530
|
+
) -> str:
|
|
531
|
+
return f"Intervals(\n\t{'\n\t'.join([repr(interval) for interval in self.intervals])}\n)"
|
|
532
|
+
|
|
533
|
+
def __iter__(
|
|
534
|
+
self,
|
|
535
|
+
) -> Iterator[Interval]:
|
|
536
|
+
return iter(self.intervals)
|
|
537
|
+
|
|
538
|
+
def __len__(
|
|
539
|
+
self,
|
|
540
|
+
) -> int:
|
|
541
|
+
return len(self.intervals)
|
|
542
|
+
|
|
543
|
+
@overload
|
|
544
|
+
def __getitem__(
|
|
545
|
+
self,
|
|
546
|
+
key: int,
|
|
547
|
+
) -> Interval: ...
|
|
548
|
+
|
|
549
|
+
@overload
|
|
550
|
+
def __getitem__(
|
|
551
|
+
self,
|
|
552
|
+
key: slice,
|
|
553
|
+
) -> Intervals: ...
|
|
554
|
+
|
|
555
|
+
def __getitem__(
|
|
556
|
+
self,
|
|
557
|
+
key: int | slice,
|
|
558
|
+
) -> Intervals | Interval:
|
|
559
|
+
if isinstance(key, slice):
|
|
560
|
+
return Intervals(*self.intervals[key])
|
|
561
|
+
|
|
562
|
+
elif isinstance(key, int):
|
|
563
|
+
return self.intervals[key]
|
|
564
|
+
|
|
565
|
+
else:
|
|
566
|
+
raise TypeError("Invalid key type")
|
|
567
|
+
|
|
518
568
|
|
|
519
569
|
class Traveller(BaseTraveller):
|
|
520
570
|
def __init__(
|
|
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
|
|
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
|