wrapper around http://cheat.sh
Project description
cheat_sh
the http://cheat.sh non official lightweight wrapper
example
- cheat_sh.ask()
import cheat_sh
# ask question
print(cheat_sh.ask('reverse list in python'))
# you can provide the language
print(cheat_sh.ask('reverse list', 'python'))
# by default, colors are removed because it is not helpfull if you dont print it on a terminal
# but you can let them
print(cheat_sh.ask('echo', color=True))
- cheat_sh.learn()
import cheat_sh
# access cheat.sh/lang/:learn
print(cheat_sh.learn('python'))
# same as ask for the colors
print(cheat_sh.learn('python', color=True))
- cheat_sh.get_base_url()
>>> import cheat_sh
>>> cheat_sh.get_base_url()
http://cheat.sh/
- cheat_sh.get_supported_language()
>>> import cheat_sh
>>> # hard coded list
>>> cheat_sh.get_supported_language()
[...]
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
cheat_sh-0.0.2.tar.gz
(2.9 kB
view details)
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 cheat_sh-0.0.2.tar.gz.
File metadata
- Download URL: cheat_sh-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a762dbb34d8d365dd1d8209819a3d9de28685bd08516caa59d4adf163a43b0e9
|
|
| MD5 |
0c89649fd99cfc4c6560b35255b143ae
|
|
| BLAKE2b-256 |
2a517a088621d7e4dac1f471b36fc653fa1e5e37ad7f236ba134fdd3a98ee7d0
|
File details
Details for the file cheat_sh-0.0.2-py3-none-any.whl.
File metadata
- Download URL: cheat_sh-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
774a7a94a1dcc12b2f56bdf81ea23b47a08be30468341372a2656c9e90774e74
|
|
| MD5 |
a3e6d119456ca12c962cb6d887ee9126
|
|
| BLAKE2b-256 |
a643606452a4643c4788d08f74118c940041c70b37cbb2fea098031806cf2bac
|