auto-update-founder


Nameauto-update-founder JSON
Version 2.8.12 PyPI version JSON
download
home_pagehttps://github.com/Pytholearn/auto_update_founder
SummaryA Python package for automatic updating tools.
upload_time2024-08-03 10:08:46
maintainerNone
docs_urlNone
authorPytholearn-HAZARD(ilia alizade)
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # auto_update_founder
PYPI PROJECT
A Python package to automatically find software updates of your repositories in GitHub

[![Discord](https://img.shields.io/badge/Discord-%237289DA.svg?logo=discord&logoColor=white)](https://discord.gg/qD8SXrRJbw) [![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?logo=Instagram&logoColor=white)](https://instagram.com/ili.hazard) [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?logo=YouTube&logoColor=white)](https://youtube.com/@iiihazard) 

[![Updated Badge](https://badges.pufler.dev/updated/Pytholearn/found_update)](https://github.com/Pytholearn/found_update)
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)



how does it work:

Step 1:
Go to your desired repository and create a file named version (don't give it a .txt extension)
And write your code in that version.

<picture>
  <img alt="write your code in that version." src="https://cdn.discordapp.com/attachments/1268584313763401749/1268585830574719046/6jR45QP.png?ex=66acf61f&is=66aba49f&hm=15be35caa7a1b2af851cafc61f7e4423170b14bcc005139293cbe96ae9dcdbf8&">
</picture>

Step 2:
Right click on the raw option and copy the link

<picture>
  <img alt="Right click on the raw option and copy the link" src="https://cdn.discordapp.com/attachments/1268584313763401749/1268587064237228062/EvHRGqn.png?ex=66acf745&is=66aba5c5&hm=0c9e77f0c0eb9060fc2ad7fb98941b6ff2fe4cf16220c6cdfe4d591fc21b91bc&">
</picture>



Usage example:
```py
import auto_update_founder #import pack
import os
import git
import shutil
import time

cwd = os.getcwd()
print(cwd)

auto_update_founder.set_url("https://raw.githubusercontent.com/Pytholearn/HAZARD-CHAMELEONS/main/version") # Raw Code
download_link = "https://github.com/Pytholearn/HAZARD-CHAMELEONS.git" #Git Download Link
auto_update_founder.set_current_version("1.1.2")

if not auto_update_founder.is_up_to_date():
    print("New UPDATE!")

    print("Would you like to update your tool?")
    choice = input("If you like(Y) or you dont want to update (N)[>>>] ")
    if choice == "Y" or choice == "y":
    
        
        local_repo_path = os.path.join(cwd, "temp_repo")
        if not os.path.exists(local_repo_path):
            os.makedirs(local_repo_path)
        git.Repo.clone_from(download_link, local_repo_path)
        
        
        for root, dirs, files in os.walk(local_repo_path):
            relative_path = os.path.relpath(root, local_repo_path)
            for file in files:
                source_file_path = os.path.join(root, file)
                dest_file_path = os.path.join(cwd, relative_path, file)
                if os.path.exists(dest_file_path):
                    os.remove(dest_file_path)  
                shutil.move(source_file_path, dest_file_path)  
            for dir in dirs:
                source_dir_path = os.path.join(root, dir)
                dest_dir_path = os.path.join(cwd, relative_path, dir)
                if not os.path.exists(dest_dir_path):
                    shutil.move(source_dir_path, dest_dir_path) 
        
        
        shutil.rmtree(local_repo_path)
        print("Update Complete!")
        time.sleep(2)
    elif choice == "n" or choice == "N":
        pass
else:
    print("Update Not Found!")
    time.sleep(2)

```

## FAQ

#### For Help: https://discord.gg/qD8SXrRJbw









            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Pytholearn/auto_update_founder",
    "name": "auto-update-founder",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Pytholearn-HAZARD(ilia alizade)",
    "author_email": "police123456789ilia@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9a/66/3b20587eb832e7e4a64fa81f9a18445101ba96f91afdfa01247d4c957711/auto_update_founder-2.8.12.tar.gz",
    "platform": null,
    "description": "# auto_update_founder\r\nPYPI PROJECT\r\nA Python package to automatically find software updates of your repositories in GitHub\r\n\r\n[![Discord](https://img.shields.io/badge/Discord-%237289DA.svg?logo=discord&logoColor=white)](https://discord.gg/qD8SXrRJbw) [![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?logo=Instagram&logoColor=white)](https://instagram.com/ili.hazard) [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?logo=YouTube&logoColor=white)](https://youtube.com/@iiihazard) \r\n\r\n[![Updated Badge](https://badges.pufler.dev/updated/Pytholearn/found_update)](https://github.com/Pytholearn/found_update)\r\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)\r\n\r\n\r\n\r\nhow does it work:\r\n\r\nStep 1:\r\nGo to your desired repository and create a file named version (don't give it a .txt extension)\r\nAnd write your code in that version.\r\n\r\n<picture>\r\n  <img alt=\"write your code in that version.\" src=\"https://cdn.discordapp.com/attachments/1268584313763401749/1268585830574719046/6jR45QP.png?ex=66acf61f&is=66aba49f&hm=15be35caa7a1b2af851cafc61f7e4423170b14bcc005139293cbe96ae9dcdbf8&\">\r\n</picture>\r\n\r\nStep 2:\r\nRight click on the raw option and copy the link\r\n\r\n<picture>\r\n  <img alt=\"Right click on the raw option and copy the link\" src=\"https://cdn.discordapp.com/attachments/1268584313763401749/1268587064237228062/EvHRGqn.png?ex=66acf745&is=66aba5c5&hm=0c9e77f0c0eb9060fc2ad7fb98941b6ff2fe4cf16220c6cdfe4d591fc21b91bc&\">\r\n</picture>\r\n\r\n\r\n\r\nUsage example:\r\n```py\r\nimport auto_update_founder #import pack\r\nimport os\r\nimport git\r\nimport shutil\r\nimport time\r\n\r\ncwd = os.getcwd()\r\nprint(cwd)\r\n\r\nauto_update_founder.set_url(\"https://raw.githubusercontent.com/Pytholearn/HAZARD-CHAMELEONS/main/version\") # Raw Code\r\ndownload_link = \"https://github.com/Pytholearn/HAZARD-CHAMELEONS.git\" #Git Download Link\r\nauto_update_founder.set_current_version(\"1.1.2\")\r\n\r\nif not auto_update_founder.is_up_to_date():\r\n    print(\"New UPDATE!\")\r\n\r\n    print(\"Would you like to update your tool?\")\r\n    choice = input(\"If you like(Y) or you dont want to update (N)[>>>] \")\r\n    if choice == \"Y\" or choice == \"y\":\r\n    \r\n        \r\n        local_repo_path = os.path.join(cwd, \"temp_repo\")\r\n        if not os.path.exists(local_repo_path):\r\n            os.makedirs(local_repo_path)\r\n        git.Repo.clone_from(download_link, local_repo_path)\r\n        \r\n        \r\n        for root, dirs, files in os.walk(local_repo_path):\r\n            relative_path = os.path.relpath(root, local_repo_path)\r\n            for file in files:\r\n                source_file_path = os.path.join(root, file)\r\n                dest_file_path = os.path.join(cwd, relative_path, file)\r\n                if os.path.exists(dest_file_path):\r\n                    os.remove(dest_file_path)  \r\n                shutil.move(source_file_path, dest_file_path)  \r\n            for dir in dirs:\r\n                source_dir_path = os.path.join(root, dir)\r\n                dest_dir_path = os.path.join(cwd, relative_path, dir)\r\n                if not os.path.exists(dest_dir_path):\r\n                    shutil.move(source_dir_path, dest_dir_path) \r\n        \r\n        \r\n        shutil.rmtree(local_repo_path)\r\n        print(\"Update Complete!\")\r\n        time.sleep(2)\r\n    elif choice == \"n\" or choice == \"N\":\r\n        pass\r\nelse:\r\n    print(\"Update Not Found!\")\r\n    time.sleep(2)\r\n\r\n```\r\n\r\n## FAQ\r\n\r\n#### For Help: https://discord.gg/qD8SXrRJbw\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for automatic updating tools.",
    "version": "2.8.12",
    "project_urls": {
        "Homepage": "https://github.com/Pytholearn/auto_update_founder"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d8c3c7d62a2fdc3ec86bd758db3550957de511f5ee96d9377581aa981ec06ce0",
                "md5": "1860956492ddf84223deca52ce33f7ec",
                "sha256": "18b25a7f1778222188e2abfdf3441025167041c4dd93be82b3db4dfcf75bffb5"
            },
            "downloads": -1,
            "filename": "auto_update_founder-2.8.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1860956492ddf84223deca52ce33f7ec",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2636,
            "upload_time": "2024-08-03T10:08:45",
            "upload_time_iso_8601": "2024-08-03T10:08:45.157398Z",
            "url": "https://files.pythonhosted.org/packages/d8/c3/c7d62a2fdc3ec86bd758db3550957de511f5ee96d9377581aa981ec06ce0/auto_update_founder-2.8.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a663b20587eb832e7e4a64fa81f9a18445101ba96f91afdfa01247d4c957711",
                "md5": "0f0363ca677fa3fe3c8e057d3a78799e",
                "sha256": "1e58a105e987c64363e3467c08c7e607eb12d7eeecfa85570ff706039d5f99c8"
            },
            "downloads": -1,
            "filename": "auto_update_founder-2.8.12.tar.gz",
            "has_sig": false,
            "md5_digest": "0f0363ca677fa3fe3c8e057d3a78799e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2825,
            "upload_time": "2024-08-03T10:08:46",
            "upload_time_iso_8601": "2024-08-03T10:08:46.979412Z",
            "url": "https://files.pythonhosted.org/packages/9a/66/3b20587eb832e7e4a64fa81f9a18445101ba96f91afdfa01247d4c957711/auto_update_founder-2.8.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-03 10:08:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Pytholearn",
    "github_project": "auto_update_founder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "auto-update-founder"
}
        
Elapsed time: 0.36670s