Like a fortress or dyson sphere, the paths within the scales start to appear.
ports:
mongo: 39000
sanic: 8000
help: 20000
[prompt] pip install euphoria
#
# euphoria uses "sanic" command line,
# and, if local, the "mongod" command line.
#
'''
/euphoria_frame
/monetary
/_data
the.process_identity_number
the.logs
/harbor
the.process_identity_number
'''
import json
fp = open ("/online/vaccines_euphoria/mints/euphoria/ellipsis.JSON", "r")
ellipsis = json.loads (fp.read ())
fp.close ()
def crate (the_path):
from os.path import dirname, join, normpath
import sys
import pathlib
this_directory = pathlib.Path (__file__).parent.resolve ()
return str (normpath (join (this_directory, the_path)))
essence = {
"monetary": {
"DB_name": "ingredients",
"URL": "mongodb://0.0.0.0:39000/",
"onsite": {
"host": "0.0.0.0",
"port": "39000",
"path": crate ("monetary/_data"),
"PID_path": crate ("monetary/the.process_identity_number"),
"logs_path": crate ("monetary/the.logs")
},
"saves": {
"path": crate ("monetary/_saves")
}
},
"harbor": {
"PID_path": crate ("harbor/the.logs")
},
"USDA": {
"food": ellipsis ["USDA"] ["food"]
},
"NIH": {
"supp": ellipsis ["NIH"] ["supp"]
}
}
This turns on mongo and sanic
[prompt] euphoria on
#
# This does this:
#
# [prompt] euphoria on --essence-path essence.py
#
import euphoria._interfaces.on as euphoria_on
euphoria_on.on (
essence_path = "essence.py"
)
This turns off mongo and sanic
[prompt] euphoria off
#
# This does this:
#
# [prompt] euphoria off --essence-path essence.py
#
import euphoria._interfaces.off as euphoria_off
euphoria_off.off (
essence_path = "essence.py"
)
This adds the documents to mongo
[prompt] euphoria monetary structures import --import-name export.1.json
import euphoria._interfaces.on as euphoria_on
euphoria_on.on (
essence_path = "essence.py"
)
[get] /docs
[get] /docs/swagger
This adds the documents to mongo
[get] /USDA/food/FDC_ID/2369390