{ "info": { "author": "Hynek Schlawack", "author_email": "hs@ox.cx", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Framework :: Twisted", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "txStatHat\n=========\n\nA Twisted_ API wrapper for StatHat_\u2019s `EZ API`_.\n\nThe usage is as simple as::\n\n from twisted.internet import reactor\n from twisted.internet.defer import inlineCallbacks\n from txstathat import txStatHat\n\n\n @inlineCallbacks\n def doSomeStats():\n sh = txStatHat('ezKeyOrEmail')\n yield sh.count('aCounter') # Counts by 1 by default\n yield sh.count('anotherCounter', 42)\n yield sh.value('aValue', 0.42)\n\n\n reactor.callLater(1, doSomeStats)\n reactor.run()\n\nThe ``ezKeyOrEmail`` is your e-mail address in the beginning, but can be\nchanged in the account settings to something more safe. There is no such thing\nas a password.\n\nBy default, errors are swallowed silently so disruptions at StatHat don\u2019t lead\nto disruption in your services by accident. To get network exceptions as well\nas API error messages, set ``ignore_errors=False`` when instantiating\ntxStatHat. You should only do so if you have really good reasons.\n\n **Please note**: At the moment, StatHat.com does *not* report an error when\n an incorrect EZ API key is submitted. Therefore the above example will work\n without any effect even if you don\u2019t replace the API key.\n\nStatHat.com seems to have generally a similar attitude towards errors as\ntxStatHat. They return an OK except if you use the API incorrectly (don\u2019t\nsupply an API key for example). The difference is that if ``ignore_errors`` is\nleft at the default ``True``, network problems accessing the API are ignored as\nwell.\n\nDepending on the availability of pyOpenSSL_, txStatHat uses HTTPS for API calls\nif possible. While there isn\u2019t much real damage an attacker can do to you if\n(s)he hijacks your API key, I strongly suggest to install and use it.\n\n.. _Twisted: http://twistedmatrix.com/\n.. _StatHat: http://www.stathat.com/\n.. _`EZ API`: http://www.stathat.com/docs/api\n.. _pyOpenSSL: http://pypi.python.org/pypi/pyOpenSSL/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hynek/txStatHat", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "txStatHat", "package_url": "https://pypi.org/project/txStatHat/", "platform": "any", "project_url": "https://pypi.org/project/txStatHat/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hynek/txStatHat" }, "release_url": "https://pypi.org/project/txStatHat/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Twisted wrapper for StatHat.com", "version": "0.2.0" }, "last_serial": 638572, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "0010903dcb60f6d21abf0560b5da16ff", "sha256": "d852261527bd909ed05d3438801b663cbbc024ecfc2f0d57937db8bd622c3527" }, "downloads": -1, "filename": "txStatHat-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0010903dcb60f6d21abf0560b5da16ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5479, "upload_time": "2012-04-05T13:30:18", "url": "https://files.pythonhosted.org/packages/72/a5/794c92fda8a44f80feb6defa48535a5bc681e2c943a1866e4d3d3f3569d0/txStatHat-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0010903dcb60f6d21abf0560b5da16ff", "sha256": "d852261527bd909ed05d3438801b663cbbc024ecfc2f0d57937db8bd622c3527" }, "downloads": -1, "filename": "txStatHat-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0010903dcb60f6d21abf0560b5da16ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5479, "upload_time": "2012-04-05T13:30:18", "url": "https://files.pythonhosted.org/packages/72/a5/794c92fda8a44f80feb6defa48535a5bc681e2c943a1866e4d3d3f3569d0/txStatHat-0.2.0.tar.gz" } ] }