exonware-xwsystem 0.0.1.410__py3-none-any.whl → 0.1.0.1__py3-none-any.whl
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.
- exonware/__init__.py +1 -1
- exonware/conf.py +1 -1
- exonware/xwsystem/__init__.py +2 -2
- exonware/xwsystem/caching/__init__.py +1 -1
- exonware/xwsystem/caching/base.py +2 -2
- exonware/xwsystem/caching/bloom_cache.py +2 -2
- exonware/xwsystem/caching/cache_manager.py +1 -1
- exonware/xwsystem/caching/conditional.py +2 -2
- exonware/xwsystem/caching/contracts.py +1 -1
- exonware/xwsystem/caching/decorators.py +2 -2
- exonware/xwsystem/caching/defs.py +1 -1
- exonware/xwsystem/caching/disk_cache.py +1 -1
- exonware/xwsystem/caching/distributed.py +1 -1
- exonware/xwsystem/caching/errors.py +1 -1
- exonware/xwsystem/caching/events.py +2 -2
- exonware/xwsystem/caching/eviction_strategies.py +1 -1
- exonware/xwsystem/caching/fluent.py +1 -1
- exonware/xwsystem/caching/integrity.py +1 -1
- exonware/xwsystem/caching/lfu_cache.py +2 -2
- exonware/xwsystem/caching/lfu_optimized.py +3 -3
- exonware/xwsystem/caching/lru_cache.py +2 -2
- exonware/xwsystem/caching/memory_bounded.py +2 -2
- exonware/xwsystem/caching/metrics_exporter.py +2 -2
- exonware/xwsystem/caching/observable_cache.py +1 -1
- exonware/xwsystem/caching/pluggable_cache.py +2 -2
- exonware/xwsystem/caching/rate_limiter.py +1 -1
- exonware/xwsystem/caching/read_through.py +2 -2
- exonware/xwsystem/caching/secure_cache.py +1 -1
- exonware/xwsystem/caching/serializable.py +2 -2
- exonware/xwsystem/caching/stats.py +1 -1
- exonware/xwsystem/caching/tagging.py +2 -2
- exonware/xwsystem/caching/ttl_cache.py +1 -1
- exonware/xwsystem/caching/two_tier_cache.py +1 -1
- exonware/xwsystem/caching/utils.py +1 -1
- exonware/xwsystem/caching/validation.py +1 -1
- exonware/xwsystem/caching/warming.py +2 -2
- exonware/xwsystem/caching/write_behind.py +2 -2
- exonware/xwsystem/cli/__init__.py +1 -1
- exonware/xwsystem/cli/args.py +1 -1
- exonware/xwsystem/cli/base.py +1 -1
- exonware/xwsystem/cli/colors.py +1 -1
- exonware/xwsystem/cli/console.py +1 -1
- exonware/xwsystem/cli/contracts.py +1 -1
- exonware/xwsystem/cli/defs.py +1 -1
- exonware/xwsystem/cli/errors.py +1 -1
- exonware/xwsystem/cli/progress.py +1 -1
- exonware/xwsystem/cli/prompts.py +1 -1
- exonware/xwsystem/cli/tables.py +1 -1
- exonware/xwsystem/config/__init__.py +1 -1
- exonware/xwsystem/config/base.py +2 -2
- exonware/xwsystem/config/contracts.py +1 -1
- exonware/xwsystem/config/defaults.py +1 -1
- exonware/xwsystem/config/defs.py +1 -1
- exonware/xwsystem/config/errors.py +2 -2
- exonware/xwsystem/config/logging.py +1 -1
- exonware/xwsystem/config/logging_setup.py +2 -2
- exonware/xwsystem/config/performance.py +115 -388
- exonware/xwsystem/http_client/__init__.py +1 -1
- exonware/xwsystem/http_client/advanced_client.py +2 -2
- exonware/xwsystem/http_client/base.py +2 -2
- exonware/xwsystem/http_client/client.py +2 -2
- exonware/xwsystem/http_client/contracts.py +1 -1
- exonware/xwsystem/http_client/defs.py +1 -1
- exonware/xwsystem/http_client/errors.py +2 -2
- exonware/xwsystem/io/__init__.py +1 -1
- exonware/xwsystem/io/archive/__init__.py +1 -1
- exonware/xwsystem/io/archive/archive.py +1 -1
- exonware/xwsystem/io/archive/archive_files.py +1 -1
- exonware/xwsystem/io/archive/archivers.py +2 -2
- exonware/xwsystem/io/archive/base.py +6 -6
- exonware/xwsystem/io/archive/codec_integration.py +1 -1
- exonware/xwsystem/io/archive/compression.py +1 -1
- exonware/xwsystem/io/archive/formats/__init__.py +1 -1
- exonware/xwsystem/io/archive/formats/brotli_format.py +6 -3
- exonware/xwsystem/io/archive/formats/lz4_format.py +6 -3
- exonware/xwsystem/io/archive/formats/rar.py +6 -3
- exonware/xwsystem/io/archive/formats/sevenzip.py +6 -3
- exonware/xwsystem/io/archive/formats/squashfs_format.py +1 -1
- exonware/xwsystem/io/archive/formats/tar.py +1 -1
- exonware/xwsystem/io/archive/formats/wim_format.py +6 -3
- exonware/xwsystem/io/archive/formats/zip.py +1 -1
- exonware/xwsystem/io/archive/formats/zpaq_format.py +1 -1
- exonware/xwsystem/io/archive/formats/zstandard.py +6 -3
- exonware/xwsystem/io/base.py +1 -1
- exonware/xwsystem/io/codec/__init__.py +1 -1
- exonware/xwsystem/io/codec/base.py +6 -6
- exonware/xwsystem/io/codec/contracts.py +1 -1
- exonware/xwsystem/io/codec/registry.py +5 -5
- exonware/xwsystem/io/common/__init__.py +1 -1
- exonware/xwsystem/io/common/base.py +1 -1
- exonware/xwsystem/io/common/lock.py +1 -1
- exonware/xwsystem/io/common/watcher.py +1 -1
- exonware/xwsystem/io/contracts.py +1 -1
- exonware/xwsystem/io/data_operations.py +746 -0
- exonware/xwsystem/io/defs.py +1 -1
- exonware/xwsystem/io/errors.py +1 -1
- exonware/xwsystem/io/facade.py +2 -2
- exonware/xwsystem/io/file/__init__.py +1 -1
- exonware/xwsystem/io/file/base.py +1 -1
- exonware/xwsystem/io/file/conversion.py +1 -1
- exonware/xwsystem/io/file/file.py +8 -6
- exonware/xwsystem/io/file/paged_source.py +8 -1
- exonware/xwsystem/io/file/paging/__init__.py +1 -1
- exonware/xwsystem/io/file/paging/byte_paging.py +1 -1
- exonware/xwsystem/io/file/paging/line_paging.py +1 -1
- exonware/xwsystem/io/file/paging/record_paging.py +1 -1
- exonware/xwsystem/io/file/paging/registry.py +4 -4
- exonware/xwsystem/io/file/source.py +20 -9
- exonware/xwsystem/io/filesystem/__init__.py +1 -1
- exonware/xwsystem/io/filesystem/base.py +1 -1
- exonware/xwsystem/io/filesystem/local.py +9 -1
- exonware/xwsystem/io/folder/__init__.py +1 -1
- exonware/xwsystem/io/folder/base.py +1 -1
- exonware/xwsystem/io/folder/folder.py +2 -2
- exonware/xwsystem/io/serialization/__init__.py +1 -1
- exonware/xwsystem/io/serialization/auto_serializer.py +52 -39
- exonware/xwsystem/io/serialization/base.py +165 -1
- exonware/xwsystem/io/serialization/contracts.py +88 -1
- exonware/xwsystem/io/serialization/defs.py +1 -1
- exonware/xwsystem/io/serialization/errors.py +1 -1
- exonware/xwsystem/io/serialization/flyweight.py +10 -10
- exonware/xwsystem/io/serialization/format_detector.py +8 -5
- exonware/xwsystem/io/serialization/formats/__init__.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/bson.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/cbor.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/marshal.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/msgpack.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/pickle.py +1 -1
- exonware/xwsystem/io/serialization/formats/binary/plistlib.py +1 -1
- exonware/xwsystem/io/serialization/formats/database/dbm.py +53 -1
- exonware/xwsystem/io/serialization/formats/database/shelve.py +48 -1
- exonware/xwsystem/io/serialization/formats/database/sqlite3.py +85 -1
- exonware/xwsystem/io/serialization/formats/text/append_only_log.py +201 -0
- exonware/xwsystem/io/serialization/formats/text/configparser.py +1 -1
- exonware/xwsystem/io/serialization/formats/text/csv.py +1 -1
- exonware/xwsystem/io/serialization/formats/text/formdata.py +1 -1
- exonware/xwsystem/io/serialization/formats/text/json.py +43 -20
- exonware/xwsystem/io/serialization/formats/text/json5.py +7 -5
- exonware/xwsystem/io/serialization/formats/text/jsonlines.py +316 -22
- exonware/xwsystem/io/serialization/formats/text/multipart.py +1 -1
- exonware/xwsystem/io/serialization/formats/text/toml.py +19 -3
- exonware/xwsystem/io/serialization/formats/text/xml.py +8 -1
- exonware/xwsystem/io/serialization/formats/text/yaml.py +52 -2
- exonware/xwsystem/io/serialization/parsers/__init__.py +15 -0
- exonware/xwsystem/io/serialization/parsers/base.py +59 -0
- exonware/xwsystem/io/serialization/parsers/hybrid_parser.py +61 -0
- exonware/xwsystem/io/serialization/parsers/msgspec_parser.py +45 -0
- exonware/xwsystem/io/serialization/parsers/orjson_direct_parser.py +53 -0
- exonware/xwsystem/io/serialization/parsers/orjson_parser.py +59 -0
- exonware/xwsystem/io/serialization/parsers/pysimdjson_parser.py +51 -0
- exonware/xwsystem/io/serialization/parsers/rapidjson_parser.py +50 -0
- exonware/xwsystem/io/serialization/parsers/registry.py +90 -0
- exonware/xwsystem/io/serialization/parsers/standard.py +43 -0
- exonware/xwsystem/io/serialization/parsers/ujson_parser.py +50 -0
- exonware/xwsystem/io/serialization/registry.py +1 -1
- exonware/xwsystem/io/serialization/serializer.py +175 -3
- exonware/xwsystem/io/serialization/utils/__init__.py +1 -1
- exonware/xwsystem/io/serialization/utils/path_ops.py +1 -1
- exonware/xwsystem/io/stream/__init__.py +1 -1
- exonware/xwsystem/io/stream/async_operations.py +1 -1
- exonware/xwsystem/io/stream/base.py +1 -1
- exonware/xwsystem/io/stream/codec_io.py +1 -1
- exonware/xwsystem/ipc/async_fabric.py +1 -2
- exonware/xwsystem/ipc/base.py +2 -2
- exonware/xwsystem/ipc/contracts.py +2 -2
- exonware/xwsystem/ipc/defs.py +1 -1
- exonware/xwsystem/ipc/errors.py +2 -2
- exonware/xwsystem/ipc/pipes.py +2 -2
- exonware/xwsystem/ipc/shared_memory.py +2 -2
- exonware/xwsystem/monitoring/base.py +2 -2
- exonware/xwsystem/monitoring/contracts.py +1 -1
- exonware/xwsystem/monitoring/defs.py +1 -1
- exonware/xwsystem/monitoring/error_recovery.py +2 -2
- exonware/xwsystem/monitoring/errors.py +2 -2
- exonware/xwsystem/monitoring/memory_monitor.py +1 -1
- exonware/xwsystem/monitoring/performance_manager_generic.py +2 -2
- exonware/xwsystem/monitoring/performance_validator.py +1 -1
- exonware/xwsystem/monitoring/system_monitor.py +2 -2
- exonware/xwsystem/monitoring/tracing.py +2 -2
- exonware/xwsystem/monitoring/tracker.py +1 -1
- exonware/xwsystem/operations/__init__.py +1 -1
- exonware/xwsystem/operations/base.py +1 -1
- exonware/xwsystem/operations/defs.py +1 -1
- exonware/xwsystem/operations/diff.py +1 -1
- exonware/xwsystem/operations/merge.py +1 -1
- exonware/xwsystem/operations/patch.py +1 -1
- exonware/xwsystem/patterns/base.py +2 -2
- exonware/xwsystem/patterns/context_manager.py +2 -2
- exonware/xwsystem/patterns/contracts.py +9 -9
- exonware/xwsystem/patterns/defs.py +1 -1
- exonware/xwsystem/patterns/dynamic_facade.py +8 -8
- exonware/xwsystem/patterns/errors.py +5 -5
- exonware/xwsystem/patterns/handler_factory.py +6 -6
- exonware/xwsystem/patterns/object_pool.py +7 -7
- exonware/xwsystem/patterns/registry.py +3 -3
- exonware/xwsystem/plugins/__init__.py +1 -1
- exonware/xwsystem/plugins/base.py +5 -5
- exonware/xwsystem/plugins/contracts.py +5 -5
- exonware/xwsystem/plugins/defs.py +1 -1
- exonware/xwsystem/plugins/errors.py +4 -4
- exonware/xwsystem/runtime/__init__.py +1 -1
- exonware/xwsystem/runtime/base.py +6 -6
- exonware/xwsystem/runtime/contracts.py +6 -6
- exonware/xwsystem/runtime/defs.py +1 -1
- exonware/xwsystem/runtime/env.py +2 -2
- exonware/xwsystem/runtime/errors.py +1 -1
- exonware/xwsystem/runtime/reflection.py +8 -8
- exonware/xwsystem/security/auth.py +1 -1
- exonware/xwsystem/security/base.py +2 -2
- exonware/xwsystem/security/contracts.py +1 -1
- exonware/xwsystem/security/crypto.py +2 -2
- exonware/xwsystem/security/defs.py +1 -1
- exonware/xwsystem/security/errors.py +2 -2
- exonware/xwsystem/security/hazmat.py +2 -2
- exonware/xwsystem/shared/__init__.py +1 -1
- exonware/xwsystem/shared/base.py +1 -1
- exonware/xwsystem/shared/contracts.py +1 -1
- exonware/xwsystem/shared/defs.py +1 -1
- exonware/xwsystem/shared/errors.py +1 -1
- exonware/xwsystem/structures/__init__.py +1 -1
- exonware/xwsystem/structures/base.py +2 -2
- exonware/xwsystem/structures/contracts.py +1 -1
- exonware/xwsystem/structures/defs.py +1 -1
- exonware/xwsystem/structures/errors.py +2 -2
- exonware/xwsystem/threading/async_primitives.py +2 -2
- exonware/xwsystem/threading/base.py +2 -2
- exonware/xwsystem/threading/contracts.py +1 -1
- exonware/xwsystem/threading/defs.py +1 -1
- exonware/xwsystem/threading/errors.py +2 -2
- exonware/xwsystem/threading/safe_factory.py +6 -6
- exonware/xwsystem/utils/base.py +2 -2
- exonware/xwsystem/utils/contracts.py +1 -1
- exonware/xwsystem/utils/dt/__init__.py +1 -1
- exonware/xwsystem/utils/dt/base.py +2 -2
- exonware/xwsystem/utils/dt/contracts.py +1 -1
- exonware/xwsystem/utils/dt/defs.py +1 -1
- exonware/xwsystem/utils/dt/errors.py +2 -2
- exonware/xwsystem/utils/dt/formatting.py +1 -1
- exonware/xwsystem/utils/dt/humanize.py +2 -2
- exonware/xwsystem/utils/dt/parsing.py +1 -1
- exonware/xwsystem/utils/dt/timezone_utils.py +1 -1
- exonware/xwsystem/utils/errors.py +2 -2
- exonware/xwsystem/utils/utils_contracts.py +1 -1
- exonware/xwsystem/validation/__init__.py +1 -1
- exonware/xwsystem/validation/base.py +15 -15
- exonware/xwsystem/validation/contracts.py +1 -1
- exonware/xwsystem/validation/data_validator.py +10 -0
- exonware/xwsystem/validation/declarative.py +9 -9
- exonware/xwsystem/validation/defs.py +1 -1
- exonware/xwsystem/validation/errors.py +2 -2
- exonware/xwsystem/validation/fluent_validator.py +4 -4
- exonware/xwsystem/version.py +4 -4
- {exonware_xwsystem-0.0.1.410.dist-info → exonware_xwsystem-0.1.0.1.dist-info}/METADATA +3 -3
- exonware_xwsystem-0.1.0.1.dist-info/RECORD +284 -0
- exonware/xwsystem/caching/USAGE_GUIDE.md +0 -779
- exonware/xwsystem/utils/test_runner.py +0 -526
- exonware_xwsystem-0.0.1.410.dist-info/RECORD +0 -273
- {exonware_xwsystem-0.0.1.410.dist-info → exonware_xwsystem-0.1.0.1.dist-info}/WHEEL +0 -0
- {exonware_xwsystem-0.0.1.410.dist-info → exonware_xwsystem-0.1.0.1.dist-info}/licenses/LICENSE +0 -0
exonware/__init__.py
CHANGED
|
@@ -4,7 +4,7 @@ exonware package - Enterprise-grade Python framework ecosystem
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: September 04, 2025
|
|
9
9
|
|
|
10
10
|
This is a namespace package allowing multiple exonware subpackages
|
exonware/conf.py
CHANGED
exonware/xwsystem/__init__.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: October 10, 2025
|
|
8
8
|
|
|
9
9
|
XWSystem - Enterprise-grade Python framework with AI-powered performance optimization.
|
|
@@ -491,7 +491,7 @@ def list_available_formats():
|
|
|
491
491
|
List all available serialization formats.
|
|
492
492
|
|
|
493
493
|
Returns:
|
|
494
|
-
|
|
494
|
+
dict with format categories and their available formats
|
|
495
495
|
|
|
496
496
|
Example:
|
|
497
497
|
>>> formats = list_available_formats()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#exonware/
|
|
1
|
+
#exonware/xwsystem/caching/base.py
|
|
2
2
|
"""
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: September 04, 2025
|
|
8
8
|
|
|
9
9
|
Caching module base classes - abstract classes for caching functionality.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Bloom filter-enhanced cache for faster negative lookups.
|
|
@@ -15,7 +15,7 @@ from typing import Any, Optional, Hashable
|
|
|
15
15
|
from .lru_cache import LRUCache
|
|
16
16
|
from ..config.logging_setup import get_logger
|
|
17
17
|
|
|
18
|
-
logger = get_logger("
|
|
18
|
+
logger = get_logger("xwsystem.caching.bloom_cache")
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class SimpleBloomFilter:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Conditional eviction policies for caching.
|
|
@@ -15,7 +15,7 @@ from typing import Any, Callable, Optional, Hashable
|
|
|
15
15
|
from .lru_cache import LRUCache, CacheNode
|
|
16
16
|
from ..config.logging_setup import get_logger
|
|
17
17
|
|
|
18
|
-
logger = get_logger("
|
|
18
|
+
logger = get_logger("xwsystem.caching.conditional")
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class ConditionalEvictionCache(LRUCache):
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Advanced cache decorators with hooks and customization.
|
|
@@ -18,7 +18,7 @@ from .lru_cache import LRUCache, AsyncLRUCache
|
|
|
18
18
|
from .utils import default_key_builder
|
|
19
19
|
from ..config.logging_setup import get_logger
|
|
20
20
|
|
|
21
|
-
logger = get_logger("
|
|
21
|
+
logger = get_logger("xwsystem.caching.decorators")
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def xwcached(
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Event system for caching module.
|
|
@@ -15,7 +15,7 @@ from typing import Callable, Any, Optional
|
|
|
15
15
|
from enum import Enum
|
|
16
16
|
from ..config.logging_setup import get_logger
|
|
17
17
|
|
|
18
|
-
logger = get_logger("
|
|
18
|
+
logger = get_logger("xwsystem.caching.events")
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class CacheEvent(Enum):
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Company: eXonware.com
|
|
3
3
|
Author: Eng. Muhammad AlShehri
|
|
4
4
|
Email: connect@exonware.com
|
|
5
|
-
Version: 0.0.1
|
|
5
|
+
Version: 0.1.0.1
|
|
6
6
|
Generation Date: September 04, 2025
|
|
7
7
|
|
|
8
8
|
LFU (Least Frequently Used) Cache implementation with thread-safety and async support.
|
|
@@ -16,7 +16,7 @@ from typing import Any, Optional, Hashable
|
|
|
16
16
|
from ..config.logging_setup import get_logger
|
|
17
17
|
from .base import ACache
|
|
18
18
|
|
|
19
|
-
logger = get_logger("
|
|
19
|
+
logger = get_logger("xwsystem.caching.lfu_cache")
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class LFUCache(ACache):
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Optimized O(1) LFU Cache implementation.
|
|
@@ -23,7 +23,7 @@ from typing import Any, Optional, Hashable
|
|
|
23
23
|
from .base import ACache
|
|
24
24
|
from ..config.logging_setup import get_logger
|
|
25
25
|
|
|
26
|
-
logger = get_logger("
|
|
26
|
+
logger = get_logger("xwsystem.caching.lfu_optimized")
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
class OptimizedLFUCache(ACache):
|
|
@@ -31,7 +31,7 @@ class OptimizedLFUCache(ACache):
|
|
|
31
31
|
O(1) LFU Cache using frequency buckets.
|
|
32
32
|
|
|
33
33
|
Algorithm:
|
|
34
|
-
- Frequency buckets: dict[freq ->
|
|
34
|
+
- Frequency buckets: dict[freq -> Ordereddict[key -> value]]
|
|
35
35
|
- Min frequency tracking for O(1) eviction
|
|
36
36
|
- All operations are O(1) complexity
|
|
37
37
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Company: eXonware.com
|
|
3
3
|
Author: Eng. Muhammad AlShehri
|
|
4
4
|
Email: connect@exonware.com
|
|
5
|
-
Version: 0.0.1
|
|
5
|
+
Version: 0.1.0.1
|
|
6
6
|
Generation Date: September 04, 2025
|
|
7
7
|
|
|
8
8
|
LRU (Least Recently Used) Cache implementation with thread-safety and async support.
|
|
@@ -17,7 +17,7 @@ from typing import Any, Optional, Union, Callable, Hashable
|
|
|
17
17
|
from ..config.logging_setup import get_logger
|
|
18
18
|
from .base import ACache
|
|
19
19
|
|
|
20
|
-
logger = get_logger("
|
|
20
|
+
logger = get_logger("xwsystem.caching.lru_cache")
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class CacheNode:
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Memory-bounded cache implementations.
|
|
@@ -17,7 +17,7 @@ from .lfu_optimized import OptimizedLFUCache
|
|
|
17
17
|
from .utils import estimate_object_size, format_bytes
|
|
18
18
|
from ..config.logging_setup import get_logger
|
|
19
19
|
|
|
20
|
-
logger = get_logger("
|
|
20
|
+
logger = get_logger("xwsystem.caching.memory_bounded")
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class MemoryBoundedLRUCache(LRUCache):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Metrics exporters for cache monitoring.
|
|
@@ -13,7 +13,7 @@ Performance Priority #4 - Observability and monitoring integration.
|
|
|
13
13
|
from typing import Any, Optional
|
|
14
14
|
from ..config.logging_setup import get_logger
|
|
15
15
|
|
|
16
|
-
logger = get_logger("
|
|
16
|
+
logger = get_logger("xwsystem.caching.metrics_exporter")
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class PrometheusExporter:
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Pluggable cache with runtime-switchable eviction strategies.
|
|
@@ -17,7 +17,7 @@ from .base import ACache
|
|
|
17
17
|
from .eviction_strategies import AEvictionStrategy, LRUEvictionStrategy
|
|
18
18
|
from ..config.logging_setup import get_logger
|
|
19
19
|
|
|
20
|
-
logger = get_logger("
|
|
20
|
+
logger = get_logger("xwsystem.caching.pluggable")
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class PluggableCache(ACache):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Read-through and Write-through cache implementations.
|
|
@@ -14,7 +14,7 @@ from typing import Any, Callable, Optional, Hashable
|
|
|
14
14
|
from .lru_cache import LRUCache
|
|
15
15
|
from ..config.logging_setup import get_logger
|
|
16
16
|
|
|
17
|
-
logger = get_logger("
|
|
17
|
+
logger = get_logger("xwsystem.caching.read_through")
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class ReadThroughCache(LRUCache):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Cache serialization utilities.
|
|
@@ -18,7 +18,7 @@ from .lru_cache import LRUCache
|
|
|
18
18
|
from .lfu_optimized import OptimizedLFUCache
|
|
19
19
|
from ..config.logging_setup import get_logger
|
|
20
20
|
|
|
21
|
-
logger = get_logger("
|
|
21
|
+
logger = get_logger("xwsystem.caching.serializable")
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class SerializableCache(LRUCache):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Tag-based cache invalidation.
|
|
@@ -15,7 +15,7 @@ from collections import defaultdict
|
|
|
15
15
|
from .lru_cache import LRUCache
|
|
16
16
|
from ..config.logging_setup import get_logger
|
|
17
17
|
|
|
18
|
-
logger = get_logger("
|
|
18
|
+
logger = get_logger("xwsystem.caching.tagging")
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class TaggedCache(LRUCache):
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Company: eXonware.com
|
|
5
5
|
Author: Eng. Muhammad AlShehri
|
|
6
6
|
Email: connect@exonware.com
|
|
7
|
-
Version: 0.0.1
|
|
7
|
+
Version: 0.1.0.1
|
|
8
8
|
Generation Date: 01-Nov-2025
|
|
9
9
|
|
|
10
10
|
Cache warming utilities for preloading data.
|
|
@@ -16,7 +16,7 @@ from abc import ABC, abstractmethod
|
|
|
16
16
|
import time
|
|
17
17
|
from ..config.logging_setup import get_logger
|
|
18
18
|
|
|
19
|
-
logger = get_logger("
|
|
19
|
+
logger = get_logger("xwsystem.caching.warming")
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class AWarmingStrategy(ABC):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: 01-Nov-2025
|
|
8
8
|
|
|
9
9
|
Write-behind (lazy write) cache implementation.
|
|
@@ -16,7 +16,7 @@ from typing import Any, Callable, Optional, Hashable
|
|
|
16
16
|
from .lru_cache import LRUCache
|
|
17
17
|
from ..config.logging_setup import get_logger
|
|
18
18
|
|
|
19
|
-
logger = get_logger("
|
|
19
|
+
logger = get_logger("xwsystem.caching.write_behind")
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class WriteBehindCache(LRUCache):
|
exonware/xwsystem/cli/args.py
CHANGED
exonware/xwsystem/cli/base.py
CHANGED
exonware/xwsystem/cli/colors.py
CHANGED
exonware/xwsystem/cli/console.py
CHANGED
exonware/xwsystem/cli/defs.py
CHANGED
exonware/xwsystem/cli/errors.py
CHANGED
exonware/xwsystem/cli/prompts.py
CHANGED
exonware/xwsystem/cli/tables.py
CHANGED
exonware/xwsystem/config/base.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#exonware/
|
|
1
|
+
#exonware/xwsystem/config/base.py
|
|
2
2
|
"""
|
|
3
3
|
Company: eXonware.com
|
|
4
4
|
Author: Eng. Muhammad AlShehri
|
|
5
5
|
Email: connect@exonware.com
|
|
6
|
-
Version: 0.0.1
|
|
6
|
+
Version: 0.1.0.1
|
|
7
7
|
Generation Date: September 04, 2025
|
|
8
8
|
|
|
9
9
|
Config module base classes - abstract classes for configuration functionality.
|