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 protectionPartial
: A simple syntax for partial function applicationmethod_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
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
Built Distribution
File details
Details for the file python-saccharide-0.0.1.tar.gz
.
File metadata
- Download URL: python-saccharide-0.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6cff668ffcda6a51457cfb10b3daf1b79a4c3cb8bead6b7a1c4eee92d2aa614 |
|
MD5 | 474dd590fcdb4cd8766741b26d9654e0 |
|
BLAKE2b-256 | 005b12dc101c1db543f0e1eec9b935d61ec7c016f8f433a80d38a8c0c2a6512a |
File details
Details for the file python_saccharide-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_saccharide-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbbdce0add0916aa2c2c92fbcfbe972900f70f6559025a0cf3f0e419b726440b |
|
MD5 | 496459b02d9c94eebd6dbbd1e4ab524d |
|
BLAKE2b-256 | 8c20f3e2f09a691e8b34df238d73d6de86a5fb051de0c66fac9aab5d3859ce7d |