Browse Source

.env.example with variables documentation (#25)

master
Dmitry Nalobin 4 years ago committed by GitHub
parent
commit
53e392a517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .env.example
  2. 1
      .gitignore
  3. 2
      analytics/config.py
  4. 1
      requirements.txt

6
.env.example

@ -0,0 +1,6 @@
# (optional) websockets URL to connect to hastic-server
HASTIC_SERVER_URL=ws://localhost:8002
# (optional) logging level: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'
HS_AN_LOGGING_LEVEL=DEBUG
# (optional) time we wait for a response from hastic/analytics before sending the error
LEARNING_TIMEOUT=120

1
.gitignore vendored

@ -3,3 +3,4 @@ dist/
*.spec
__pycache__/
test/
.env

2
analytics/config.py

@ -1,6 +1,8 @@
import os
import json
from dotenv import load_dotenv
load_dotenv()
PARENT_FOLDER = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
CONFIG_FILE = os.path.join(PARENT_FOLDER, 'config.json')

1
requirements.txt

@ -5,3 +5,4 @@ pandas==0.20.3
pyzmq==18.0.1
scipy==1.1.0
websockets==8.1
python-dotenv==0.14.0
Loading…
Cancel
Save