Skip to main content

pyTooling is a powerful collection of arbitrary useful classes, decorators, meta-classes and exceptions.

Project description

Sourcecode on GitHub Sourcecode License GitHub tag (latest SemVer incl. pre-release) GitHub release (latest SemVer incl. including pre-releases) GitHub release date Dependents (via libraries.io)
GitHub Workflow - Build and Test Status Codacy - Quality Codacy - Coverage Codecov - Branch Coverage Libraries.io SourceRank
PyPI PyPI - Python Version PyPI - Status Libraries.io status for latest release Requires.io
Documentation License Documentation - Read Now!

pyTooling

pyTooling is a powerful collection of arbitrary useful classes, decorators, meta-classes and exceptions. It's useful for any Python-base project independent if it's a library, framework or CLI tool.

Introduction

TODO

Package Details

Common Classes

Decorators

  • export
    Register the given function or class as publicly accessible in a module.

Exceptions

Meta-Classes

  • Singleton
    Allow only a single instance of a class.
  • Overloading
    Overloading Allow method overloading in Python classes. Dispatch method calls based on method signatures (type annotations).

Examples

@export Decorator

from pyTooling.Decorators import export 

@export
class MyClass:
  pass

CallByRefIntParam

from pyTooling.CallByRef import CallByRefIntParam

# define a call-by-reference parameter for integer values
myInt = CallByRefIntParam(3)

# a function using a call-by-reference parameter
def func(param : CallByRefIntParam):
  param <<= param * 4

# call the function and pass the wrapper object
func(myInt)

print(myInt.value)

Contributors

License

This Python package (source code) licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).


SPDX-License-Identifier: Apache-2.0

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyTooling-1.5.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pyTooling-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyTooling-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for pyTooling-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 119f3b46711dd4d1cafdf88b7f340d8e5237bcfb2699c36d649e7843bb7137a3
MD5 95e07197838113e099e970e73100fd16
BLAKE2b-256 945cc4e7a7425fb03e1a7d7607e49d468a677b01cdb84f4aa68b09e2e34617c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page