![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
URL Shortener using s.lain.la API.
requests
is used to send the API request.
pyperclip
is used to copy the link to the clipboard.
If you want to build this on your own, you can install the requirements with
pip install -r requirements.txt
or install the package by running
pip install lain-shorten
Python's native re
(used to check validity of the url), argparse
(parse return request and set command argument) and setuptools
(used to build the script) packages are also used.
s.lain.la
can shorten URLs using curl. I tend to forget the curl syntax and arguments quite easily, so I made a Python package to streamline things. Below is the aforementioned curl command.
curl -X POST -d 'url=https://yoururlhere.com' https://s.lain.la
I just wrapped it inside Python and added validation to check for links and copied the return address to clipboard for ease of use.
You can run the script with
lain-shorten <your-url-here>
I added support for links not starting with http/https as well.
FAQs
URL Shortener using s.lain.la API.
We found that lain-shorten 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.