Skip to main content

Declarative external resources any with implicit deployment

Project description

Declarative external resources any with implicit deployment

This package provide classes that allow to setup external resources (utilities, python packages etc.) that will be deployed as they are used. In most cases data should be on the web and it will be deployed and cached locally on only first usage.

There are several examples in test/ folder and getpack.library module already defined and useable. But main intention is to provide framework for declarative setup of any resource and work with it without care of deployment.

import getpack
class Example(getpack.WebResource):
    version = '0.1'
    archive_url = 'https://example.com/example-0.1.zip'

then it would be used:

import subprocess
subprocess.call(Example()().path / 'example.exe')

Second round braces required to actually make an effect from resource and first round braces used to initialize resource class, that would produce resource descriptions on the fly like follows:

Example(version='0.2', archive_url='https://Example.com/example-0.2.zip')

You may experiment with following working snippet and try to change PySide2 version:

python -c "import getpack.library;getpack.library.PySide2(version='5.14.1')(); import PySide2.QtWidgets; app=PySide2.QtWidgets.QApplication(); w=PySide2.QtWidgets.QPushButton(PySide2.__version__); w.clicked.connect(w.close); w.show(); app.exec_()"

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

getpack-0.0.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

getpack-0.0.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file getpack-0.0.6.tar.gz.

File metadata

  • Download URL: getpack-0.0.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for getpack-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e9206384c8cc855e0bdbf992179af0477472e2869c37c2ac428bd161de0fa521
MD5 ca69aa511e2f7cd1b47b0a53ddd901cf
BLAKE2b-256 bdc198a1e8578321a652ce52d870139b8d440a2f31686baba238e9946508fef1

See more details on using hashes here.

File details

Details for the file getpack-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: getpack-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for getpack-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e1fa48c4c0a08681486c2a6b429307d4037c37f39c5b2188f3b02981ed4c9ac7
MD5 203c5881d2bea407ab87fc1e281bfe48
BLAKE2b-256 11ab8e50267a59e3bf0eb841d2971fd61868b046d037542de2fb3b61f54fac1f

See more details on using hashes here.

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