Skip to main content

url-param-sorted - предоставляет функцию для cортировки параметров url в порядке их возрастания

Project description

NAME

url-param-sorted - предоставляет функцию для cортировки параметров url в порядке их возрастания

VERSION

0.0.2

SYNOPSIS

from url_param_sorted import url_param_sorted

url_param_sorted('y=1&z=&x=2&x=3&z&x=1')	# -> 'x=1&x=2&x=3&y=1&z&z='

url_param_sorted({'y': 1, 'z': ["", None], 'x': [2, 3, 1]})		# -> 'x=1&x=2&x=3&y=1&z&z='

try:
	url_param_sorted([])	# -> raise TypeError("Аргумент может быть только str или dict")
except TypeError as e:
	pass

DESCRIPTION

Функция url_param_sorted сортирует параметры url в порядке их возрастания.

С библиотекой поставляется утилита url-param-sorted.

$ url-param-sorted 'y=1&z=&x=2&x=3&z&x=1'
x=1&x=2&x=3&y=1&z&z=

INSTALL

$ pip3 install url-param-sorted

REQUIREMENTS

  • Нет

AUTHOR

Kosmina O. Yaroslav darviarush@mail.ru

LICENSE

MIT License

Copyright (c) 2020 Kosmina O. Yaroslav

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

url-param-sorted-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

url_param_sorted-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file url-param-sorted-0.0.2.tar.gz.

File metadata

  • Download URL: url-param-sorted-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for url-param-sorted-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a79b2c87fb16cc2f899c7be85722cf3b4839aa50f993a4978acb58ba60cff9ae
MD5 b91d1eb8a5a9bca22dc0f0bd5626fb8c
BLAKE2b-256 0b662299b1faebe056e3d4737381307f816f295aa33126035c94b17a54666779

See more details on using hashes here.

File details

Details for the file url_param_sorted-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: url_param_sorted-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for url_param_sorted-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a1bf411312304d35d68c2008901c7620812a488de67ab56751340ee291cc1dd
MD5 8ce3d4d45bd4a417b800cc56370b471c
BLAKE2b-256 463339ff8d130d2e137264f7523dd73ec61614293a63f0a81bf321c9c0211d04

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