mirror of
https://github.com/status-im/status-python-sdk.git
synced 2026-08-31 06:01:19 +00:00
- Create `Dockerfile` for `upload.py` and `download.py`. Code and config has been modified to be Docker friendly - Add `Dockerfile` to `docker-compose.yaml` **Note**: This version does not work with `create_account.py`
17 lines
601 B
Python
17 lines
601 B
Python
import os
|
|
import yaml
|
|
from dotenv import load_dotenv as __load_dotenv
|
|
|
|
CREDENTIALS_PATH = os.path.join(os.path.dirname(__file__), "accounts")
|
|
UPLOAD_PATH = os.path.join(os.path.join(os.path.dirname(__file__), "uploads"))
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), "config.yaml"), "r") as f:
|
|
CONFIG: dict = yaml.safe_load(f)
|
|
|
|
__load_dotenv()
|
|
|
|
STATUS_BACKEND_PARAMS = {
|
|
**CONFIG["status_app"]["backend_params"],
|
|
"url": f"http:{'s' if CONFIG['status_app']['url']['is_https'] else ''}//{os.environ.get('STATUS_BACKEND_BASE_URL', 'localhost')}:{CONFIG['status_app']['url']['port']}"
|
|
}
|