Read PyBites Python tips from the command line
Project description
PyBites Tips CLI
A wrapper to read PyBites Python tips from the command line.
Installation
You can install PyBites Tips CLI from PyPI:
pip install pybites-tips
This tool uses Python 3.x
Usage
PyBites Tips CLI is a command line application. There are two ways to run it:
-
Interactive mode:
$ pytip Search tips (press 'q' to exit): functools 3 tips found === TIP 153 === Title: functools.partial ... ...
-
Search for tips from the command line using the
-s
flag:$ pytip -s itertools 7 tips found === TIP 53 === Title: random.choice and itertools.product Tip: #Python's random, range and itertools.product make it easy to simulate 5 dice rolls: ... ...
Paging
If you want to page through the results use the -p
flag:
$ pytip -s itertools -p
7 tips found
Press any key to start paging them, then press 'q' to go to the next one ... or hit 'c' bail out:
...
<< resulting tips are paged (you see them one by one in your terminal) >>
You can also just pipe pytip
's output to more
:
pytip -s itertools|more
Enjoy!
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
pybites-tips-1.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pybites_tips-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3490845f287916ecab6d833b42b2607d20d344ff295cbb5f1e5667d701e008 |
|
MD5 | e4c275a880a6ba6dcc5bf9154348f753 |
|
BLAKE2b-256 | bc378b455aaee8ac4f24df356649b75ab8c281d9cdbc90ea0037a959a89a613f |