Skip to main content

This is a micropython library aimed at encoding and decoding URLs.

Project description

micropython-url_encode

This is a micropython library aimed at encoding and decoding URLs.

Usage

from Url_encode import url_encode

some_api='https://wpmsg.com/?text='
string_to_be_url_encoded='This is a message'

url=url_encode()

encoded_string=url.encode('string_to_be_url_encoded')
url_to_be_decoded=some_api+encoded_string

decoded_url=url.decode(url_to_be_decoded)

print('\nThe encoded string is:',encoded_string)
print('URL:',some_api+encoded_string)
print('\nThe decoded URL is:',decoded_url)

OUTPUT


The encoded string is: string%5fto%5fbe%5furl%5fencoded
URL: https://wpmsg.com/?text=string%5fto%5fbe%5furl%5fencoded
The decoded URL is: https://wpmsg.com/?text=string_to_be_url_encoded

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

micropython_url_encode-0.1-py2.py3-none-any.whl (27.1 kB view hashes)

Uploaded Python 2 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