Package: inui
INUIPowerful and Highly Customizable Python Library for UIGitHub•Documentation•Channel•SupportPy INUIINUIis a powerful and highly customizable Python language library forUI, which supports all the components and elements of the html markup language inPython, as well as the ability to use libraries such asBootstrap, etc. And it brings a new experience of easier work with frontend in Python.ContentsINUIPy INUIContentsRequirementsPython CompatibilityDependenciesHow to Use?InstallationSyntaxSupported ElementsSupported Attributes for each ElementLICENSERequirementsPython CompatibilityThis Library is written entirely in python. tested versions arepython 3.11, 3.10, 3.9, 3.8, 3.7while older versions
should not cause any problem, we recommend using the latest version ofpython3.DependenciesThis package requires the following packages:BeautifulSoup- for Prettifing CodeHow to Use?read thedocumentationfor more informationInstallationJust run following command in the Terminal or CMDpipinstallinui--upgradeSyntaxThe syntax ofINUIpackage is very easy, you have some building blocks like HTML tags and you have to
order them to create a new bigger block and in the last, you have your full project.Supppose that the you want to createHello World!project. your buildin block is:H1("Hello World!")Now you want to create application that containsNtimesHello World!, in here we just put it in the
Body tag and use our python code to create our goal. See here:n=10listOfH1=[H1("Hello World!"+str(i))foriinrange(1,n+1)]Body(listOfH1)In the big picture we have some classes that take some values, first one is data that couldbe peice of text, or HTML code or another Elements
(if the lentgh of giving data is bigger than one, we have to put them in the list,tuple or set and after use them) and second one is attribues,
like this:output=Html(data=(Comment("this is black door =`) "),Head((Title("Wiki Clone"),Meta(charset="utf-8"),Meta(name="viewport",content="width=device-width, initial-scale=1.0",),Link(rel="stylesheet",href="./style.css"),)),Body((Div((Div((H1("search wiki"),Span("light",id="theme-toggler"),),classs="header-container",)),classs="container",),Form((Input(typee="text",placeholder="search wiki",id="search-input"),Button(typee="submit",text="search",id="search-button"),),id="search-form",),Div(id="search-results"),Script(src="./script.js"),),),),)print(output)Supported ElementsidHTMLINUIidHTMLINUIidHTMLINUI1'<> </> 'BaseElement45figureFigure89emEm2</>BaseVoidElement46fontFont90prePre3!DOCTYPE htmlDoctype47footerFooter91progressProgress4abbrAbbr48formForm92qQ5acronymAcronym49frameFrame93rpRp6addressAddress50framesetFrameset94rtRt7aA51headHead95rubyRuby8appletApplet52headerHeader96sS9areaArea53h1H197sampSamp10articleArticle54h2H298scriptScript11asideAside55h3H399sectionSection12audioAudio56h4H4100smallSmall13baseBase57h5H5101sourceSource14basefontBasefont58h6H6102spacerSpacer15bdiBdi59hgroupHgroup103spanSpan16bdoBdo60hrHr104strikeStrike17bgsoundBgsound61htmlHtml105strongStrong18bigBig62iframeIframe106styleStyle19blockquoteBlockquote63imgImg107subSub20bodyBody64inputInput108supSup21bB65insIns109summarySummary22brBr66isindexIsindex110svgSvg23buttonButton67iI111tableTable24captionCaption68kbdKbd112tbodyTbody25canvasCanvas69keygenKeygen113tdTd26centerCenter70labelLabel114templateTemplate27citeCite71legendLegend115tfootTfoot28codeCode72liLi116thTh29colgroupColgroup73mainMain117theadThead30colCol74markMark118timeTime31commentComment75marqueeMarquee119titleTitle32dataData76menuitemMenuitem120trTr33datalistDatalist77metaMeta121trackTrack34ddDd78meterMeter122ttTt35dfnDfn79navNav123uU36delDel80nobrNobr124varVar37detailsDetails81noembedNoembed125videoVideo38dialogDialog82noscriptNoscript126wbrWbr39dirDir83objectObject127xmpXmp40divDiv84olOl41dlDl85optgroupOptgroup42embedEmbed86optionOption43fieldsetFieldset87outputOutput44figcaptionFigcaption88pPSupported Attributes for each ElementidHTMLINUIidHTMLINUIidHTMLINUI1classclasss22itemiditemid89elementtimingelementtiming2idid23itempropitemprop90forforr3srcsrc24itemrefitemref91maxmax4namename25itemscopeitemscope92maxlengthmaxlength5contentcontent26itemtypeitemtype93minmin6charsetcharset27langlang94minlengthminlength7stylestyle28noncenonce95multiplemultiple8hrefhref29partpart96patternpattern9autocapitalizeautocapitalize30popoverpopover97readonlyreadonly10accesskeyaccesskey31slotslot98relrel11accessskeyaccessskey32spellcheckspellcheck99requiredrequired12autofocusautofocus33tabindextabindex100sizesize13contenteditablecontenteditable34titletitle101stepstep14dirdir35translatetranslate102typeetypee15draggabledraggable36virtualkeyboardpolicyvirtualkeyboardpolicy103placeholderplaceholder16enterkeyhintenterkeyhint37acceptaccept104texttext17exportpartsexportparts38autocompleteautocomplete105scopescope18hiddenhidden39capturecapture106colspancolspan19inertinert40crossorigincrossorigin107aria-describedbyaria_describedby20inputmodeinputmode41dirnamedirname108aria-labelaria_label21isiss42disableddisabled109selectedselectedLICENSEDistributed under the MIT License. SeeLICENSEfor more information.