bestform / shorty Goto Github PK
View Code? Open in Web Editor NEWshorty is a python library for dealing with url shortening services.
shorty is a python library for dealing with url shortening services.
i think the handles of bit.ly links are depending on what api key and login is used so the test for bit.ly should fail if the testing person doesn't edit the test file and test the resolved url by himself manually
i'm not really sure if that is an issue but i wanted to write it down before i forget about it ;) - have to check this
At the moment, you have to set a login and api key for bit.ly in the settings.py file in order to be able to use this service.
This is bad because you don't want to maintain a settings file when using a library.
On the other hand I don't want the user to know beforehand, which type of url he is about to handle and therefore setting credentials before calling the "shorten" method of the shortener he received from shorty. I want the shortener implementations to behave exactly the same for every service.
I haven't come up with a smart solution for this problem and am open for suggestions.
Until now my only suggestion would be to set optional credentials when initializing the shorty class. It's not pretty but in my opinion it's the only way to provide a pleasant and unified usage of the library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.