Search CLI
Small tools to interface with search engine form the command line that has tight integration with the linux X clipboard.
For python 3 installs:
sudo apt install surfraw surfraw-extra xclip python3-tk
For python 2
sudo apt install surfraw surfraw-extra xclip python-tk
install with pip install . or pip install search-cli
Programs:
searchorsr: Search from the command line with a backoff to search for what ever is on your clipboard if you don't type anythingsearch_highlighted: Search for the highlighted span.search_gui: Create a text input box and search for entered text with<Enter>search_gui_highlighted: Same as above but seeded with the currently highlighted text.
search_highlighted, search_gui, and search_gui_highlighted are ideal for keybinding.
When the search bar loses focus (you click away) it will automatically close. If you don't like this behavior you can set SR_CLOSE_LOSS_FOCUS to no to stop it.
Windows:
On windows only searching with google is supported. To run you will need python installed
and the entry point scripts exectuable. This normally involes adding paths like the
following to your path (control panel -> System and Security -> System -> Advanced system settings -> Environment Variables)
C:\Users\LENOVO\AppData\Local\Programs\Python\Python37-32\Scripts C:\Users\LENOVO\AppData\Local\Programs\Python\Python37-32
On windows I can't get the selected text the same way I can on Linux so there are
autoHotKey scripts in the win folder than can simulate this behavior.
Metadata
Release files for search-cli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| search-cli-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for search-cli-0.1.1.tar.gz |
Release files / search-cli-0.1.1.tar.gz
| Download URL | search-cli-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
040874d57c9f657ed52aadc69506c4cc016600d7ccf656d6d39d53b4c9ce0096
|
|
BLAKE2b-256 checksum How to use checksums |
d47c24c30c933e65090af74d4d17bbd621be3f6dbac2b43be459bba5bc268f07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Security for search-cli 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.