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.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

tiamat_pip-1.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiamat-pip-1.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.8

File hashes

Hashes for tiamat-pip-1.1.1.tar.gz
Algorithm Hash digest
SHA256 580965add2e80095e37c3a47d7bf566a02ad4c33c28a865e5175d7aa2f22cc76
MD5 9f0aa1f58ff435381011286f946e829c
BLAKE2b-256 7ebc851ec16e67780e059303dcc4b73d9347b07575b2c0de57fad0610bf5ec63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tiamat_pip-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.8

File hashes

Hashes for tiamat_pip-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 158be00232f6007264624c7f03d28d5a0058d77847841c91ad7be6532b2c0943
MD5 e8f9ffbba5e4c9b2ea14533505fdbe77
BLAKE2b-256 7d6eb01648842771ac16c0264228d956f923152903374f9967aaa4b53f82d90a

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