Skip to content

JoeTech89/Ultra_Array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Ultra Array

Created By: Rukus Framework

Version 0.2 3/7/2023

Custom Python Variable Types with expanded functionality.

Please use only the UltraArray version. Depreciated versions may already have been removed.
NOTE: Tuple object implementation is not working as intended.

This Pakage module contains various objects, that are to be used as expanded variable types.
A pro to useing this package is the expanded funtionality types will have, as well as a more readable presentation when useing the print function.
Types included:

  • Dictionary (dict)
  • Array (list)
  • Tupple (tupple) Note: Implementation not working as intended
  • Singleton

  • Setup

    import UltraAray as Ultra

    To import the package this way will greatly increase simplicity in implementation


    Singleton

    class ObjectName(Ultra.Singleton)
    A Singleton will allow the object which inherites it be singular, and not instanced when called.


    Dicitonary

    Basic implementation

    d=Ultra.Dictionary(a=0,b=1,c=2,d=3)
    This will create a dictionary as d with the values appended.
    You can also create it in a way to name the dictionary. This will allow the name to be shown when printing the dictionary.
    d=Ultra.Dictionary(a=0,b=1,c=2,d=3).set('name','My Dictionary')
    Now when you print d it will show the name before the information stored within.
    It also contains an append method, much like list. However if the 'key' to append is already avaliable it will add a numeric value to the end of the 'key' name.
    d.append(a=4)
    After this function the dictionary will appear as: d[a=0,b=1,c=2,d=3,a1=4]


    Array

    Basic implementation

    a=Ultra.Array(1,2,3,4)
    This will create an array with the values appended.
    You can also create it with the ~.set('name','Array Name') and will act as other types in this package do.

    Tupple

    Basic implementation

    t=Ultra.Tupple(1,2,3,4)

    Please Note: Currently this object is not working correctly. It is suggested that you do not use it.


    About

    Custom Python Dictionary object

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages