Skip to main content

pdc shipment aplication bot

Project description

pdc_updater

implementasi auto updater dengan memakai cloud storage google

set environtment

set GOOGLE_APPLICATION_CREDENTIALS=credentials.json

Example

Publising Aplication

from pdc_bot_updater.publisher.publish import configure_client, AppArchiver

bucket_id = 'artifact'
folder_app = 'aplikasi_bot'

configure_client(bucket_id)


archiver = AppArchiver(folder_app)
archiver.get_meta()
archiver.upload_archive(f'dist/aplication.zip', version='1.0.0')

Updating App

from pdc_bot_updater.client.updater import Updater

bucket_id = 'artifact'
folder_app = 'aplikasi_bot'

updater = Updater(folder_app, bucket_id)
updater.check_update()
updater.detach_process(['application.exe'])

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

pdc_bot_updater-1.2.6.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

pdc_bot_updater-1.2.6-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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