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
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
File details
Details for the file micropython_url_encode-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: micropython_url_encode-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 899cc2cd15fe3f7593927e22f71c10b84f8b4d2c444623e379605af3bc78c56f |
|
MD5 | 4b1227b19cfc21a7c521d067a7ee4bee |
|
BLAKE2b-256 | 149594b0aed068debb91a9f338a774a325951a19878cb3367e776d0aa6052ad1 |