Skip to main content

Handy Tools for Developers

Project description

package wizzi utils:

Installation:

pip install wizzi_utils 

Usage

import wizzi_utils as wu # improts all that is available 
  • The above will give you access to all functions and tests that the dependencies modules in them is installed in your python environment.
  • Everything in misc_tools and misc_tools_test must work because when you 'pip install wizzi_utils', setup.py makes sure to install the requirements to misc_tools module.
  • Everything else, e.g. torch_tools, will work only if you have all the modules needed for torch_tools installed.
    • In torch_tools example, to know what is needed go to:
      wizzi_utils.torch.__init__.py # for the tools
      wizzi_utils.torch.test.__init__.py # for the tests and examples

Examples:

import wizzi_utils as wu

# direct access to the misc_tools module - must work   
print(wu.misc_tools.to_str(var=1, title='my_int'))

# access to a function in the main module misc_tools via name space 'wu' - must work    
print(wu.to_str(var=2, title='my_int'))  # notice only wu namespace
  
# access to a function in the torch module - will work if you have torch and the rest of the modules needed  
print(wu.tt.to_str(var=3, title='my_int')) # notice wu and tt namespaces. tt for torch tools
  
# access to a function in the matplotlib module - same rules as torch example above  
print(wu.pyplt.get_RGB_color(color_str='r'))
  
# access to a module test  
wu.algs.test.test_all()  # all tests  
wu.algs.test.find_centers_test() # specific test  
wu.test.to_str_test()  # access mist tools tests   

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

wizzi_utils-6.1.4.tar.gz (44.3 kB view hashes)

Uploaded Source

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