Giter Site home page Giter Site logo

shorty's People

Contributors

bestform avatar epex avatar kelloggs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

shorty's Issues

handles of bit.ly

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

Get rid of settings.py

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.

Use setuptools

We really should add a setup.py utilizing the setuptools of python.
This is a long term goal and shouldn't be done until we found a solution for issue #2 (#2) for obvious reasons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.