
Research
/Security News
Toptalโs GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptalโs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
๐ฏ Your friendly URL wizard - Craft, manipulate, and manage URLs with style!
Tired of wrestling with URL strings? Say goodbye to messy concatenation and hello to URLCrafter! ๐
URLCrafter is your friendly neighborhood URL wizard ๐งโโ๏ธ, turning URL manipulation from a chore into a breeze. With its chainable API, you'll be crafting URLs like a pro in no time!
Created by Madhav Panchal (2025-03-16)
Python's built-in URL handling can feel like trying to solve a Rubik's cube blindfolded ๐คช. URLCrafter swoops in like a superhero ๐ฆธโโ๏ธ to save the day with:
pip install urlcrafter
Feature | Description |
---|---|
๐ Chainable API | Build URLs with style and grace |
๐ Query Management | Add, remove, update parameters like a boss |
๐ฃ๏ธ Path Handling | Navigate paths with ease |
๐ URL Encoding | Let URLCrafter handle the encoding magic |
๐ค Slugify | Turn "My Awesome Post!" into "my-awesome-post" |
๐ Fragment Support | Add those fancy #hashtags |
๐งฉ URL Parsing | Break down and rebuild URLs like a pro |
from urlcrafter import URL
# Build a simple URL
url = URL("https://example.com").add_path("products").add_param("page", 2).build()
print(url) # https://example.com/products?page=2
# Create a URL from scratch
url = URL().set_scheme("https").set_netloc("api.example.com").set_path("/v1/users").build()
print(url) # https://api.example.com/v1/users
# Parse and modify an existing URL
url = URL.parse("https://shop.example.com/products?category=electronics")
url.add_path("laptops").add_param("brand", "apple").remove_param("category")
print(url.build()) # https://shop.example.com/products/laptops?brand=apple
from urlcrafter import URL
# Turn any text into a URL-friendly slug
article_title = "10 Python Tips & Tricks for 2025!"
url = URL("https://blog.example.com").add_path("articles").add_slugified_path(article_title).build()
print(url) # https://blog.example.com/articles/10-python-tips-tricks-for-2025
from urlcrafter import URL
# Build REST API endpoints with ease
base_api = URL("https://api.example.com/v1")
# GET /users
users_endpoint = base_api.add_path("users").build()
print(users_endpoint) # https://api.example.com/v1/users
# GET /users/123/posts?status=published
user_posts = base_api.add_path("users").add_path("123").add_path("posts").add_param("status", "published").build()
print(user_posts) # https://api.example.com/v1/users/123/posts?status=published
Contributions are welcome! Let's make URL manipulation even more awesome together! ๐
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
๐ฏ Your friendly URL wizard - Craft, manipulate, and manage URLs with style!
We found that urlcrafter 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.
Research
/Security News
Threat actors hijacked Toptalโs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.