{ "info": { "author": "Ashwin", "author_email": "hello@micropyramid.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://readthedocs.org/projects/microurl/badge/?version=latest\n :target: http://microurl.readthedocs.io/en/latest/?badge=latest\n.. image:: https://img.shields.io/pypi/dm/microurl.svg\n :target: https://pypi.python.org/pypi/microurl\n.. image:: https://img.shields.io/pypi/v/microurl.svg\n :target: https://pypi.python.org/pypi/microurl\n.. image:: https://travis-ci.org/MicroPyramid/microurl.svg?branch=master\n :target: https://travis-ci.org/MicroPyramid/microurl\n.. image:: https://coveralls.io/repos/github/MicroPyramid/microurl/badge.svg?branch=master\n :target: https://coveralls.io/github/MicroPyramid/microurl?branch=master\n.. image:: https://img.shields.io/pypi/l/microurl.svg\n :target: https://pypi.python.org/pypi/microurl/\n\npython library for url minification.\n\n\nFeatures\n--------\n- Google\n - URL Minifier\n - QR Generator\n- Bitly\n - URL Minifier\n\n\nInstallation\n------------\n\nInstall microurl via `pip `_\n\n.. code-block:: bash\n\n $ pip install microurl\n\nOr, if you want the code that is currently on GitHub\n\n.. code-block:: bash\n\n git clone git://github.com/micropyramid/microurl.git\n cd microurl\n python setup.py install\n\n\nStarting Out\n------------\n\nFirst, you'll want to head over to google or bily or supr and register an application!\n\nAfter you register, grab your applications ``Consumer Key`` and ``Consumer Secret`` from the application details tab.\n\nFirst, you'll want to import your desired minfier from microurl\n\n.. code-block:: python\n\n from microurl import google_mini\n\n\nBasic Usage Of Google Mini\n--------------------------\n\n**Function definitions (i.e. google_mini()) can be found by reading over microurl/google.py**\n\n.. code-block:: python\n\n minified = google_mini('validurl', 'Google_API_KEY')\n\nits as simple as that.\n\n\nQR Generator\n-------------\n\n.. Code-block:: python\n\n qr_url = qrcode(url)\n\n\nAuthentication for bitly\n------------------------\n\n.. code-block:: python\n\n from microurl import bitlyauthentication\n\n authentication = bitlyauthentication(client_id, client_secret, redirect_uri)\n\n auth_url=authentication.authorization_url()\n\nopen auth_url in your browser.After authorizing app, you will be redirected to redirect_url with code perameter.\n\n.. code-block:: python\n\n access_token=authentication.get_accesstoken_from_code(code) # code that you get to redirect_url in the above step\n\n\nAuthentication using username and password\n------------------------------------------\n\n.. code-block:: python\n\n access_token=authentication.get_accesstoken_from_username_pwd(bitlyusername or login email,password)\n\n\nBasic Usage of Bitly\n--------------------\n\n**Function definitions (i.e. shorturl()) can be found by reading over microurl/bitly.py**\n\n.. code-block:: python\n\n from microurl import bitlyapi\n\n bitly=bitlyapi(access_token) # access_token is getting from previous steps\n\n minified=bitly.shorturl(longurl,domain)['url'] # domain is optional here\n\n\n**To get detail information of bitlylink.**\n\n.. code-block:: python\n\n bitly.url_info(bitlylink,expand_user='True | False',hash='one or more bitly hashes') # expand_user,hash are optional here\n\n\n**To get the number of clicks on a single bitly link.**\n\n.. code-block:: python\n\n bitly.link_clicks(bitlylink, unit=\"day\", units=10, timezone=-4, limit=20, unit_reference_ts=\"now\")\n\n # here except bitlylink all are optional\n\n**To get the number of shares on a single bitly link.**\n\n.. code-block:: python\n\n bitly.link_shares(bitlylink, unit=\"day\", units=10, timezone=-4, limit=20, unit_reference_ts=\"now\")\n\n # here except bitlylink all are optional\n\n\n**To get loggedin user info**\n\n.. code-block:: python\n\n bitly.user_info()\n\n\n**To get user link history in reverse chronological order.**\n\n.. code-block:: python\n\n bitly.user_linkhistory(bitlylink, limit=20, offset=1, created_after='1381000000', created_before='1381844314', expand_client_id=True, archived=\"both\", private=\"both\")\n\n # here all fields are optional\n\n\nQuestions, Comments, etc?\n-------------------------\n\nhttps://github.com/MicroPyramid/microurl/issues\n\n\nWant to help?\n-------------\n\nmicrourl is useful, but ultimately only as useful as the people using it (say that ten times fast!). If you'd like to help, write example code, contribute patches, document things on the wiki, tweet about it. Your help is always appreciated!\n\n\nFor more Updates\n----------------\nhttps://micropyramid.com/oss/\n\n\nWe welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? `Contact us here`_\n\n.. _contact us here: https://micropyramid.com/contact-us/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/micropyramid/microurl", "keywords": "Url minifier python library using google,bitly", "license": "GPL3", "maintainer": null, "maintainer_email": null, "name": "microurl", "package_url": "https://pypi.org/project/microurl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/microurl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/micropyramid/microurl" }, "release_url": "https://pypi.org/project/microurl/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "microurl is a python module to create minfied urls", "version": "0.1.1" }, "last_serial": 2455222, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cf8747c655fdc064d24929a2d849511f", "sha256": "162799c89232e57871d48c29dd56ca802d5f740714aae48404183cb5e04b1adb" }, "downloads": -1, "filename": "microurl-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cf8747c655fdc064d24929a2d849511f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2158, "upload_time": "2013-10-13T15:20:50", "url": "https://files.pythonhosted.org/packages/cd/b2/bb2af03b0a485639eaab7c87de41bb1fcf82b77a7704f9714f12bd824368/microurl-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4a93a3c2f7f01bbf43b43e8c5bd5f717", "sha256": "1cb27409d7e5e139468149ec025057049cd1880c3771fca9f3db002b509daf50" }, "downloads": -1, "filename": "microurl-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4a93a3c2f7f01bbf43b43e8c5bd5f717", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2279, "upload_time": "2013-10-13T15:26:40", "url": "https://files.pythonhosted.org/packages/28/92/b2e7272336f5c0f41f583fad2c8dc3751dd6dc5d8a99e0885b4195db429a/microurl-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b294a7db7b9b0ee700d09f9c446c59b5", "sha256": "61a8ac6a18f05e91e6ae5a4860a80e454e45c01f4315095dbfd2e742b2c10f6f" }, "downloads": -1, "filename": "microurl-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b294a7db7b9b0ee700d09f9c446c59b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2306, "upload_time": "2013-10-13T17:27:16", "url": "https://files.pythonhosted.org/packages/05/93/a9abf886346017b7ec44b7c389d4678c1260651fb19b181461a194365c98/microurl-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1ec6d6398a922ab4cbfb1c23cb220d84", "sha256": "ffd4ed5243b0c295700a62b40f982bd251bf2fdef1549f3392c9e89cd83eefb4" }, "downloads": -1, "filename": "microurl-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1ec6d6398a922ab4cbfb1c23cb220d84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2225, "upload_time": "2013-10-13T17:30:14", "url": "https://files.pythonhosted.org/packages/03/4e/a9a503dd839747051a071090eae6a6d037c4ee3e63cff2592230c74b0eb7/microurl-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "1a568b8f3b24700a8ea349b024938b0c", "sha256": "ced723b4e65f47b79ce6a31e7ae78ddebfdca8f8f42c9df0bfec83e6e3b0254b" }, "downloads": -1, "filename": "microurl-0.0.5.tar.gz", "has_sig": false, "md5_digest": "1a568b8f3b24700a8ea349b024938b0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2220, "upload_time": "2013-10-13T17:55:15", "url": "https://files.pythonhosted.org/packages/1c/50/d9af832cb50085d0e6f248a8a46edcd91631a86d269e52546086e26650a4/microurl-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "4669b29e48a2d13ca915f79f1b1fa019", "sha256": "efbe3bca53c9dbdc0f3488da2ddfbd1099072e0fa563bcce7723d01ac1371096" }, "downloads": -1, "filename": "microurl-0.0.6.tar.gz", "has_sig": false, "md5_digest": "4669b29e48a2d13ca915f79f1b1fa019", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12543, "upload_time": "2013-10-15T14:10:47", "url": "https://files.pythonhosted.org/packages/26/10/de92d5bba92b86e59c12c2321e79ee16a51293f0d4e9a4d3944573dacae4/microurl-0.0.6.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "118e25520e8db478775465dfe4b779cf", "sha256": "b059d410a2a7475f686cf639b75a8f80f156431452a6daf87106e7d33e302960" }, "downloads": -1, "filename": "microurl-0.1.tar.gz", "has_sig": false, "md5_digest": "118e25520e8db478775465dfe4b779cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12479, "upload_time": "2016-03-23T10:07:51", "url": "https://files.pythonhosted.org/packages/58/59/0ad426dec0a6e131b23900bb0e68807b0919cc988ef27c0cfeb6e6eb890f/microurl-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "83d51cb5ddc634c9d45f5802e1028239", "sha256": "4fb1a5d7b933bbf3b2d6c493dde467038ba988aa60c59a51fffbea5cad8d1183" }, "downloads": -1, "filename": "microurl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "83d51cb5ddc634c9d45f5802e1028239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13059, "upload_time": "2016-11-11T14:43:29", "url": "https://files.pythonhosted.org/packages/8b/79/d095ee579956afa6dd7d5bd7da6c2c0b014ab0db191e433f7684dab75675/microurl-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83d51cb5ddc634c9d45f5802e1028239", "sha256": "4fb1a5d7b933bbf3b2d6c493dde467038ba988aa60c59a51fffbea5cad8d1183" }, "downloads": -1, "filename": "microurl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "83d51cb5ddc634c9d45f5802e1028239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13059, "upload_time": "2016-11-11T14:43:29", "url": "https://files.pythonhosted.org/packages/8b/79/d095ee579956afa6dd7d5bd7da6c2c0b014ab0db191e433f7684dab75675/microurl-0.1.1.tar.gz" } ] }