Skip to main content

Experimental Python wrapper for Simple-RFC1738-Encoder written in JavasScript.

Project description

Experimental Python wrapper for Simple-RFC1738-Encoder written in JavasScript.

More info about Simple-RFC1738-Encoder: https://github.com/RDCH106/Simple-RFC1738-Encoder

What can I do with pySRE?

  • The same as original library of Simple-RFC1738-Encoder

Installation

You can install or upgrade pySRE with:

  • $ pip install pySRE --upgrade

Or you can install from source with:

  • $ git clone https://github.com/RDCH106/pySRE.git --recursive

  • $ cd pySRE

  • $ pip install -r requirements.txt

Quick example

---------------------------------

from pySRE import pySRE

# Choose your Engine using:
#    pySRE.SUPPORTED_ENGINES
#
# Example:
#    pySRE.PySRC(pySRE.SUPPORTED_ENGINES.Node)

pySRE = pySRE.PySRC()  # automatically picks the best runtime
print("\nCurrrent engine: %s\n" % pySRE.execjs_engine)

my_url = "http://mascandobits.es?fullname=Rubén de Celis Hernández"
print("Original URL: %s" % my_url)
my_url = pySRE.convert_to_url(my_url)
print("RFC1738 URL: %s" % my_url)
my_url = pySRE.convert_to_string(my_url)
print("Decoded RFC1738 URL: %s" % my_url)
my_url = pySRE.convert_to_url_with_utf8(my_url)
print("RFC1738 URL with UTF8: %s" % my_url)
my_url = pySRE.convert_to_string_with_utf8(my_url)
print("Decoded RFC1738 URL with UTF8: %s" % my_url)

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

pySRE-0.1.6.tar.gz (76.9 kB view details)

Uploaded Source

File details

Details for the file pySRE-0.1.6.tar.gz.

File metadata

  • Download URL: pySRE-0.1.6.tar.gz
  • Upload date:
  • Size: 76.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pySRE-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d0c3c962c7d9120bb55e84249ca7c105daca1388427163d6dc20b54afe0f2516
MD5 30d56b711b4d87a2d96cee314fdd124a
BLAKE2b-256 4b475acd59b21a792cdf85bd6590940013afb0f31fd52ac8d79a1b18fe32cb6c

See more details on using hashes here.

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