Skip to main content

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 the 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 modes to run it:

  1. Interactive mode:

     $ pytip
    
     Search tips (press 'q' to exit): functools
     3 tips found
    
     === TIP 153 ===
     Title: functools.partial
     ...
     ...
    
  2. 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:
     ...
     ...
    

If you want to page through the results use the -p flag:

$ pytip -s itertools
7 tips found

Press any key to start paging them, then press 'q' to go to the next one ... or hit 'c' bail out:
...
<< results page paged (you see them one by one in terminal) >>

Alternatively just pip pytip's output to more: pytip -s itertools|more

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

pybites-tips-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybites_tips-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pybites-tips-1.0.0.tar.gz.

File metadata

  • Download URL: pybites-tips-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for pybites-tips-1.0.0.tar.gz
Algorithm Hash digest
SHA256 34bbae0b828d6e549e395bf077e54c1461ef76dfd0852971426f5e968bd85319
MD5 7805ad3a4e7c3cb7e71e466c2bc7f802
BLAKE2b-256 c207898a7356b37a0158c0e6e484e1bf6b9b23a8b631a49c2666c2d2eb0446a4

See more details on using hashes here.

File details

Details for the file pybites_tips-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pybites_tips-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for pybites_tips-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b24df8119659f5ab9e5a6b8a4354e4f3279875db18e1c7f4d59e3fbfc1bf80c9
MD5 3481cad5abad3193536275bb48af0cb1
BLAKE2b-256 02a2d19cdde8fb71d40ba61b311c1a4348c4bb8fd12922a71319f2e4ec883f9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page