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. 3
      .gitignore
  3. 2
      analytics/config.py
  4. 3
      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

3
.gitignore vendored

@ -2,4 +2,5 @@ build/
dist/
*.spec
__pycache__/
test/
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')

3
requirements.txt

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