About
CuttApi is one of the best URL shortener modules for Python. It allows you to easily shorten URLs using the Cuttly URL shortener service just by entering your API key. The module takes care of the rest automatically.
Installation
To install CuttApi, you need to have the following requirements installed:
- requests
- urllib3
- pyperclip
You can use pip to install the required modules:
pip install CuttApi
Cuttshort
Using Cuttshort is simple. You just need to follow these steps:
from CuttApi import Cuttshort
import stdiomask
api_key = stdiomask.getpass("Enter your Cuttly API key: ")
short = Cuttshort(api_key)
If you enter the correct API key, you can proceed to use the module. If you enter an incorrect API key, you will be prompted to enter the correct one. Once you proceed, you can continue with the URL shortening process and optionally provide custom aliases.
yurl
Cuttshort class is supported by one more class which is a URL corrector as well as checker!
from CuttApi import yurl
a = yurl("google.com").link
print(a)
The above code will return https://www.google.com/
regardless of whether you provide "google.com", "http://google.com", "https://google.com", "google.com/", "http://google.com/", "https://google.com/", "www.google.com", "http://www.google.com", "https://www.google.com", "www.google.com/", "http://www.google.com/", or "https://www.google.com/".
Feel free to try it with other URLs as well and let CuttApi know about it!
Privacy
CuttApi developer respects your privacy! The data you enter does not go over the internet except to Cuttly for creations and updates. The data you enter is safely stored on your device so that you can work on links and find them easily!
Please keep the following points in mind:
- Don't delete the file to ensure the best experience.
- The file is stored with the name as your API key, so any manual updates by the user to this file can cause the user not being able to use the latest features.
- Multiple API keys can be used on the same device.
Feedback
Feedback is vital for any software! You can provide your feedback at https://cutt.ly/CuttApifeedback.
License
CuttApi is licensed under the MIT License.
MIT License ======================= Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contact Developer
For any inquiries or support, please feel free to contact the developer:
- Name: Devraj Therani
- Email: ttctlc96e@mozmail.com
- Phone: +91 8962496246