GRAPHIC: New Entity Operations™ Alpha Logo

EntityScript



fetch_ORE




# -*- coding: utf-8 -*-
"""
COPYRIGHT (C) 2020-2023 NEW ENTITY OPERATIONS INC. ALL RIGHTS RESERVED
INSTANCE: OPENPACKAGER-> internal-> fetch_ORE
MODIFIED: 2023/05/15
OVERVIEW: fetch_ORE generates a Key, Value relationship for the local ORE
indexer. It also has a built in lookup to generate a list of Character outputs.
This can be augmented to take and provide output.

"""
__version__ = "0.0.5"
__author__ = "Ryan McKenna"
__copyright__ = "Copyright (C) 2020-2023 New Entity Operations Inc."
__credits__ = [
 "Ryan McKenna",
 "New Entity Operations Inc.", "New Entity Operations, LLC"]
__email__ = "Operator@NewEntityOperations.com"
__license__ = "New Entity License"
__maintainer__ = "Ryan McKenna"
__status__ = "Production"

## MODE-> facilities
from MODE.facilities import (POOL_ORE, split)

## Imports: Custom
from core_middlelayer import (DIRDATA, PHASE_ENTITYSCRIPT_ORE)

## Establish values
no_quantity = /
 POOL_ORE.no_quantity
simple_state = /
 POOL_ORE.simple_state
simple_state_character_explorer = /
 POOL_ORE.simple_state_character_explorer
## Manipulators
R_VALUE = /
 POOL_ORE.R_VALUE
VECTOR_SPLITTER = /
 POOL_ORE.VECTOR_SPLITTER

## ORE 'setup_dict'
ORE = {}

# This can be pulled from various .es files too in more complex forms
# but the base example is this.
with open(DIRDATA+PHASE_ENTITYSCRIPT_ORE, R_VALUE) as construct_ore:
 for line in construct_ore:
  split_line = split(VECTOR_SPLITTER, line)
  key_split =  split_line[no_quantity]
  value_split = split_line[simple_state]
  ORE.update({key_split:value_split})
construct_ore.close()

# Key lookup possibilty
for l in enumerate(ORE.keys()):
 print(l)

class CharacterSearch:
 """
 If you're trying to find various encoded values,
 you can look for them here by expanding increasing the range
 """
 def generate_character_list():
  ## Character encoding translator
  character_to_explore = simple_state_character_explorer
  for i in range(character_to_explore):
   print(chr(i))



Return HOME