Skip to main content

Pip handling for tiamat projects

Project description

Tiamat Pip

Pip handling for tiamat projects

Setup

In order to be able to pip install packages which can be used with your tiamat packaged application you need to add tiamat-pip as a dependency and your run.py should look similar to:

#!/usr/bin/env python3

import sys
import multiprocessing

import tiamatpip.cli
import tiamatpip.configure

import mainapp

# Configure the path where to install the new packages
tiamatpip.configure.set_user_site_packages_path("THIS SHOULD BE A HARDCODED PATH")


def main(argv):
    # Let's see if we should be handling pip related stuff
    if tiamatpip.cli.should_redirect_argv(argv):
        tiamatpip.cli.process_pip_argv(argv)

    # If we reached this far, it means we're not handling pip stuff
    # Your application logic can resume

    mainapp.main(argv)
    sys.exit(0)


if __name__ == "__main__":
    if sys.platform.startswith("win"):
        multiprocessing.freeze_support()
    main(sys.argv)

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

tiamat-pip-1.3.0.tar.gz (133.3 kB view details)

Uploaded Source

Built Distribution

tiamat_pip-1.3.0-py3-none-any.whl (143.6 kB view details)

Uploaded Python 3

File details

Details for the file tiamat-pip-1.3.0.tar.gz.

File metadata

  • Download URL: tiamat-pip-1.3.0.tar.gz
  • Upload date:
  • Size: 133.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.4

File hashes

Hashes for tiamat-pip-1.3.0.tar.gz
Algorithm Hash digest
SHA256 8b38e6c6f7a74b9e9320f6443adaab75baaa741b9f5989eba3173ab9df0c214d
MD5 88dc47b7ff96dc549aa81db2078347e4
BLAKE2b-256 65baa811cec3213f1bbd8732c5b17b395c7c686ee9462f938b20ecc8d822fa11

See more details on using hashes here.

File details

Details for the file tiamat_pip-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: tiamat_pip-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 143.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.4

File hashes

Hashes for tiamat_pip-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c10c7775b6c0e8b664ae441a1ef51f88e5197260ef4abf474c6b837a6c3b1bf
MD5 dff0949a4601df8622a73d433b29cb1a
BLAKE2b-256 3602f296cd48a97e4f151ac0375a364b3195a8a070aaef2ccdce09266344e3ee

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