Skip to main content

Basic program or file updater

Project description

Pydater

EN:

When you make a program associated with Github, you can easily update with this module without the need to write an update system.

Specify the path, write a version and leave the rest to the module

TR:

Github ile ilişikli bir program yaptığınızda güncelleme sistemi yazmanıza gerek kalmadan bu modül ile rahatça güncelleme yapabilirsiniz.

Yol belirtin, bir versiyon yazın sonrasını modüle bırakın

Installation

Use the package manager pip to install pydater.

pip install pydater

Usage

  • First of all, you should save your current version number from github.

  • Create a repository for this or use an existing one.

  • Create a ".json" file named "version.json" in the repo.

  • Its content must be { "version" : "<version_number>"}.

  • After doing this and saving, copy the raw link of the version.json file

  • Come back to the relevant repo and import your most up-to-date program/application/software.

  • As a last step, copy the download link of your program/application/software in the relevant repo.

Example

from Pydate import pydate

pd = pydate.PyDate("<folder_here>","<raw_link_here>")

if pd.create_version_file(0.1):
    print("Update File Created")
else:
    print("Update File Already Exists")

if pd.isUpdate:
    print("Current")
else:
    print("Not Current")
    pd.downloadLink(url="<download_link_here>",extension="<'.exe' or '.pdf' or '.py' or 'bla_bla'>")
    pd.writeNewVersion()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydater-0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page