Skip to main content

Qtils - pronounces as `cuteels` - is a syntactic sugar library to make sweet Python coding even sweeter.

Project description

https://qtils.readthedocs.io/en/latest/_images/qtils-logo.png
GitHub tag (latest SemVer) Travis CI build status Code Coverage Documentation Status PyPI GitHub issues

Overview

Qtils - pronounces as cuteels - is a syntactic sugar library to make sweet Python coding even sweeter.

Dedication

This library is dedicated to Pál Hubai a.k.a. Surfy my programming Master, who thought me how to code when I was a child.

Documentation

Documentation is available at https://qtils.readthedocs.io/en/latest/

Features

Installation

$ pip install qtils

Quick Examples

>>> from qtils import *


>>> d = qdict()
>>> d.hello = "world"
>>> d.hello
'world'


>>> class MyObject(PrettyObject):
...     __pretty_format__ = PRETTY_FORMAT.BRIEF
...     __pretty_fields__ = [
...         'hello',
...         'answer',
...     ]
...     def __init__(self, hello, answer):
...         self.hello = hello
...         self.answer = answer
>>> obj = MyObject('world', 42)
>>> print(obj)
<MyObject object at ... hello='world', answer=42>


>>> print(DataSize(123000))
123 k
>>> DataSize('1.45 megabytes')
1450000

See more examples and usage in examples and tutorials <https://qtils.readthedocs.io/en/latest/tutorial/index.html>.

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

qtils-0.9.2.tar.gz (21.9 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