GRAPHIC: New Entity Operations™ Alpha Logo

EntityScript



constructed_class




# -*- coding: utf-8 -*-
"""
COPYRIGHT (C) 2020-2023 NEW ENTITY OPERATIONS INC. ALL RIGHTS RESERVED
INSTANCE: OPENPACKAGER-> internal-> constructed_class
MODIFIED: 2023/05/15
OVERVIEW: Construct a digital transcation object
"""
__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_blob

## Custom Imports
from core_middlelayer import (SLUG_BLOB_OBJECT)

action_helper_text = \
 POOL_blob.action_helper_text
break_point = \
 POOL_blob.break_point
op_end_1 = \
 POOL_blob.op_end_1
action_helper_output_confirmation = \
 POOL_blob.action_helper_output_confirmation
R_VALUE = \
 POOL_blob.R_VALUE
RETURN_START_FUNC = \
 POOL_blob.RETURN_START_FUNC
simple_state = \
 POOL_blob.simple_state
simple_state_max_records_to_break = \
 POOL_blob.simple_state_max_records_to_break

## Establish needed digital transaction bucket
transactions = []
## Create a blob_object dictionary to receive DeductionObject input with
## assigned keys
blob_object = {}

## Define one or mulitple counters and limits here
class options:
 counter = simple_state
 max_records_to_break = simple_state_max_records_to_break
 STRING_max_records_to_break = str(max_records_to_break)

class blob:
 def generate_blob_object():
  with open(SLUG_BLOB_OBJECT, R_VALUE) as blob_object_importer:
   counter = options.counter
   max_records_to_break = options.max_records_to_break
   for line in blob_object_importer:
    if counter > max_records_to_break:
     pass
    else:
     BLOB_SLUG = line
     blob_object.update({counter: RETURN_START_FUNC+BLOB_SLUG+op_end_1})
     counter+=1
     # Also fill the transaction bucket
     transactions.append(line)
  blob_object_importer.close()

print(action_helper_text+options.STRING_max_records_to_break)
print(break_point)
blob.generate_blob_object()
print(blob_object)
print(action_helper_output_confirmation)
print(break_point)
print(transactions)



Return HOME