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 hashes)