Skip to main content

Colab URL Generator from Code

Project description

ColabURL

Colab URL Generator from Code

Install:

pip install colaburl

Usage:

>>> import colaburl
>>> colaburl.code_url('''
... import my_module
... my_module.something()
... ''')
'https://colaburl.uk/aW1wb3J0IG15X21vZHVsZQpteV9tb2R1bGUuc29tZXRoaW5nKCk=.b64'
>>> colaburl.code_html('''
... import my_module
... my_module.something()
... ''')
'<a href="https://colaburl.uk/aW1wb3J0IG15X21vZHVsZQpteV9tb2R1bGUuc29tZXRoaW5nKCk=.b64" rel="nofollow" target="_blank" class="colaburl"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" style="margin: 0; display: inline-block;" /></a>'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colaburl-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

colaburl-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page