Socket
Socket
Sign inDemoInstall

slimurl

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    slimurl

SlimURL - Fast library for parsing and building URL addresses


Maintainers
1

Readme

Slim URL [DEPRICATED]

.. image:: https://travis-ci.org/mosquito/slimurl.svg :target: https://travis-ci.org/mosquito/slimurl

.. image:: https://img.shields.io/pypi/v/slimurl.svg :target: https://pypi.python.org/pypi/slimurl/ :alt: Latest Version

.. image:: https://img.shields.io/pypi/wheel/slimurl.svg :target: https://pypi.python.org/pypi/slimurl/

.. image:: https://img.shields.io/pypi/pyversions/slimurl.svg :target: https://pypi.python.org/pypi/slimurl/

.. image:: https://img.shields.io/pypi/l/slimurl.svg :target: https://pypi.python.org/pypi/slimurl/

This module is deprecated. Please use the YARL_ instead.

.. _YARL: https://pypi.python.org/pypi/yarl

Slim URL - is fast wrapper for construction or/and parse URL components. Parsing based on regular expressions.

Example::

from slimurl import URL

url = URL('http://example.net')
print("%r" % url)
# <URL "http://example.net/">

print((url.host, url.port, url.scheme))
# ('example.net', 80, 'http')

URL('http://example.net') == URL('http://example.net/')
# True

URL('http://example.net:80') == URL('http://example.net/')
# True

URL('http://example.net') == URL('http://example.net/?foo=bar')
# False

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc