Metadata-Version: 2.1
Name: cheat_sh
Version: 0.0.1
Summary: wrapper around http://cheat.sh
Home-page: https://github.com/SingularChatelet/cheat_sh
Author: Saverio
Author-email: Saverio <personnex976@gmail.com>
License: MIT
Project-URL: Bug Tracker, https://github.com/SingularChatelet/cheat_sh/issues/new/choose
Keywords: cheatsh,cheat.sh,cht.sh
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# cheat_sh

the http://cheat.sh non official lightweight wrapper

# example

-   cheat_sh.ask()
```python
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()
```python
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()
```python
>>> import cheat_sh
>>> cheat_sh.get_base_url()
http://cheat.sh/
```

-   cheat_sh.get_supported_language()
```python
>>> import cheat_sh
>>> # hard coded list
>>> cheat_sh.get_supported_language()
[...]
```
