Skip to main content

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()
[...]

Metadata

Release files for cheat-sh 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cheat-sh 0.0.2
File Size Uploaded Provenance
cheat_sh-0.0.2.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cheat-sh 0.0.2
File Interpreter ABI Platform
cheat_sh-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / cheat_sh-0.0.2.tar.gz

Download URL cheat_sh-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a762dbb34d8d365dd1d8209819a3d9de28685bd08516caa59d4adf163a43b0e9
BLAKE2b-256 checksum
How to use checksums
2a517a088621d7e4dac1f471b36fc653fa1e5e37ad7f236ba134fdd3a98ee7d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cheat_sh-0.0.2-py3-none-any.whl

Download URL cheat_sh-0.0.2-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
774a7a94a1dcc12b2f56bdf81ea23b47a08be30468341372a2656c9e90774e74
BLAKE2b-256 checksum
How to use checksums
a643606452a4643c4788d08f74118c940041c70b37cbb2fea098031806cf2bac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for cheat-sh 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page