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
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 Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a79b2c87fb16cc2f899c7be85722cf3b4839aa50f993a4978acb58ba60cff9ae |
|
MD5 | b91d1eb8a5a9bca22dc0f0bd5626fb8c |
|
BLAKE2b-256 | 0b662299b1faebe056e3d4737381307f816f295aa33126035c94b17a54666779 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1bf411312304d35d68c2008901c7620812a488de67ab56751340ee291cc1dd |
|
MD5 | 8ce3d4d45bd4a417b800cc56370b471c |
|
BLAKE2b-256 | 463339ff8d130d2e137264f7523dd73ec61614293a63f0a81bf321c9c0211d04 |