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
Release history Release notifications | RSS feed
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.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pdc_bot_updater-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2525471490a2a8d772a7e952add7bbc24a8b46939d08e0e27ef20665bd87e29 |
|
MD5 | 7801e6e2d908946024ff2a755b29157b |
|
BLAKE2b-256 | b4d540df90a84bd45cfcf11eb2e37d032d6fee5f75b4ca9cc343635915950783 |