Skip to main content

Syntactical sugar and other hacks for python

Project description

python-saccharide: Syntactical sugar and syntax hack collection for python3.

This module adds some extra syntactical sugar to python.

Installation

pip install python-saccharide

Usage Examples

See the test directory for some examples of usage. Further documentation may or may not ever happen, but any contributions would be much appreciated.

Features

The sugar features provided include:

  • SugarModule: A custom module class allowing easy function/variable export and private attribute and immutability protection
  • Partial: A simple syntax for partial function application
  • method_with_attrs: a decorator allowing class methods to have attributes with getattr and setattr methods.
  • ... and more ...

Copying

Copyright (c) 2021, Misha Klopukh

This library is licensed under the permissive MIT license. As far as I am concerned, do whatever you want with it, but don't claim you wrote it. As far as I am aware, all of this code is pretty much original. If you do something cool with this, I would love to hear about it, and would love even more if you contributed your code.

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

python-saccharide-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

python_saccharide-0.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

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