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.5.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pdc_bot_updater-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a6ff64999e4eccf5876e7de275c433b093f44b3e1a42b2125ac3a5c6801568f |
|
MD5 | eac7282255217347fbda202a3855a580 |
|
BLAKE2b-256 | 62eea158711c6d1b6a385e4e7cbd7287bcac249258a8f09c7fa10d0b944702b2 |