Skip to content

harrywilkins/pyfi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyfi - Python Fidelity v0.1: An advanced module for Python

AdvancedInput.py - Advanced methods for getting user inputs

  • sinput (prompt): Returns type sensitive values based on input format
    • prompt - The prompt displayed to the user at the input statement. Default value ">>> "

  • InputFormat (inpFormat, separateWords, prompt): Returns user input if it matches a given format
    • inpFormat - The format to compare the input to in the form of a list
    • Useable data types: ["int", "float", "alpha", "lower", "upper", "str", "space"]
    • separateWords - If true, the method will compare the user input word-by-word. If false, letter-by-letter
    • prompt - The prompt displayed to the user at the input statement. Default value ">>> "


AutoComplete.py - Method that auto-completes unfinished words

  • AutoCompleteFast (word): Returns the first exact match it finds. Faster than full check
    • word - The word to auto-complete. Format examples: "h*ll_" ["H",")","l","l","@"] - Both represent unfinished "hello"

  • AutoCompleteFull (word): Returns a list of the best matching words. Takes slightly longer
    • word - The word to auto-complete. Format examples: "ap,l%" ["a","P",":","l","."] - Both represent unfinished "apple"

  • SpellCheck (word): Takes a word, and returns the closest match of the same length in the English dictionary
    • word - Any alphabetic string. It can include numbers and spaces, but it will treat it as a single word

  • SCInput (prompt): Type in a sentence and it will return an 'SpellCheck()' version of each word as a sentence
    • prompt - Default value ">>> " - The prompt displayed to the user by the input statement


Debug.py - A system for storing and printing logs

  • Log (logType, value): Logs a value as a specific log type
    • logType -
    • value -

  • PrintLog (): Prints the current log


MathSeq.py - A number of maths sequences

  • Fibonacci (iterations): Displays the Fibonacci sequence
    • iterations - The number of iterations of the sequence to display


Searching.py - List searching methods

  • BinarySearch (numList, item): Returns index of an item in an ordered number list
    • numList - An ordered number list (int or float)
    • item - The number (int or float) to look for in the specified list

  • LinearSearch (itemList, item):
    • itemList - A list of any values
    • item - The item to find the index of in the list


Table.py - Table creation and manipulation module

  • Table (x, y, cellValue): Create a new Table class instance
    • x - The x location of the cell. This applies to the entire class
    • y - The y location of the cell. This applies to the entire class

  • DisplayBoard (spaces): Display the current table/board
    • spaces - The number of spaces between each element. Default value is 0

  • GetCell (x, y): Get the value of a cell at position (x, y)
  • ModifyCell (x, y, newValue): Modify the value of a cell at position (x, y)
    • newValue - The new value you would like the cell to take

  • GetCellByNumber (cellNumber): Get the value of a cell by cell number
    • cellNumber - The cell number, the top-left cell is 0, and from there it reads in the way a book does

  • ModifyCellByNumber (cellNumber, newValue): Modify the value of a cell by cell number
    • cellNumber - The cell number, the top-left cell is 0, and from there it reads in the way a book does
    • newValue - The new value you would like the cell to take

Releases

No releases published

Packages

No packages published

Languages