xxurl

handle url, javascript-style APIs


Keywords
javascript-style-apis, url, url-decoder, url-dict, url-parsing, url-tuple, urls
License
MIT
Install
pip install xxurl==0.5

Documentation

xxurl

handle url,javascript-style API

install

pip3 install xxurl

class URL


├──0. __init__.0
├──1. __init__.1
├──2. __init__.2
├──3. __init__.3
├──4. repl_hash
├──5. repl_host
├──6. repl_hostname
├──7. repl_netloc
├──8. repl_params
├──9. repl_password
├──10. repl_path
├──11. repl_port
├──12. repl_protocol
├──13. repl_query
├──14. repl_userinfo
├──15. repl_username
├──16. searchParams.append
├──17. searchParams.delete
├──18. searchParams.entries
├──19. searchParams.get
├──20. searchParams.getAll
├──21. searchParams.has
├──22. searchParams.insert
├──23. searchParams.prepend
├──24. searchParams.set
├──25. toDict
├──26. toTuple


class URLSearchParams


├──0. append
├──1. delete
├──2. entries
├──3. get
├──4. getAll
├──5. has
├──6. insert
├──7. keys
├──8. prepend
├──9. set
├──10. toString
├──11. values


functions


├──0. after_fragment_sp
├──1. after_hash_sp
├──2. after_host
├──3. after_host_sp
├──4. after_hostname
├──5. after_hostname_sp
├──6. after_netloc_sp
├──7. after_params
├──8. after_params_sp
├──9. after_password
├──10. after_password_sp
├──11. after_path
├──12. after_path_sp
├──13. after_port
├──14. after_port_sp
├──15. after_protocol
├──16. after_query
├──17. after_query_sp
├──18. after_scheme
├──19. after_unpw
├──20. after_userinfo
├──21. after_userinfo_sp
├──22. after_username
├──23. after_username_sp
├──24. before_fragment
├──25. before_fragment_sp
├──26. before_hash
├──27. before_hash_sp
├──28. before_host
├──29. before_host_sp
├──30. before_hostname
├──31. before_hostname_sp
├──32. before_netloc
├──33. before_netloc_sp
├──34. before_params
├──35. before_params_sp
├──36. before_password
├──37. before_password_sp
├──38. before_path
├──39. before_path_sp
├──40. before_pathname
├──41. before_port
├──42. before_port_sp
├──43. before_query
├──44. before_query_sp
├──45. before_search
├──46. before_unpw
├──47. before_userinfo
├──48. before_userinfo_sp
├──49. before_username
├──50. before_username_sp
├──52. d2t
├──53. d2u
├──54. dict2qdl
├──.get absolute-url ,such as from form-action
├──58. get_abs_url
├──.get absolute-url ,such as from form-action
├──59. get_authority
├──60. get_fragment
├──61. get_hash
├──62. get_host
├──63. get_hostname
├──64. get_netloc
├──65. get_origin
├──66. get_params
├──67. get_password
├──68. get_path
├──69. get_pathname
├──70. get_port
├──71. get_protocol
├──72. get_query
├──73. get_scheme
├──74. get_search
├──75. get_unpw
├──76. get_userinfo
├──77. get_username
├──78. has_fragment
├──79. has_hash
├──80. has_host
├──81. has_hostname
├──82. has_netloc
├──83. has_params
├──84. has_password
├──85. has_path
├──86. has_port
├──87. has_protocol
├──88. has_query
├──89. has_scheme
├──90. has_unpw
├──91. has_userinfo
├──92. has_username
├──94. l2path
├──95. nin_d2t
├──96. nin_d2u
├──97. nin_get
├──98. nin_set
├──99. nin_t2d
├──100. nin_t2u
├──101. nin_to_attrname
├──102. nin_u2d
├──103. nin_u2t
├──106. packup_host
├──107. packup_netloc
├──108. packup_unpw
├──109. para2tl
├──110. path2l
├──.normalization
├──51. case_normalize
├──104. normalize_path
├──111. path_remove_consecutive_slashes
├──112. path_remove_dot_segments
├──.normalization
├──113. posixpath
├──114. ptele2str
├──115. q2tl
├──116. qdict2tl
├──117. qdl2dict
├──118. qdl2qtl
├──119. qtele2str
├──120. qtl2dict
├──121. qtl2qdl
├──.ordered urldecode urlencode
├──122. query_decode
├──123. query_encode
├──.ordered urldecode urlencode
├──125. remove_fragment
├──126. remove_host
├──127. remove_hostname
├──128. remove_netloc
├──129. remove_params
├──130. remove_password
├──131. remove_path
├──132. remove_port
├──133. remove_protocol
├──134. remove_query
├──135. remove_scheme
├──136. remove_unpw
├──137. remove_userinfo
├──138. remove_username
├──139. replace_fragment
├──140. replace_host
├──141. replace_hostname
├──142. replace_netloc
├──143. replace_params
├──144. replace_password
├──145. replace_path
├──146. replace_port
├──147. replace_protocol
├──148. replace_query
├──149. replace_scheme
├──150. replace_unpw
├──151. replace_userinfo
├──152. replace_username
├──153. six_d2t
├──154. six_d2u
├──155. six_get
├──156. six_set
├──157. six_t2d
├──158. six_t2u
├──159. six_to_attrname
├──160. six_u2d
├──161. six_u2t
├──162. str2ptele
├──163. str2qtele
├──164. t2d
├──165. t2u
├──166. tl2para
├──167. tl2q
├──169. u2d
├──170. u2t
├──171. unpack_host
├──172. unpack_netloc
├──173. unpack_unpw
├──.experimental
├──174. quote_chinese(s,codec='gb2312')
├──175. urlpath2d
├──176. get_path_last