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
-sflag:$ 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybites-tips-1.1.0.tar.gz.
File metadata
- Download URL: pybites-tips-1.1.0.tar.gz
- Upload date:
- Size: 4.2 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7abba752b9c253c3067adacb2c3af22aa2a06f7bb299be18a53a307f94b9c69
|
|
| MD5 |
d2ab438b747b59db3c08cb15c24d77f5
|
|
| BLAKE2b-256 |
7441fe7fd54157011bc2327e381561099a546a7761c6140696286c0945f4d72f
|
File details
Details for the file pybites_tips-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pybites_tips-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce3490845f287916ecab6d833b42b2607d20d344ff295cbb5f1e5667d701e008
|
|
| MD5 |
e4c275a880a6ba6dcc5bf9154348f753
|
|
| BLAKE2b-256 |
bc378b455aaee8ac4f24df356649b75ab8c281d9cdbc90ea0037a959a89a613f
|