Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Collection of Python utilities modules to work with PySide/PyQt and DCCs

Project description

https://img.shields.io/github/license/tpoveda/tpQtLib.svg https://travis-ci.com/tpoveda/tpQtLib.svg?branch=master

Collection of Python modules to make your life easier when working with PySide/PyQt.

Also, when working with specific DCCs, tpQtLib will auto import proper modules and will use DCC specific implementations for PySide/PyQt widgets.

Installation

Manual

1. Clone/Download tpQtLib anywhere in your PC (If you download the repo, you will need to extract the contents of the .zip file). 2. Copy tpQtLib folder located inside source folder in a path added to sys.path

Automatic

Automatic installation for tpQtLib is not finished yet.

DCC Implementations

At this moment following DCCs are supported:

During tpQtLib initialization, if DCC specific implementation package is found in sys.path, tpQtLib will automatically detect it and will import it.

Usage

Initialization Code

tpQtLib must be initialized before being used.

import tpQtLib
tpQtLib.init()

Reloading

For development purposes, you can enable reloading system, so you can reload tpQtLib sources without the necessity of restarting your Python session. Useful when working with DCCs.

import tpQtLib
reload(tpQtLib)
tpQtLib.init(True)

Enabling debug log

By default, tpQtLib logger only logs warning messages. To enable all log messages you can set TPQTLIB_DEV environment variables to ‘True’

import os

os.environ['TPQTLIB_DEV'] = 'True'
import tpQtLib
tpQtLib.init()

Deploying new version (only for devs)

Update version

Make sure setup.cfg file version field is updated

Installing libraries

Make sure that you have installed the following packages:

  • wheel
pip install wheel
  • twine
pip install twine
  • setuptools
pip install setuptools

Make sure to update setuptools to latest available version:

pip install setuptools --upgrade

Generate wheel

python setup.py sdist bdist_wheel

Validate wheel package generation

twine check dist/*

Upload package to PyPi

twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tpqtlib, version 0.0.17
Filename, size File type Python version Upload date Hashes
Filename, size tpqtlib-0.0.17-py3.6.egg (1.8 MB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size tpqtlib-0.0.17.tar.gz (1000.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page