blocks-genesis 0.3.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.
- blocks_genesis/__init__.py +50 -0
- blocks_genesis/_auth/__init__.py +0 -0
- blocks_genesis/_auth/auth.py +667 -0
- blocks_genesis/_auth/blocks_context.py +233 -0
- blocks_genesis/_cache/CacheClient.py +135 -0
- blocks_genesis/_cache/__init__.py +0 -0
- blocks_genesis/_cache/cache_provider.py +41 -0
- blocks_genesis/_cache/redis_client.py +540 -0
- blocks_genesis/_core/__init__.py +0 -0
- blocks_genesis/_core/api.py +146 -0
- blocks_genesis/_core/azure_key_vault.py +73 -0
- blocks_genesis/_core/blocks_secret.py +16 -0
- blocks_genesis/_core/configuration.py +19 -0
- blocks_genesis/_core/env_vault_config.py +19 -0
- blocks_genesis/_core/secret_loader.py +52 -0
- blocks_genesis/_core/worker.py +141 -0
- blocks_genesis/_database/__init__.py +0 -0
- blocks_genesis/_database/db_context.py +21 -0
- blocks_genesis/_database/mongo_context.py +87 -0
- blocks_genesis/_database/mongo_event_subscriber.py +38 -0
- blocks_genesis/_entities/__init__.py +0 -0
- blocks_genesis/_entities/base_entity.py +13 -0
- blocks_genesis/_lmt/__init__.py +0 -0
- blocks_genesis/_lmt/activity.py +115 -0
- blocks_genesis/_lmt/log_config.py +26 -0
- blocks_genesis/_lmt/mongo_log_exporter.py +164 -0
- blocks_genesis/_lmt/mongo_trace_exporter.py +127 -0
- blocks_genesis/_lmt/tracing.py +22 -0
- blocks_genesis/_message/__init__.py +0 -0
- blocks_genesis/_message/azure/azure_message_client.py +149 -0
- blocks_genesis/_message/azure/azure_message_worker.py +280 -0
- blocks_genesis/_message/azure/config_azure_service_bus.py +103 -0
- blocks_genesis/_message/consumer.py +15 -0
- blocks_genesis/_message/consumer_message.py +11 -0
- blocks_genesis/_message/event_message.py +6 -0
- blocks_genesis/_message/event_registry.py +32 -0
- blocks_genesis/_message/message_client.py +26 -0
- blocks_genesis/_message/message_configuration.py +118 -0
- blocks_genesis/_message/rabbit_mq/__init__.py +9 -0
- blocks_genesis/_message/rabbit_mq/rabbit_message_client.py +183 -0
- blocks_genesis/_message/rabbit_mq/rabbit_message_worker.py +202 -0
- blocks_genesis/_message/rabbit_mq/rabbit_mq_service.py +93 -0
- blocks_genesis/_middlewares/__init__.py +0 -0
- blocks_genesis/_middlewares/global_exception_middleware.py +57 -0
- blocks_genesis/_middlewares/tenant_middleware.py +222 -0
- blocks_genesis/_tenant/__init__.py +0 -0
- blocks_genesis/_tenant/tenant.py +96 -0
- blocks_genesis/_tenant/tenant_service.py +317 -0
- blocks_genesis/_utilities/__init__.py +0 -0
- blocks_genesis/_utilities/crypto_service.py +74 -0
- blocks_genesis-0.3.1.dist-info/METADATA +28 -0
- blocks_genesis-0.3.1.dist-info/RECORD +54 -0
- blocks_genesis-0.3.1.dist-info/WHEEL +4 -0
- blocks_genesis-0.3.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from blocks_genesis._auth.blocks_context import BlocksContext, BlocksContextManager
|
|
2
|
+
from blocks_genesis._cache import CacheClient
|
|
3
|
+
from blocks_genesis._cache.cache_provider import CacheProvider
|
|
4
|
+
from blocks_genesis._database.db_context import DbContext
|
|
5
|
+
from blocks_genesis._tenant.tenant import Tenant
|
|
6
|
+
from blocks_genesis._tenant.tenant_service import TenantService, get_tenant_service
|
|
7
|
+
from blocks_genesis._message.azure.azure_message_client import AzureMessageClient
|
|
8
|
+
from blocks_genesis._message.rabbit_mq.rabbit_message_client import RabbitMessageClient
|
|
9
|
+
from blocks_genesis._core.api import close_lifespan, configure_lifespan, configure_genesis, fast_api_app
|
|
10
|
+
from blocks_genesis._core.worker import WorkerConsoleApp
|
|
11
|
+
from blocks_genesis._core.configuration import get_configurations, load_configurations
|
|
12
|
+
from blocks_genesis._entities.base_entity import BaseEntity
|
|
13
|
+
from blocks_genesis._lmt.activity import Activity
|
|
14
|
+
from blocks_genesis._message.consumer_message import ConsumerMessage
|
|
15
|
+
from blocks_genesis._message.message_client import MessageClient
|
|
16
|
+
from blocks_genesis._utilities.crypto_service import CryptoService
|
|
17
|
+
from blocks_genesis._auth.auth import authorize
|
|
18
|
+
from blocks_genesis._message.message_configuration import AzureServiceBusConfiguration, RabbitMqConfiguration, ConsumerSubscription, MessageConfiguration
|
|
19
|
+
from blocks_genesis._core.azure_key_vault import AzureKeyVault
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"BlocksContext",
|
|
23
|
+
"BlocksContextManager",
|
|
24
|
+
"CacheClient",
|
|
25
|
+
"CacheProvider",
|
|
26
|
+
"DbContext",
|
|
27
|
+
"Tenant",
|
|
28
|
+
"TenantService",
|
|
29
|
+
"get_tenant_service",
|
|
30
|
+
"AzureMessageClient",
|
|
31
|
+
"RabbitMessageClient",
|
|
32
|
+
"RabbitMqConfiguration",
|
|
33
|
+
"ConsumerSubscription",
|
|
34
|
+
"MessageConfiguration",
|
|
35
|
+
"close_lifespan",
|
|
36
|
+
"configure_lifespan",
|
|
37
|
+
"configure_genesis",
|
|
38
|
+
"WorkerConsoleApp",
|
|
39
|
+
"get_configurations",
|
|
40
|
+
"load_configurations",
|
|
41
|
+
"BaseEntity",
|
|
42
|
+
"Activity",
|
|
43
|
+
"ConsumerMessage",
|
|
44
|
+
"MessageClient",
|
|
45
|
+
"CryptoService",
|
|
46
|
+
"AzureServiceBusConfiguration",
|
|
47
|
+
"authorize",
|
|
48
|
+
"fast_api_app",
|
|
49
|
+
"AzureKeyVault"
|
|
50
|
+
]
|
|
File without changes
|