All Projects → ryukinix → Decorating

ryukinix / Decorating

Licence: mit
decorating: Literally decorating your terminal with decorators

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Decorating

Jackline
minimalistic secure XMPP client in OCaml
Stars: ✭ 236 (-4.84%)
Mutual labels:  terminal
Mitype
Typing speed test in terminal
Stars: ✭ 241 (-2.82%)
Mutual labels:  terminal
Covid19 Tracker Cli
A curl-based command line tracker for Novel Coronavirus or COVID-19 pandemic. It Supports terminal for linux and macos, command prompt for windows, and termux for android with real-time updates.
Stars: ✭ 244 (-1.61%)
Mutual labels:  terminal
Ytermplayer
Stream youtube playlists as audio on linux terminal
Stars: ✭ 235 (-5.24%)
Mutual labels:  terminal
Chattt
❯❯❯ Chat without leaving your terminal
Stars: ✭ 239 (-3.63%)
Mutual labels:  terminal
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+1037.5%)
Mutual labels:  terminal
Kaop Ts
Simple Yet Powerful Library of ES2016 Decorators with Strongly typed method Interceptors like BeforeMethod, AfterMethod, OnException, etc
Stars: ✭ 235 (-5.24%)
Mutual labels:  decorators
Finalcut
A text-based widget toolkit
Stars: ✭ 244 (-1.61%)
Mutual labels:  terminal
Nord Alacritty
An arctic, north-bluish clean and elegant Alacritty color scheme.
Stars: ✭ 238 (-4.03%)
Mutual labels:  terminal
3llo
3llo - Trello interactive CLI aplication
Stars: ✭ 245 (-1.21%)
Mutual labels:  terminal
Gmusicapi Scripts
https://github.com/thebigmunch/google-music-scripts
Stars: ✭ 237 (-4.44%)
Mutual labels:  terminal
Graphical
Open-Source, Platform independent module that consumes data points as input and plots them on a 2D graph [Scatter / Bar / Line] on the PowerShell Console/Terminal
Stars: ✭ 237 (-4.44%)
Mutual labels:  terminal
Pb
Console progress bar for Golang
Stars: ✭ 3,078 (+1141.13%)
Mutual labels:  terminal
Atom
Shell scripting that will knock your socks off
Stars: ✭ 237 (-4.44%)
Mutual labels:  terminal
Sc Im
sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Stars: ✭ 3,081 (+1142.34%)
Mutual labels:  terminal
Zulip Terminal
The official terminal client for Zulip
Stars: ✭ 231 (-6.85%)
Mutual labels:  terminal
Term Sheets
Create animated terminal presentations. Export as SVG, animated GIF, or HTML+CSS
Stars: ✭ 243 (-2.02%)
Mutual labels:  terminal
Todoman
✅ A simple, standards-based, cli todo (aka: task) manager.
Stars: ✭ 247 (-0.4%)
Mutual labels:  terminal
Meli
🐝 experimental terminal mail client, mirror of https://git.meli.delivery/meli/meli.git https://crates.io/crates/meli
Stars: ✭ 242 (-2.42%)
Mutual labels:  terminal
Dashing
Terminal dashboards for Python
Stars: ✭ 241 (-2.82%)
Mutual labels:  terminal

Decorating: A Meta Repo To Decorators

Build Status codecov Requirements Status PyPi version PyPI pyversions PyPI status HitCount

Abstract

This project encourages an exploration into the limits of decorators in Python. While decorators might by new to beginners, they are an extremely useful feature of the language. They can be similar to Lisp Macros, but without changes to the AST. Great decorators from this packages are @animated and @writing. This repository is made from scratch, just using Python's Standard Library, no dependency!

Examples

Animated

Using as decorator and mixed with context-managers animation

Using with nested context-managers context-manager

Writing

Another project mine called MAL uses the decorating package —- basically a command line interface for MyAnimeList. The decorator @writing can be used by just adding 3 lines of code! The behavior is a retro typing-like computer. Check out the awesome effect:

asciicast

More examples are covered on my personal blog post about decorating.

Decorators & Usage

Currently public decorators on the API of decorators decorating:

  • decorating.debug
  • decorating.cache
  • decorating.counter
  • decorating.count_time
  • decorating.animated
  • decorating.writing

Mostly decorators has a pretty consistent usage, but for now only animated and writing has support to use as contextmanagers using the with syntax.

Installation

Supported Python versions:

  • Python3.4+
  • Python2.7

You can install the last release on PyPI by calling:

pip install --user decorating

If you want get the last development version install directly by the git repository:

pip install --user git+https://www.github.com/ryukinix/decorating

We have a published package on Arch Linux,which you can install using your favorite AUR Helper, like pacaur or yaourt:

yaourt -S python-decorating

Though since the version 0.6 we have support for Python2.7, an AUR package for Python2 was not made yet. Fill a issue if you have interest on that :). Thanks to Maxim Kuznetsov which implemented the necessary changes to make compatible with Python2!

License

PyPi License

MIT

Because good things need to be free.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].