Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
11
lib/__init__.py
Normal file
11
lib/__init__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
Project: PARTS Website
|
||||
Author: Edward Middleton-Smith
|
||||
Precision And Research Technology Systems Limited
|
||||
|
||||
Technology: Module Initialisation
|
||||
Feature: Library
|
||||
|
||||
Description:
|
||||
Initialises library module.
|
||||
"""
|
||||
1301
lib/argument_validation.py
Normal file
1301
lib/argument_validation.py
Normal file
File diff suppressed because it is too large
Load Diff
37
lib/data_types.py
Normal file
37
lib/data_types.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Thu Apr 27 12:33:59 2023
|
||||
|
||||
@author: Edward Middleton-Smith
|
||||
|
||||
Argument Validation
|
||||
"""
|
||||
|
||||
# CLASSES
|
||||
# ATTRIBUTE DECLARATION
|
||||
# METHODS
|
||||
# FUNCTION
|
||||
# ARGUMENTS
|
||||
# ARGUMENT VALIDATION
|
||||
# ATTRIBUTE + VARIABLE INSTANTIATION
|
||||
# METHODS
|
||||
# RETURNS
|
||||
|
||||
# NORMAL METHODS
|
||||
# FUNCTION
|
||||
# ARGUMENTS
|
||||
# ARGUMENT VALIDATION
|
||||
# VARIABLE INSTANTIATION
|
||||
# METHODS
|
||||
# RETURNS
|
||||
|
||||
# IMPORTS
|
||||
|
||||
# CLASSES
|
||||
|
||||
# METHODS
|
||||
def get_enum_member_by_text(enum_class, text):
|
||||
for member in enum_class.__members__.values():
|
||||
if member.name == text:
|
||||
return member
|
||||
raise ValueError(f'{text} is not in {enum_class}')
|
||||
Reference in New Issue
Block a user