Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A Python module providing advanced tools for URI manipulation and validation. Simplifies handling and parsing of URIs, with a focus on robustness and ease of use.
urilibplus
A Python Module for URI Manipulation. Inspired by
pathlib
, but for URIs.
urilibplus
is a Python module designed to simplify the interaction and manipulation of URIs. It provides the URI
class, which encapsulates URI operations into a consistent and user-friendly interface.
With this module, you can easily handle URIs, including tasks such as encoding, validation, and manipulation.
This module can be installed using:
pip install urilibplus
This module is intended to be used only as a module, and can be imported after installing using the traditional process:
from urilibplus import URI
uri = URI("http://user:pass@host:1234/path?query#fragment")
print(uri.scheme) # outputs "http"
print(uri.authority) # outputs "user:pass@host:1234"
encoded_uri = uri.encode() #same as str(uri)
print(encoded_uri) # outputs "http://user:pass@host:1234/path?query#fragment"
decoded_uri = URI(encoded_uri)
print(decoded_uri) # outputs "http://user:pass@host:port/path?query#fragment"
print(uri.encode(quote = True)) #outputs "http%3A%2F%2Fuser%3Apass%40host%3A1234%2Fpath%3Fquery%23fragment"
Also see the docs for the URIPath
object, an object for URI
s that works exactly like a pathlib
path.
Every URI
object makes use of a URIPath
object.
uri.pathappend("subpath", "suberpath")
print(uri.encode()) # outputs "http://user:pass@host:1234/path/subpath/suberpath?query#fragment"
There are a handfull of other ease of use features that this module provides, feel free to reference the documentation for more information.
This is licensed under the Mozilla Public License 2.0 (MPL 2.0) Licence. See the Licence file in this repository for more information.
Contributions are always welcome! Use the github repository to report issues and contribute to this project.
While not required, feel free to credit "Markus Hammer" (or just "Markus") if you find this code or script useful for whatever you may be doing with it.
While the python source code will be actively maintained, any binary files (if at all provided) are in no way supported. These are provided as a courtesy and are not intended to be the main usage of this software. Please keep this in mind when choosing how you wish to use this software.
Version | Supported |
---|---|
1.0.0.0 >= | ✅ |
1.0.0.0 < | ❌ |
Please report any issues to the email 107761433+MarkusHammer(THEN THE @ SYMBOL HERE)users.noreply.github.com
FAQs
A Python module providing advanced tools for URI manipulation and validation. Simplifies handling and parsing of URIs, with a focus on robustness and ease of use.
We found that urilibplus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.