{ "info": { "author": "Stefan R. Filipek", "author_email": "srfilipek@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "ftweet\n======\n\n|pypi badge| |downloads badge|\n\n.. |pypi badge| image:: https://img.shields.io/pypi/v/ftweet.svg?maxAge=3600\n :target: https://pypi.python.org/pypi/ftweet/\n.. |downloads badge| image:: https://img.shields.io/pypi/dm/ftweet.svg?maxAge=3600\n :target: https://pypi.python.org/pypi/ftweet/\n\nIntroduction\n------------\nThis is a simple python script that allows you to tweet status updates from\nthe command line.\n\nThe script will post each line of a file (such as standard input) as an\nindividual status update. If a line is more than 140 characters in length, the\nupdate may fail. The script can automatically truncate a line to this limit with\nthe ``--truncate`` command line option.\n\nThis script performs no interpretation of the input nor any scrubbing of the\ntext for special characters.\n\nPrerequisites\n-------------\n* Python 2.7 or 3.0+\n* Python tweepy library\n\nInstallation\n------------\n\nThe module can be installed using the setup script:::\n\n sudo python setup.py install\n\nThis will install the ftweet.py module and an ftweet executable script.\n\nConfiguration\n-------------\nThe authentication tokens used to access Twitter are stored separately from\nthe python script in a JSON file. This contains tokens and secrets for both\nthe API and access tokens. These access tokens can be configured by creating\na Twitter App (https://apps.twitter.com).\n\nThe configuration file must have the following format:::\n\n {\n \"api_key\": ,\n \"api_secret\": ,\n \"token\": ,\n \"token_secret\": \n }\n\nNote that the keys must be quoted strings. See http://json.org for more\ninformation about the JSON format.\n\nBy default, ftweet looks for the configuration file in the user's home\ndirectory named ``~/.ftweet``. You can also pass in a configuration file\nusing command line argument ``--config``.\n\nExample Use\n-----------\nThe genesis of this project was the desire to post Snort alerts to Twitter.\nWhat good are intrusion alerts if they don't show up on your smartphone? The\nftweet script is designed to be used in conjunction with other BSD/Linux\nutilities, or stand-alone on the command line.\n\nTweeting a simple status update:::\n\n echo \"Hello World!\" | ftweet\n\nMonitoring for sudo events from the sylog, truncating the line if necessary:::\n\n tail -f /var/log/auth.log | grep sudo | ftweet --truncate\n\nUsing in combination with swatch to monitor for snort alerts. The ``~/.swatchrc``\nfile may look like:::\n\n watchfor /snort\\[\\d{1,5}\\]:/\n pipe /bin/sed -r -f ~/snort/my_scrub_rules.sed | ftweet --truncate", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/srfilipek/ftweet", "keywords": "twitter,tweet,commandline,file", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ftweet", "package_url": "https://pypi.org/project/ftweet/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ftweet/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://gitlab.com/srfilipek/ftweet" }, "release_url": "https://pypi.org/project/ftweet/1.1/", "requires_dist": null, "requires_python": null, "summary": "A simple python script to tweet status updates from the command line.", "version": "1.1" }, "last_serial": 2501561, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "5c977cdf99310d62957136ceff6c1189", "sha256": "4ae26a2c64a3b9447865ebd21b569322595336af143a04a6a23e2c12d7b8f2b6" }, "downloads": -1, "filename": "ftweet-1.1.tar.gz", "has_sig": false, "md5_digest": "5c977cdf99310d62957136ceff6c1189", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3933, "upload_time": "2016-12-06T01:22:22", "url": "https://files.pythonhosted.org/packages/06/a3/8e6c72c431634c21152b7db23368146c3faba52713ee28a852987be3d173/ftweet-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5c977cdf99310d62957136ceff6c1189", "sha256": "4ae26a2c64a3b9447865ebd21b569322595336af143a04a6a23e2c12d7b8f2b6" }, "downloads": -1, "filename": "ftweet-1.1.tar.gz", "has_sig": false, "md5_digest": "5c977cdf99310d62957136ceff6c1189", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3933, "upload_time": "2016-12-06T01:22:22", "url": "https://files.pythonhosted.org/packages/06/a3/8e6c72c431634c21152b7db23368146c3faba52713ee28a852987be3d173/ftweet-1.1.tar.gz" } ] }