{"id":30838668,"url":"https://github.com/0pkunal/dynamic-introduction-with-python","last_synced_at":"2025-09-06T18:11:05.911Z","repository":{"id":312736962,"uuid":"1048547733","full_name":"0PKunal/Dynamic-Introduction-with-Python","owner":"0PKunal","description":"This project includes two Python scripts that generate a typing animation effect in the console.","archived":false,"fork":false,"pushed_at":"2025-09-01T16:49:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T18:29:21.830Z","etag":null,"topics":["python","python-3","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0PKunal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T16:06:00.000Z","updated_at":"2025-09-01T16:50:08.000Z","dependencies_parsed_at":"2025-09-01T18:29:33.226Z","dependency_job_id":"23ff9952-348a-490d-b696-3d4738b19761","html_url":"https://github.com/0PKunal/Dynamic-Introduction-with-Python","commit_stats":null,"previous_names":["0pkunal/dynamic-introduction-with-python"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0PKunal/Dynamic-Introduction-with-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0PKunal%2FDynamic-Introduction-with-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0PKunal%2FDynamic-Introduction-with-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0PKunal%2FDynamic-Introduction-with-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0PKunal%2FDynamic-Introduction-with-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0PKunal","download_url":"https://codeload.github.com/0PKunal/Dynamic-Introduction-with-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0PKunal%2FDynamic-Introduction-with-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273941526,"owners_count":25195104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-3","python3"],"created_at":"2025-09-06T18:05:18.497Z","updated_at":"2025-09-06T18:11:05.896Z","avatar_url":"https://github.com/0PKunal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic Introduction With Python\n* This project includes two Python scripts that generate a **typing animation effect** in the console. By cycling through printable ASCII characters until each correct one is found, the text is revealed step by step. The result is a dynamic output that mimics real-time typing, making simple messages appear more engaging and interactive.\n---\n## Features\n- **Typing animation effect**: Gradually reveals any given string, simulating real-time typing.  \n- **Two script versions**:  \n  - **`dynamic_introduction.py`** → Uses `sys.stdout.write()` to update text dynamically on the same line, creating a smooth flowing effect.  \n  - **`dynamic_introduction_1.py`** → Uses `print()` to show progress line by line, giving a step-by-step display of the text being typed.  \n---\n## Files Included\n1. **`dynamic_introduction.py`**  \n   - Uses `sys.stdout.write()` and `sys.stdout.flush()` to update text on the same line dynamically.  \n   - Provides a smooth **typing animation effect** in the console.  \n   - Example output effect:  \n     ```\n     N\n     Ni\n     Nic\n     Nice\n     Nice ...\n     ```\n\n2. **`dynamic_introduction_1.py`**  \n   - A simpler version that uses `print()` instead of `sys.stdout.write()`.  \n   - Text is displayed **line by line**, showing the progression of the animation.  \n   - Example output effect:  \n     ```\n     N\n     Ni\n     Nic\n     Nice\n     Nice ...\n     ```\n---\n##  How It Works\n1. The script defines the target text:\n   ```python\n   text = \"Nice to meet you, I'm Kunal\"\n\n2. It initializes an empty string (`temp`) to build the output progressively.\n\n3. For each character in `text`:\n\n   * The script loops through **all printable characters** (`string.printable`).\n   * If the current character matches:\n\n     * The character is added to `temp`.\n     * A short delay (`time.sleep(0.05)`) simulates typing.\n   * Otherwise, the loop continues with a smaller delay (`time.sleep(0.001)`) to maintain the illusion of searching for the correct character.\n\n4. Adjustable speed using `time.sleep()` delays.\n\n5. Demonstrates the use of `string.printable` for character iteration.\n---\n## Running the Scripts\n\n1. Clone the repository:\n\n   ```bash\n   git clone  https://github.com/0PKunal/Dynamic-Introduction-with-Python.git\n   ```\n2. Navigate into the folder:\n\n   ```bash\n   cd Dynamic-Introduction-with-Python\n   ```\n3. Run the script:\n\n    ```bash\n    python dynamic_introduction.py\n    ```\n\n    or\n\n    ```bash\n    python dynamic_introduction_1.py\n    ```\n---\n## Key Differences\n\n| Feature                   | `dynamic_introduction.py`  | `dynamic_introduction_1.py` |\n| ------------------------- | -------------------------- | --------------------------- |\n| Output Style              | Updates in place (dynamic) | Prints line by line         |\n| Uses `sys.stdout.write()` | ✅                         | ❌                         |\n| Animation Smoothness      | More fluid                 | More step-by-step           |\n---\n## Possible Improvements\n\n* Add **colorful text effects** using the `colorama` or `rich` library.\n* Allow the user to **input custom text** instead of hardcoding.\n* Control speed with **command-line arguments** for flexible animation timing.\n* Export the animation to a file or GUI for more interactive effects.\n---\n##  License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n```\nMIT License\n\nCopyright (c) 2025 0PKunal\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n```\n---\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eMade with ❤️ by \u003ca href=\"https://github.com/0PKunal\"\u003e0PKunal\u003c/a\u003e\u003c/p\u003e\n  \u003cp\u003eIf this project helped you, please give it a ⭐️\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0pkunal%2Fdynamic-introduction-with-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0pkunal%2Fdynamic-introduction-with-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0pkunal%2Fdynamic-introduction-with-python/lists"}