<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Momin Iqbal</title>
    <description>The latest articles on DEV Community by Momin Iqbal (@mominiqbal1234).</description>
    <link>https://dev.to/mominiqbal1234</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1034343%2Faa323360-1210-4c1f-98be-4e6225bf679a.jpeg</url>
      <title>DEV Community: Momin Iqbal</title>
      <link>https://dev.to/mominiqbal1234</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mominiqbal1234"/>
    <language>en</language>
    <item>
      <title>HTML to EXE Converter</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Mon, 27 Jul 2026 05:08:47 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/html-to-exe-converter-398c</link>
      <guid>https://dev.to/mominiqbal1234/html-to-exe-converter-398c</guid>
      <description>&lt;h3&gt;
  
  
  What is the LiteAI HTML to EXE Converter? 🤔
&lt;/h3&gt;

&lt;p&gt;In simple terms, it is a cloud compiler. Instead of forcing you to set up build pipelines on your local machine, it takes your raw web assets and packages them into a native Windows &lt;code&gt;.exe&lt;/code&gt; on our servers. &lt;/p&gt;

&lt;p&gt;You just zip your directory, upload it, and download the compiled binary. Your users get a native desktop program they can run with a simple double-click.&lt;/p&gt;

&lt;h3&gt;
  
  
  How is it different from local wrappers?
&lt;/h3&gt;

&lt;p&gt;I built this specifically to solve the headaches associated with traditional desktop packaging:&lt;/p&gt;

&lt;p&gt;🚫 &lt;strong&gt;Zero Local Dependencies:&lt;/strong&gt; You don't need to touch npm, pip, or command-line build tools. If your entry point is &lt;code&gt;index.html&lt;/code&gt;, you are ready to compile. &lt;/p&gt;

&lt;p&gt;🪶 &lt;strong&gt;Goodbye Bloat:&lt;/strong&gt; Because the cloud compiler optimizes the wrapper instead of bundling a massive Chromium instance into every single app, the resulting file sizes are incredibly lightweight.&lt;/p&gt;

&lt;p&gt;🔒 &lt;strong&gt;Source Code Protection:&lt;/strong&gt; One of the biggest issues with web wrappers is how easily users can unpack them or hit &lt;code&gt;Ctrl+Shift+I&lt;/code&gt; to view your logic. The LiteAI compiler disables right-click menus and developer tools, keeping your proprietary code completely hidden.&lt;/p&gt;

&lt;p&gt;🔌 &lt;strong&gt;100% Offline Capable:&lt;/strong&gt; The compiler bundles all your HTML, CSS, JS, and media assets directly inside the binary. The app doesn't need to ping a server to render the UI; it runs perfectly offline.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Workflow 🛠️
&lt;/h3&gt;

&lt;p&gt;It expects a standard, flat web directory. No &lt;code&gt;package.json&lt;/code&gt; needed. Just ensure your main file is named &lt;code&gt;index.html&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Upload your zipped project folder, configure your app icon (&lt;code&gt;.ico&lt;/code&gt;) and window title in the GUI, and hit &lt;strong&gt;Generate .EXE&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;If you are building offline utilities, internal company dashboards, or lightweight Kiosk apps, I'd love for you to give the compiler a try. &lt;/p&gt;

&lt;p&gt;Check it out here: &lt;strong&gt;&lt;a href="https://liteai.me/html-to-exe" rel="noopener noreferrer"&gt;liteai.me/html-to-exe&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>web</category>
      <category>ionic</category>
      <category>windows</category>
      <category>app</category>
    </item>
    <item>
      <title>How to Convert HTML to EXE and Build Windows Apps</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Sun, 26 Jul 2026 11:42:00 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/how-to-convert-html-to-exe-and-build-windows-apps-56lk</link>
      <guid>https://dev.to/mominiqbal1234/how-to-convert-html-to-exe-and-build-windows-apps-56lk</guid>
      <description>&lt;h2&gt;
  
  
  How to Convert HTML to EXE
&lt;/h2&gt;

&lt;p&gt;To convert HTML to EXE, upload your HTML, CSS, and JavaScript to the LiteAI dashboard and select Windows as the build target.&lt;/p&gt;

&lt;p&gt;The LiteAI cloud compiler wraps your web application in a high-performance engine and generates a secure HTML executable. The standalone &lt;code&gt;.exe&lt;/code&gt; file runs offline on Windows while protecting the underlying source code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Build Windows Apps with LiteAI Instead of Electron?
&lt;/h2&gt;

&lt;p&gt;Frameworks such as Electron and Node.js are popular options for packaging web applications as executables. However, they can produce file sizes of 300 MB or more and often require local setup, dependencies, and command-line knowledge.&lt;/p&gt;

&lt;p&gt;LiteAI provides a streamlined cloud-based alternative that generates lightweight executables with zero configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Source Code Protection
&lt;/h3&gt;

&lt;p&gt;The generated EXE disables Inspect Element and right-click menus, helping keep proprietary code hidden from end users.&lt;/p&gt;

&lt;h3&gt;
  
  
  Standalone Execution
&lt;/h3&gt;

&lt;p&gt;The executable includes everything required to run the application. Users can launch it by double-clicking the EXE without installing external dependencies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Local File System Access
&lt;/h3&gt;

&lt;p&gt;Your web application can be configured to read, write, and interact directly with the Windows local file system.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Build an HTML Executable
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Log In to Your Account
&lt;/h3&gt;

&lt;p&gt;Visit LiteAI and click &lt;strong&gt;Login&lt;/strong&gt; to access the cloud development environment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7sn1tv7wxc9nr9wrgw8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7sn1tv7wxc9nr9wrgw8.webp" alt="Log in to the LiteAI dashboard" width="799" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Select HTML to EXE
&lt;/h3&gt;

&lt;p&gt;In the System Dashboard, find the action toolbar and click &lt;strong&gt;HTML to EXE&lt;/strong&gt; to create a new Windows application project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe2y81qla77d644f1a83l.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe2y81qla77d644f1a83l.webp" alt="Select HTML to EXE from the dashboard" width="799" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Name Your Project
&lt;/h3&gt;

&lt;p&gt;Enter a slug-friendly name for the environment, such as &lt;code&gt;image-to-pdf-converter&lt;/code&gt;, and click &lt;strong&gt;Create&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5gvyg4qju4jufa2j0c3a.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5gvyg4qju4jufa2j0c3a.webp" alt="Name the HTML-to-EXE project" width="561" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Open Your Environment
&lt;/h3&gt;

&lt;p&gt;The new project will appear in the active projects list. Click &lt;strong&gt;Open Project&lt;/strong&gt; to launch the cloud IDE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cx43i6j3go0t4qvwuzc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cx43i6j3go0t4qvwuzc.webp" alt="Open the project in the cloud IDE" width="799" height="145"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Add and Preview Your Code
&lt;/h3&gt;

&lt;p&gt;Write or paste your HTML, CSS, and JavaScript into the editor. Click &lt;strong&gt;Preview&lt;/strong&gt; to test the application in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5zga7i9bda27u5pbyvt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5zga7i9bda27u5pbyvt.webp" alt="Write and preview the HTML application" width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Export Your Application
&lt;/h3&gt;

&lt;p&gt;When the application is ready, open the &lt;strong&gt;Export App&lt;/strong&gt; menu in the top navigation bar and select &lt;strong&gt;HTML to EXE (Desktop)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjekgvqbvv5v7m6randuf.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjekgvqbvv5v7m6randuf.webp" alt="Select the HTML-to-EXE desktop export" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Configure the Desktop Settings
&lt;/h3&gt;

&lt;p&gt;In the Desktop Builder, check the project name, upload a custom application icon, and click &lt;strong&gt;Generate .EXE&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh0a0ewjoz5utw67ca97m.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh0a0ewjoz5utw67ca97m.webp" alt="Configure the Windows application settings" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Download the Executable
&lt;/h3&gt;

&lt;p&gt;Wait while the LiteAI cloud servers compile the web application. When the build is ready, go to the Build Dashboard and click &lt;strong&gt;Download .zip (EXE)&lt;/strong&gt; to download the standalone Windows application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdc6391x3tlgnum714f69.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdc6391x3tlgnum714f69.webp" alt="Download the generated Windows executable" width="799" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I convert HTML to EXE?
&lt;/h3&gt;

&lt;p&gt;Upload your web assets to the LiteAI dashboard and click &lt;strong&gt;Generate .EXE&lt;/strong&gt;. The cloud compiler packages the code into a standalone HTML executable that runs on Windows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the HTML executable work offline?
&lt;/h3&gt;

&lt;p&gt;Yes. The HTML, CSS, JavaScript, and media assets are bundled inside the &lt;code&gt;.exe&lt;/code&gt; file, allowing the application to work without an internet connection.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do users need to install Chrome or Node.js?
&lt;/h3&gt;

&lt;p&gt;No. The compiler packages a lightweight runtime engine with the application, so the end user does not need to install external dependencies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I Use PHP or Python?
&lt;/h3&gt;

&lt;p&gt;This compiler is designed for client-side web technologies, including HTML, CSS, and JavaScript. A frontend can connect to an existing backend through APIs, but backend code is not compiled into this EXE format.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate Your Windows EXE
&lt;/h2&gt;

&lt;p&gt;Use LiteAI to convert your HTML application into a standalone Windows executable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://liteai.me/html-to-exe" rel="noopener noreferrer"&gt;Generate a Windows EXE with LiteAI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>html</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>HTML to APK Converter | Free AI App Builder | LiteAI.me</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Wed, 01 Jul 2026 12:12:28 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/html-to-apk-converter-free-ai-app-builder-liteaime-4jl7</link>
      <guid>https://dev.to/mominiqbal1234/html-to-apk-converter-free-ai-app-builder-liteaime-4jl7</guid>
      <description>&lt;p&gt;Log in to LiteAI: Navigate to the LiteAI homepage and click the Login button in the top right corner.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h3x3b1v1xa4a4kenp9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h3x3b1v1xa4a4kenp9.png" alt=" " width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a New Project: From your System Dashboard, click the yellow + New Project button to boot up a fresh cloud development environment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqa5gugkthfenblgt2dkn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqa5gugkthfenblgt2dkn.png" alt=" " width="800" height="382"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Initialize the Project: Assign a slug-friendly identifier (e.g., my-custom-app) and hit Create.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frziczbl8uvo3j9yralwm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frziczbl8uvo3j9yralwm.png" alt=" " width="713" height="592"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Access the Editor: Locate your project under "Active Projects" and click View Instance to enter the workspace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4pxmrge7m4nkr9kx6r00.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4pxmrge7m4nkr9kx6r00.png" alt=" " width="800" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ask the AI: In the top action bar, click Ask LiteAI to open the prompt assistant.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpeoubxip36mwqzeywhz6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpeoubxip36mwqzeywhz6.png" alt=" " width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Generate Your Code: Type your app idea (e.g., "Build a weather tracker app") and click Generate. The AI will write the foundational HTML/JS code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk2wsdajcqpkda7aiq4g4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk2wsdajcqpkda7aiq4g4.png" alt=" " width="800" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Preview the App: Click Preview in the top navigation to render your web application directly in your browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl2wintorktfp135mspoc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl2wintorktfp135mspoc.png" alt=" " width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Test Functionality: Interact with your new web app to ensure all features work perfectly before moving to the compilation stage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa8af8ld7wh83hdj65v3x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa8af8ld7wh83hdj65v3x.png" alt=" " width="800" height="630"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Configure the Android Build: Click the green Convert Android App button. Here, you will configure your package identity (e.g., com.mybrand.app) and select required hardware permissions (like Camera or File Storage).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvckwyxdy6g60rmm8jq4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvckwyxdy6g60rmm8jq4k.png" alt=" " width="800" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;more info:&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://liteai.me/html-to-apk" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fliteai.me%2Fstatic%2Fhtml-to-apk%2Fpreview-image.webp" height="400" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://liteai.me/html-to-apk" rel="noopener noreferrer" class="c-link"&gt;
            HTML to APK Converter | Compile Web Apps to Android | LiteAI
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Convert HTML, JS, and Python web apps into native Android APKs using the LiteAI cloud compiler. Full WebView and hardware support.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fliteai.me%2Fstatic%2Ficon%2Fliteai.ico" width="256" height="256"&gt;
          liteai.me
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Compile in the Cloud: Click Execute Build. The Gradle daemon will run in the cloud, processing your HTML into a native Android environment.&lt;/p&gt;

&lt;p&gt;Download and Install: Once compilation is complete, download your finalized .APK (for sideloading/testing) or .AAB (for Play Store publishing).&lt;/p&gt;

</description>
    </item>
    <item>
      <title>HTML to APK</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Wed, 10 Jun 2026 19:09:00 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/html-to-apk-25h2</link>
      <guid>https://dev.to/mominiqbal1234/html-to-apk-25h2</guid>
      <description>&lt;h1&gt;
  
  
  HTML to APK with LiteAI.me
&lt;/h1&gt;

&lt;p&gt;Convert your HTML web applications into Android APK or AAB files using &lt;strong&gt;LiteAI.me&lt;/strong&gt;. Generate your app with AI, preview it in the browser, and compile it into a mobile app without setting up Android Studio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Log in to LiteAI.me.&lt;/li&gt;
&lt;li&gt;Create a new project.&lt;/li&gt;
&lt;li&gt;Open the editor.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Ask LiteAI&lt;/strong&gt; to generate your HTML application.&lt;/li&gt;
&lt;li&gt;Preview and test your app.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Convert Android App&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Configure permissions and build settings.&lt;/li&gt;
&lt;li&gt;Download your APK or AAB file.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Use LiteAI.me?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;AI-powered app generation&lt;/li&gt;
&lt;li&gt;No coding required for basic projects&lt;/li&gt;
&lt;li&gt;Live preview environment&lt;/li&gt;
&lt;li&gt;Cloud-based Android builds&lt;/li&gt;
&lt;li&gt;APK and AAB export support&lt;/li&gt;
&lt;li&gt;Faster app development workflow&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;p&gt;🌐 &lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://liteai.me" rel="noopener noreferrer"&gt;https://liteai.me&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Build, preview, and convert your HTML applications into Android apps directly from the browser with &lt;strong&gt;LiteAI.me&lt;/strong&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Building a Zero-Friction Browser Screen Recorder (Just Press Alt + R)</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Wed, 27 May 2026 12:01:36 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/building-a-zero-friction-browser-screen-recorder-just-press-alt-r-1j9m</link>
      <guid>https://dev.to/mominiqbal1234/building-a-zero-friction-browser-screen-recorder-just-press-alt-r-1j9m</guid>
      <description>&lt;p&gt;Context switching is the enemy of deep work. If you are deep in a Python backend or architecting a database schema, and you suddenly need to document a bug or demo a feature, booting up a heavy desktop recording application completely breaks your flow.&lt;/p&gt;

&lt;p&gt;Traditional recording software demands administrative privileges, hogs system resources, and often requires complicated audio routing. We needed a better way to capture high-resolution visual feedback instantly.&lt;/p&gt;

&lt;p&gt;Here is why we moved away from bloated desktop apps and embraced a purely browser-based screen recording architecture, and why you should consider integrating this workflow into your daily development cycle.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Architecture of "Zero-Install"
&lt;/h3&gt;

&lt;p&gt;When architecting publishing platforms like sublite.app or building out web-based IDEs, the goal is always minimal friction. The same philosophy applies to utility tools.&lt;/p&gt;

&lt;p&gt;A browser-based recorder leverages standard web technologies—specifically the &lt;code&gt;MediaDevices.getDisplayMedia()&lt;/code&gt; and &lt;code&gt;MediaRecorder&lt;/code&gt; APIs. This eliminates the "Day 1" deployment issues of traditional software.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No background daemons&lt;/strong&gt; eating up RAM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No virtual audio cables&lt;/strong&gt; to install.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total OS Agnosticism:&lt;/strong&gt; Whether you are on a sleek ultrabook or a heavy-duty workstation, the interface remains minimal, professional, and entirely focused on the task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The data is processed securely and efficiently within the browser's sandbox, meaning you aren't waiting for a massive &lt;code&gt;.mp4&lt;/code&gt; payload to upload to a third-party server just to see your recording.&lt;/p&gt;

&lt;h3&gt;
  
  
  Solving the System Audio Nightmare
&lt;/h3&gt;

&lt;p&gt;If you have ever tried to explain a complex project workflow, you know that capturing system sound and microphone input simultaneously can be an absolute headache—especially on macOS. Historically, doing this natively required expensive third-party suites or incredibly rigid built-in tools.&lt;/p&gt;

&lt;p&gt;By relying on the browser's permission model, we bypassed the complicated settings menus. With a few clicks, you grant the browser permission, and it handles the heavy lifting of muxing the audio streams in the cloud or locally. Windows users get the same lightweight, crystal-clear audio mapping without needing a dedicated GPU or high-end processor to encode the stream.&lt;/p&gt;

&lt;h3&gt;
  
  
  The UX Magic: &lt;code&gt;Alt + R&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Efficiency is the core of any good developer tool. Clicking through multiple nested menus to start a simple screen capture is terrible UX.&lt;/p&gt;

&lt;p&gt;We mapped the core functionality to a global event listener: &lt;strong&gt;Alt + R&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Imagine you are reviewing a pull request or writing a practical coding guide. You realize a 30-second video explanation would be much clearer than a five-paragraph text comment. Instead of minimizing your windows, you just hit &lt;code&gt;Alt + R&lt;/code&gt;. The browser instantly prompts you to select your target (a specific Chrome/Edge tab, an application window, or the entire 4K display), and you are recording.&lt;/p&gt;

&lt;p&gt;It preserves your creative momentum.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why This Matters for Technical Education
&lt;/h3&gt;

&lt;p&gt;When authoring formal curriculum—like an Introduction to Programming textbook—or explaining concepts to students who use English as a third language, clear visual communication is mandatory. Analogies only go so far; sometimes you just need to show the code executing.&lt;/p&gt;

&lt;p&gt;This tool is designed to be universally accessible. The UI uses simple English, stripped of unnecessary jargon, so anyone from a senior engineer to a first-year computer science student can use it flawlessly.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A Note on Privacy:&lt;/strong&gt; Because the core engine operates within the browser's secure environment, the initial recording is processed locally. We prioritize a clean, secure experience where your data remains yours until you explicitly choose to share it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Stop Fighting Your Tools
&lt;/h3&gt;

&lt;p&gt;Whether you are capturing a quick logistics update for your distribution team or recording a comprehensive technical tutorial, your tools should get out of your way.&lt;/p&gt;

&lt;p&gt;The next time you need to document a workflow, skip the downloads. Just open your browser, press &lt;code&gt;Alt + R&lt;/code&gt;, and start talking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://sublite.app/app-details/screen-record-with-audio-on-macbook-by-liteai-me" rel="noopener noreferrer"&gt;Screen Record with Audio&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>The Best Free Subscription Manager &amp; POS for Small Business</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Sat, 03 Jan 2026 21:13:47 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/the-best-free-subscription-manager-pos-for-small-business-49c4</link>
      <guid>https://dev.to/mominiqbal1234/the-best-free-subscription-manager-pos-for-small-business-49c4</guid>
      <description>&lt;h1&gt;
  
  
  The Ultimate Guide to Payvo.me: Streamlining Subscription Management &amp;amp; POS
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Payvo.me&lt;/strong&gt; is a SaaS subscription management, Point of Sale (POS), and bookkeeping dashboard designed for small businesses and non-technical teams. It replaces spreadsheets and manual invoices with a centralized, automated system.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important Distinction:&lt;/strong&gt; Payvo.me is &lt;strong&gt;NOT&lt;/strong&gt; a bank, digital wallet, or payment processor. It is a ledger tool for &lt;em&gt;recording&lt;/em&gt; and &lt;em&gt;tracking&lt;/em&gt; payments received through external methods (Cash, Bank Transfers, External Wallets, etc.).&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🚀 Core Value Proposition
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Centralized Bookkeeping:&lt;/strong&gt; A single dashboard to log customer subscriptions, one-time sales, and recurring revenue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile-First POS:&lt;/strong&gt; Turns your device camera into a barcode scanner for inventory and checkout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Management:&lt;/strong&gt; Removes the manual busywork of billing cycles and tracking installments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local &amp;amp; Global:&lt;/strong&gt; Supports multiple currencies including &lt;strong&gt;PKR, INR, USD, SAR, AED, AUD, CAD,&lt;/strong&gt; and &lt;strong&gt;IRR&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠 Key Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Subscription &amp;amp; Payment Recording
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flexible Plans:&lt;/strong&gt; Track One-Time Payments, Monthly Recurring Subscriptions, and Installment Plans.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Invoicing:&lt;/strong&gt; Auto-generates bill status (Pending, Paid, Payouts).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Analytics:&lt;/strong&gt; Visualizes MRR (Monthly Recurring Revenue), Churn Rate, and Paid Invoice percentages.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Point of Sale (POS) &amp;amp; Inventory
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Latency Scanning:&lt;/strong&gt; Uses device camera for fast barcode/QR code recognition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Inventory:&lt;/strong&gt; "Scan to Add" checks for duplicates and updates stock levels instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cart Management:&lt;/strong&gt; Auto-updates quantities during checkout scanning.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Receipts &amp;amp; Notifications
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WhatsApp Integration:&lt;/strong&gt; Generates text receipts to share manually or automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thermal Printing:&lt;/strong&gt; Formats data for standard 58mm and 80mm thermal printers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customer Portal:&lt;/strong&gt; A read-only view for customers to check history and download receipts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Alerts:&lt;/strong&gt; Notifications for payment confirmations and pending dues.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Financial Tracking (Fast Revenue)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cash Ledger:&lt;/strong&gt; Track Opening/Closing cash drawer balances to reconcile physical cash.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Net Profit:&lt;/strong&gt; Automatic calculation of daily net change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart History:&lt;/strong&gt; Searchable logs of all revenue recorded via Cash, Cheque, or Transfer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. HR &amp;amp; Payroll
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Employee Management:&lt;/strong&gt; Database for staff details and roles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Salary Recording:&lt;/strong&gt; Log monthly payouts, including Basic Salary, Allowances, and Deductions.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💰 Pricing Models
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;th&gt;Inclusions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Free&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0 / mo&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Testing &amp;amp; Side Projects&lt;/td&gt;
&lt;td&gt;2 Customers, Portal, Analytics, POS, Inventory, Payroll.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pro&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$10 / mo&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Scaling Businesses&lt;/td&gt;
&lt;td&gt;Up to 100 Customers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Business&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Custom&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;Unlimited Customers, Custom Domain, Custom Landing Page.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  📚 Why Automate? (Educational Resources)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Problem with Spreadsheets
&lt;/h3&gt;

&lt;p&gt;Manual billing and Excel sheets often lead to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Silent Mistakes:&lt;/strong&gt; Formula errors can alter financial totals unnoticed.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Messy Data:&lt;/strong&gt; Difficulty tracking active vs. cancelled accounts.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;No Visibility:&lt;/strong&gt; Lack of clear metrics for MRR or Churn.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Scaling Issues:&lt;/strong&gt; More customers = more admin work.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  How Payvo.me Solves It
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Map Your Offers:&lt;/strong&gt; Define monthly retainers, memberships, or installments once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Migrate Profiles:&lt;/strong&gt; Move from "spreadsheet rows" to dynamic Customer Profiles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automate Status:&lt;/strong&gt; Payment status updates instantly; no more manual "Paid/Unpaid" toggling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-Time Dashboards:&lt;/strong&gt; Replace custom formulas with built-in graphs for Revenue and Retention.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Decision Framework
&lt;/h3&gt;

&lt;p&gt;When choosing software, Payvo.me advises small businesses to check:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Payment Support:&lt;/strong&gt; Does it handle your specific mix of one-time vs. recurring?&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Complexity:&lt;/strong&gt; Can non-technical team members use it?&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Visibility:&lt;/strong&gt; Do you get immediate insight into revenue?&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🏁 Workflow: How to Start
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Setup:&lt;/strong&gt; Create an account at &lt;a href="https://payvo.me/" rel="noopener noreferrer"&gt;Payvo.me&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Onboarding:&lt;/strong&gt; Input customer data and define billing plans.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Operations:&lt;/strong&gt; Use the POS to scan items or manually log external payments.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Tracking:&lt;/strong&gt; View reports on revenue, reconcile cash drawers, and manage payroll.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>saas</category>
      <category>smallbusiness</category>
      <category>fintech</category>
      <category>businessautomation</category>
    </item>
    <item>
      <title>HadiDB: A Lightweight, Horizontally Scalable Database in Python</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Tue, 24 Dec 2024 17:07:32 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/hadidb-a-lightweight-horizontally-scalable-database-in-python-24gc</link>
      <guid>https://dev.to/mominiqbal1234/hadidb-a-lightweight-horizontally-scalable-database-in-python-24gc</guid>
      <description>&lt;p&gt;&lt;a href="https://pepy.tech/project/hadidb" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fstatic.pepy.tech%2Fbadge%2Fhadidb" alt="Downloads" width="92" height="20"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  HadiDB
&lt;/h1&gt;

&lt;p&gt;HadiDB is a lightweight, highly horizontally scalable database written in Python.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to install hadidb
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;pip&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;hadidb&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create User HadiDB
&lt;/h2&gt;

&lt;p&gt;Creates a new user with the &lt;code&gt;example&lt;/code&gt; username  &lt;code&gt;admin&lt;/code&gt; and &lt;code&gt;example&lt;/code&gt; password &lt;code&gt;admin&lt;/code&gt; using &lt;code&gt;createUser()&lt;/code&gt;. It then authenticates the same user by calling the &lt;code&gt;authentication()&lt;/code&gt; method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;User&lt;/span&gt;
&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createUser&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;# Creating a new user in the HadiDB
&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;authentication&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;# Authenticating the HadiDB user
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Result:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{'status': 200, 'message': 'Database user Created'}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create Databse , Collection and Schema
&lt;/h2&gt;

&lt;p&gt;This code sets up user credentials and a schema for a database collection. It initializes a database operation using the &lt;code&gt;Operation&lt;/code&gt; class with the specified &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;password&lt;/code&gt;, &lt;code&gt;database&lt;/code&gt;, and &lt;code&gt;collection&lt;/code&gt;. Finally, it inserts the provided &lt;code&gt;data&lt;/code&gt; into the collection and stores the result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Operation&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mefiz.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;authUser&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="n"&gt;schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unique&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;password&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hash&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cnic&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unique&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;picture&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Image&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Text&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Operation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_database&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Insert Data
&lt;/h2&gt;

&lt;p&gt;Insert Data into the Collection use &lt;code&gt;db.insert(data)&lt;/code&gt; inserts the &lt;code&gt;data&lt;/code&gt; into the specified database collection.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Operation&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mefiz.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;authUser&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;


&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Operation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;hadidb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;password&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;12345&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cnic&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;123232442&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;picture&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user/my/hadidb.jpg&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HadiDB is the Best ;)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Result:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
'status': 200, 
'message': 'Data insert successfully',
'data': {
    'username': 'hadidb', 
    'password': '12345', 
    'cnic': '123232442', 
    'picture': 'user/my/hadidb.jpg', 
    'bio': 'HadiDB is the Best ;)',
     'id': 1
     }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Update Data
&lt;/h2&gt;

&lt;p&gt;Update Data &lt;code&gt;db.update(1, update_data)&lt;/code&gt; updates the record with the ID &lt;code&gt;1&lt;/code&gt; in the database using the provided &lt;code&gt;update_data&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Operation&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mefiz.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;authUser&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;


&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Operation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="n"&gt;update_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;     
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;hadidb_update&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;password&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;123455&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cnic&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1232324423&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;picture&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user/my/hadidb1.jpg&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HadiDB is the Best ;) update bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; 
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;update_data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Result:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    'status': 200, 
    'message': 'Data Update successfully',
    'data': {
    'username': 'hadidb_update', 
    'password': '123455', 
    'cnic': '1232324423', 
    'picture': 'user/my/hadidb1.jpg', 
    'bio': 'HadiDB is the Best ;) update bio', 
    'id': 1
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  GetByID
&lt;/h2&gt;

&lt;p&gt;The unique identifier (ID) of the document you want to retrieve specific object or an error if the document does not exist.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getbyID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get All Object
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;getAll&lt;/code&gt; method retrieves all documents from the specified collection in the database.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAll&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  GetByKey
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;getbykey&lt;/code&gt; method retrieves all documents from the database where the specified key-value pair matches. &lt;code&gt;Not Support multi keys values pairs&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getbykey&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;momin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
 &lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  GetByKeys
&lt;/h2&gt;

&lt;p&gt;The getbykeys function uses an implicit &lt;code&gt;AND (&amp;amp;&amp;amp;)&lt;/code&gt;operation. Both conditions &lt;code&gt;Example (cnic and bio)&lt;/code&gt; if matched key values in the database then return the matched object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getbykeys&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cnic&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;123232442&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HadiDB is the Best ;) update bio&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Count
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;count&lt;/code&gt; method returns the total number of documents (or objects) present in the specified collection in the database.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Result:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{'status': 200, 'count': 1}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  GeyByKeyCount
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;getbykeyCount&lt;/code&gt; method counts the number of documents in the collection where the specified key-value pair matches.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getbykeyCount&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;momin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Delete
&lt;/h2&gt;

&lt;p&gt;Deletes a document from the database by its unique identifier (&lt;code&gt;id&lt;/code&gt;)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Reuslt:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{'status': 200, 'message': 'data delete successful'}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get All Database
&lt;/h2&gt;

&lt;p&gt;Retrieves all available databases by using the &lt;code&gt;get_database()&lt;/code&gt; method of the &lt;code&gt;Configuration&lt;/code&gt; class&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Configuration&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Configuration&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;get_database&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get All Collection
&lt;/h2&gt;

&lt;p&gt;Retrieves all collections from a specific database using the &lt;code&gt;get_collection()&lt;/code&gt; method of the &lt;code&gt;Configuration&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Configuration&lt;/span&gt;

&lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mefiz.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Configuration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;get_collection&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get Schema of Specfic Collection
&lt;/h2&gt;

&lt;p&gt;Return Schema of a specific collection by using &lt;code&gt;get_schema()&lt;/code&gt;method from the &lt;code&gt;Configuration&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Configuration&lt;/span&gt;
&lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mefiz.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;authUser&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Configuration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;get_schema&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Delete Collection
&lt;/h2&gt;

&lt;p&gt;Deletes a specific collection from a database using the &lt;code&gt;deleteCollection()&lt;/code&gt; method of the &lt;code&gt;DatabaseDeletionService&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;DatabaseDeletionService&lt;/span&gt;

&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DatabaseDeletionService&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deleteCollection&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Delete Database
&lt;/h2&gt;

&lt;p&gt;Deletes Database using the &lt;code&gt;deleteDatabase()&lt;/code&gt; method of the &lt;code&gt;DatabaseDeletionService&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;HadiDB.operation&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;DatabaseDeletionService&lt;/span&gt;

&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DatabaseDeletionService&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deleteDatabase&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  GitHub : &lt;a href="https://github.com/MominIqbal-1234/hadidb" rel="noopener noreferrer"&gt;https://github.com/MominIqbal-1234/hadidb&lt;/a&gt;
&lt;/h5&gt;

&lt;h5&gt;
  
  
  Check Site : &lt;a href="https://mefiz.com" rel="noopener noreferrer"&gt;https://mefiz.com&lt;/a&gt;
&lt;/h5&gt;

&lt;h5&gt;
  
  
  Developed by : Momin Iqbal
&lt;/h5&gt;

</description>
      <category>database</category>
      <category>mongodb</category>
      <category>hadidb</category>
      <category>mysql</category>
    </item>
    <item>
      <title>gemini-chat-python</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Sat, 13 Apr 2024 20:37:42 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/gemini-chat-python-2cn0</link>
      <guid>https://dev.to/mominiqbal1234/gemini-chat-python-2cn0</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7sl5gwneu9upahtnstd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7sl5gwneu9upahtnstd.png" alt=" " width="500" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GeminiAI-Chat – the revolutionary Python library designed to power up your applications with advanced conversational AI capabilities GeminiAI-Chat, developers can effortlessly integrate AI-driven chat functionalities into their projects&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to install geminiai-chat-python&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install geminiai-chat-python --upgrade
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Documentation&lt;/strong&gt;&lt;br&gt;
GeminiAI-Chat offers a seamless way to incorporate intelligent, responsive AI chat features&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from GeminiAIChat.core import API


res = API("your_api_key") # https://aistudio.google.com/app/apikey
res.prompt("what is python")
print(res.response())

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Get API KEY&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://aistudio.google.com/app/apikey" rel="noopener noreferrer"&gt;https://aistudio.google.com/app/apikey&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Issues&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/MominIqbal-1234/geminiai-chat-python/issues" rel="noopener noreferrer"&gt;https://github.com/MominIqbal-1234/geminiai-chat-python/issues&lt;/a&gt;&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>python</category>
      <category>django</category>
      <category>flask</category>
    </item>
    <item>
      <title>Spin-Python-SDK Templete</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Sat, 13 Apr 2024 20:31:41 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/spin-python-sdk-templete-1c62</link>
      <guid>https://dev.to/mominiqbal1234/spin-python-sdk-templete-1c62</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Spin&lt;/strong&gt;&lt;br&gt;
Spin is a framework for building and running event-driven microservice applications with WebAssembly (Wasm) components.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spin Templete&lt;/strong&gt;&lt;br&gt;
spin templete is the layer of Spin-python-sdk for render html&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to install spin_templete&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install spin_templete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir templete
cd templete
touch index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;index.html&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Document&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Hello World Again Momin&amp;lt;/h1&amp;gt;

    &amp;lt;ul&amp;gt;
        {% for item in items %}
            &amp;lt;li&amp;gt;{{ item }}&amp;lt;/li&amp;gt;
        {% endfor %}
        &amp;lt;/ul&amp;gt;   
    &amp;lt;ul&amp;gt;
        {% for item in mylist %}
            &amp;lt;li&amp;gt;{{ item }}&amp;lt;/li&amp;gt;
        {% endfor %}
        &amp;lt;/ul&amp;gt;   



&amp;lt;h1&amp;gt;{{name}}&amp;lt;/h1&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;app.py&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from spin_sdk.http import IncomingHandler, Request, Response
from spintemplete.templete import Render


html = Render("templete")

class IncomingHandler(IncomingHandler):
    def handle_request(self, request: Request) -&amp;gt; Response:
        return html.render("index.html",items=[1,2,3,4,5],mylist=["hello","world"],name="momin")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;spin.toml&lt;/strong&gt;&lt;br&gt;
Add more html files your requirements&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
[component.myapp]
source = "app.wasm"
files = ["templete/index.html"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repository : &lt;a href="https://github.com/MominIqbal-1234/spin_templete" rel="noopener noreferrer"&gt;https://github.com/MominIqbal-1234/spin_templete&lt;/a&gt;&lt;br&gt;
Developed by : Momin Iqbal&lt;br&gt;
site : &lt;a href="https://image.mefiz.com" rel="noopener noreferrer"&gt;https://image.mefiz.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webassembly</category>
      <category>spin</category>
      <category>spintemplete</category>
    </item>
    <item>
      <title>Python web Developers</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Sat, 27 May 2023 21:19:50 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/python-web-developers-54di</link>
      <guid>https://dev.to/mominiqbal1234/python-web-developers-54di</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;code&gt;WebRaft&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;webraft to save development time and effort &lt;br&gt;&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/MominIqbal-1234" rel="noopener noreferrer"&gt;
        MominIqbal-1234
      &lt;/a&gt; / &lt;a href="https://github.com/MominIqbal-1234/webraft" rel="noopener noreferrer"&gt;
        webraft
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      webraft for python web developers
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Downloads webraft&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://pepy.tech/project/webraft" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/361a4866f15b848bf2bb5bf75b1a219f2a303cd53378aa349adc4c8f621edfe0/68747470733a2f2f7374617469632e706570792e746563682f62616467652f77656272616674" alt="Downloads"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;WebRaft&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;creating and reading JSON Web Tokens, extracting user agent
information, retrieving IP data, and creating and reading API keys&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;install webraft&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;link: &lt;a href="https://pypi.org/project/webraft/" rel="nofollow noopener noreferrer"&gt;https://pypi.org/project/webraft/&lt;/a&gt;&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;pip&lt;/span&gt; &lt;span class="pl-s1"&gt;install&lt;/span&gt; &lt;span class="pl-s1"&gt;webraft&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;upgrade&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Support&lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;WebRaft Support Four Python web-framework&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;1) Django # django
2) Flask  # flask
3) FastAPI # fastapi
4) Bottle  # bottle
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Django Rest-API&lt;/h1&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Create Secret Key&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;from&lt;/span&gt; &lt;span class="pl-s1"&gt;webraft&lt;/span&gt;.&lt;span class="pl-s1"&gt;core&lt;/span&gt; &lt;span class="pl-k"&gt;import&lt;/span&gt; &lt;span class="pl-v"&gt;GenerateKey&lt;/span&gt;
&lt;span class="pl-en"&gt;print&lt;/span&gt;(&lt;span class="pl-v"&gt;GenerateKey&lt;/span&gt;.&lt;span class="pl-c1"&gt;generate_key&lt;/span&gt;())&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Support Algorithm&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;HS256
HS512
HS384
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;request&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;request is an object that represents an incoming HTTP request &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; webraft take every function request object &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt;
this doc show use to request in different python web framework&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c"&gt;# Django&lt;/span&gt;
&lt;span class="pl-k"&gt;def&lt;/span&gt; &lt;span class="pl-en"&gt;home&lt;/span&gt;(&lt;span class="pl-s1"&gt;request&lt;/span&gt;)
  &lt;span class="pl-k"&gt;pass&lt;/span&gt;

&lt;span class="pl-c"&gt;# FastAPI&lt;/span&gt;
&lt;span class="pl-k"&gt;from&lt;/span&gt; &lt;span class="pl-s1"&gt;fastapi&lt;/span&gt; &lt;span class="pl-k"&gt;import&lt;/span&gt; &lt;span class="pl-v"&gt;FastAPI&lt;/span&gt;, &lt;span class="pl-v"&gt;Request&lt;/span&gt;

&lt;span class="pl-s1"&gt;app&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-en"&gt;FastAPI&lt;/span&gt;()

&lt;span class="pl-en"&gt;@&lt;span class="pl-s1"&gt;app&lt;/span&gt;.&lt;span class="pl-c1"&gt;get&lt;/span&gt;(&lt;span class="pl-s"&gt;"/"&lt;/span&gt;)&lt;/span&gt;
&lt;span class="pl-k"&gt;async&lt;/span&gt; &lt;span class="pl-k"&gt;def&lt;/span&gt; &lt;span class="pl-en"&gt;read_user&lt;/span&gt;(&lt;span class="pl-s1"&gt;request&lt;/span&gt;: &lt;span class="pl-smi"&gt;Request&lt;/span&gt;):
  &lt;span class="pl-k"&gt;pass&lt;/span&gt;

&lt;span class="pl-c"&gt;# Flask&lt;/span&gt;
&lt;span class="pl-k"&gt;from&lt;/span&gt; &lt;span class="pl-s1"&gt;flask&lt;/span&gt; &lt;span class="pl-k"&gt;import&lt;/span&gt; &lt;span class="pl-v"&gt;Flask&lt;/span&gt;, &lt;span class="pl-s1"&gt;request&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/MominIqbal-1234/webraft" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>python</category>
      <category>webdev</category>
      <category>django</category>
      <category>flask</category>
    </item>
    <item>
      <title>Programmer in 10 years old #mefiz.com</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Wed, 22 Mar 2023 06:34:01 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/programmer-in-10-years-oldmefizcom-3oob</link>
      <guid>https://dev.to/mominiqbal1234/programmer-in-10-years-oldmefizcom-3oob</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpvtwrbbt4dw1exche0iv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpvtwrbbt4dw1exche0iv.jpg" alt=" " width="800" height="911"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>mems</category>
      <category>coding</category>
    </item>
    <item>
      <title>Django All Configuration in single Command</title>
      <dc:creator>Momin Iqbal</dc:creator>
      <pubDate>Mon, 27 Feb 2023 17:50:25 +0000</pubDate>
      <link>https://dev.to/mominiqbal1234/django-all-configuration-in-single-command-ngm</link>
      <guid>https://dev.to/mominiqbal1234/django-all-configuration-in-single-command-ngm</guid>
      <description>&lt;p&gt;&lt;strong&gt;quick-django&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Create django project quickly single command&lt;/strong&gt;&lt;br&gt;
1) djnago app&lt;br&gt;
2) urls.py&lt;br&gt;
3) templates folder&lt;br&gt;
4) static folder&lt;br&gt;
5) and add the default code in view.py&lt;br&gt;
6) models.py&lt;br&gt;
7) admin.py&lt;br&gt;
8) index.html&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;pip install quick-django&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Open cmd and type&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;python -m quick-django myproject myproject_app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Github&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/MominIqbal-1234" rel="noopener noreferrer"&gt;
        MominIqbal-1234
      &lt;/a&gt; / &lt;a href="https://github.com/MominIqbal-1234/quick-django" rel="noopener noreferrer"&gt;
        quick-django
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      quick-django save your time and increase your development speed in django project
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Downloads quick-django&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://pepy.tech/project/quick-django" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/afd2d98dd4c4e6012408c6fe3db72ead85594058daeda128a19e56881af17aca/68747470733a2f2f7374617469632e706570792e746563682f62616467652f717569636b2d646a616e676f" alt="Downloads"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;quick-django&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Create django project quickly single command with all necessary file like djnago app, urls.py, templates folder, static folder and add the default code in view.py,models.py,admin.py and create index.html&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;How to use quick-django&lt;/h1&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Step: 1&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;pip&lt;/span&gt; &lt;span class="pl-s1"&gt;install&lt;/span&gt; &lt;span class="pl-s1"&gt;quick&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;django&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Step: 2&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Window&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;open cmd in your porject folder and run this command&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;python&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;m&lt;/span&gt; &lt;span class="pl-s1"&gt;quick&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;django&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject_app&lt;/span&gt; &lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Linux&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;open terminal in your porject folder and run this command&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;python3&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;m&lt;/span&gt; &lt;span class="pl-s1"&gt;quick&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;django&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject_app&lt;/span&gt; &lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Configuration&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c"&gt;# setting.py&lt;/span&gt;
 &lt;span class="pl-c1"&gt;INSTALLED_APPS&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; [
            ....
       &lt;span class="pl-s"&gt;'myproject_app'&lt;/span&gt;,
       
        ]&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;For Rest-Api&lt;/h1&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Window&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;open cmd in your porject folder and run this command&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;python&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;m&lt;/span&gt; &lt;span class="pl-s1"&gt;quick&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;django&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject_app&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;restapi&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Linux&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;open terminal in your porject folder and run this command&lt;/p&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-s1"&gt;python3&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;m&lt;/span&gt; &lt;span class="pl-s1"&gt;quick&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;django&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject&lt;/span&gt; &lt;span class="pl-s1"&gt;myproject_app&lt;/span&gt; &lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-c1"&gt;-&lt;/span&gt;&lt;span class="pl-s1"&gt;restapi&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Configuration&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-python notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c"&gt;# setting.py&lt;/span&gt;
 &lt;span class="pl-c1"&gt;INSTALLED_APPS&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; [
            ....
       &lt;span class="pl-s"&gt;'myproject_app'&lt;/span&gt;,
       &lt;span class="pl-s"&gt;'rest_framework'&lt;/span&gt;
       
        ]&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Check…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/MominIqbal-1234/quick-django" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>django</category>
      <category>python</category>
      <category>mefiz</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
