started ns_api
This commit is contained in:
parent
958df44d33
commit
974f184ab2
@ -1 +1,13 @@
|
|||||||
from . import *
|
from . import *
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logging.basicConfig(
|
||||||
|
level=logging.INFO,
|
||||||
|
format='%(asctime)s - %(levelname)s - %(message)s',
|
||||||
|
handlers=[
|
||||||
|
#logging.FileHandler('.log'), # Log file handler
|
||||||
|
logging.StreamHandler() # Console handler
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
4
herrewebpy/config/trains/credentials.json
Normal file
4
herrewebpy/config/trains/credentials.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"primary_key":"3cbf5edc7d644168990bed1d473b279d",
|
||||||
|
"secondary_key":"2658a3e62b124433989c2f389a3230d9"
|
||||||
|
}
|
1
herrewebpy/trains/__init__.py
Normal file
1
herrewebpy/trains/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from . import *
|
4
herrewebpy/trains/ns_api.py
Normal file
4
herrewebpy/trains/ns_api.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import requests
|
||||||
|
from herrewebpy import logger
|
||||||
|
|
||||||
|
logger.info(f'Running here')
|
Loading…
Reference in New Issue
Block a user