{ "info": { "author": "Google Inc.", "author_email": "opensource@google.com", "bugtrack_url": null, "classifiers": [], "description": "Google Application Utilities for Python\n=======================================\n\nThis project is a small collection of utilities for building Python\napplications. It includes some of the same set of utilities used to build and\nrun internal Python apps at Google.\n\nFeatures:\n\n * Simple application startup integrated with python-gflags.\n * Subcommands for command-line applications.\n * Option to drop into pdb on uncaught exceptions.\n * Helper functions for dealing with files.\n * High-level profiling tools.\n * Timezone-aware wrappers for datetime.datetime classes.\n * Improved TestCase with the same methods as unittest2, plus helpful flags for\n test startup.\n * google_test setuptools command for running tests.\n * Helper module for creating application stubs.\n\n\nInstallation\n============\n\nTo install the package, simply run:\n python setup.py install\n\n\nGoogle-Style Tests\n==================\n\nGoogle-style tests (those run with basetest.main()) differ from setuptools-style\ntests in that test modules are designed to be run as __main__. Setting up your\nproject to use Google-style tests is easy:\n\n1. Create one or more test modules named '*_test.py' in a directory. Each test\nmodule should have a main block that runs basetest.main():\n # In tests/my_test.py\n from google.apputils import basetest\n\n class MyTest(basetest.TestCase):\n def testSomething(self):\n self.assertTrue('my test')\n\n if __name__ == '__main__':\n basetest.main()\n\n2. Add a setup requirement on google-apputils and set the test_dir option:\n # In setup.py\n setup(\n ...\n setup_requires = ['google-apputils>=0.2'],\n test_dir = 'tests',\n )\n\n3. Run your tests:\n python setup.py google_test\n\n\nGoogle-Style Stub Scripts\n=========================\n\nGoogle-style binaries (run with app.run()) are intended to be executed directly\nat the top level, so you should not use a setuptools console_script entry point\nto point at your main(). You can use distutils-style scripts if you want.\n\nAnother alternative is to use google.apputils.run_script_module, which is a\nhandy wrapper to execute a module directly as if it were a script:\n\n1. Create a module like 'stubs.py' in your project:\n # In my/stubs.py\n from google.apputils import run_script_module\n\n def RunMyScript():\n import my.script\n run_script_module.RunScriptModule(my.script)\n\n def RunMyOtherScript():\n import my.other_script\n run_script_module.RunScriptModule(my.other_script)\n\n2. Set up entry points in setup.py that point to the functions in your stubs\nmodule:\n # In setup.py\n setup(\n ...\n entry_points = {\n 'console_scripts': [\n 'my_script = my.stubs:RunMyScript',\n 'my_other_script = my.stubs.RunMyOtherScript',\n ],\n },\n )\n\nThere are also useful flags you can pass to your scripts to help you debug your\nbinaries; run your binary with --helpstub to see the full list.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.google.com/p/google-apputils-python", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "google-apputils", "package_url": "https://pypi.org/project/google-apputils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/google-apputils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://code.google.com/p/google-apputils-python" }, "release_url": "https://pypi.org/project/google-apputils/0.4.2/", "requires_dist": null, "requires_python": null, "summary": "Obsolete. Please migrate to absl-py instead.", "version": "0.4.2" }, "last_serial": 3211462, "releases": { "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "9a0f8941502e3ad81561a9e9073a60f1", "sha256": "a91b42650bfa77575f70d62ae99f387d753d7c8c15cf67d3d4f01e115933095f" }, "downloads": -1, "filename": "google-apputils-0.2.tar.gz", "has_sig": false, "md5_digest": "9a0f8941502e3ad81561a9e9073a60f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36749, "upload_time": "2011-01-14T04:52:51", "url": "https://files.pythonhosted.org/packages/29/5a/172c654bec3450abc4147ed379fb1eec29e6cd95be21d27f0f3542b1f62f/google-apputils-0.2.tar.gz" } ], "0.2.1": [], "0.2.2": [ { "comment_text": "", "digests": { "md5": "235ab202502b850f8dd9bed28d772704", "sha256": "42931ca756fd810b8aefa52b56a5ddf910935ea69b4d8a6ae69b9e7333c81465" }, "downloads": -1, "filename": "google-apputils-0.3.0.tar.gz", "has_sig": false, "md5_digest": "235ab202502b850f8dd9bed28d772704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 63833, "upload_time": "2012-03-01T00:44:17", "url": "https://files.pythonhosted.org/packages/90/1f/407536e7dd526038dd4baf918f3ad52030cb1938b7dd15394aa4ee90745b/google-apputils-0.3.0.tar.gz" } ], "0.3.0": [], "0.4.0": [ { "comment_text": "", "digests": { "md5": "59e19f16b9a1adb2c84987581ee8b659", "sha256": "b260eb39f2723b71329ad016773033b95a31e89d8c9e13b8e6a1ef8eed8e94a3" }, "downloads": -1, "filename": "google-apputils-0.4.0.tar.gz", "has_sig": false, "md5_digest": "59e19f16b9a1adb2c84987581ee8b659", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80014, "upload_time": "2014-04-07T23:59:47", "url": "https://files.pythonhosted.org/packages/86/7d/e449a4611afc8b94af0190b1edf7eb070f27f83083078bf232b7a19801b6/google-apputils-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "c72daa9918fe731bf575da0e9958af47", "sha256": "f30d6782e563336b7d0b52f4ef3eda809b2ba213d0d2e63034dfbfb422e6ae69" }, "downloads": -1, "filename": "google_apputils-0.4.1-py2.7.egg", "has_sig": false, "md5_digest": "c72daa9918fe731bf575da0e9958af47", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 118186, "upload_time": "2014-10-15T05:00:36", "url": "https://files.pythonhosted.org/packages/40/e2/daf5d55b894c869eba40d6f462b1faa618bd7c8a503ab0cbdd7476dce2bb/google_apputils-0.4.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "049ed237ad43afdc0931c2e5a0c50f3a", "sha256": "2b48bb6c20a94faaeaaf15e22603fd603977e8b8872269fdc784e49d70a9baeb" }, "downloads": -1, "filename": "google-apputils-0.4.1.tar.gz", "has_sig": false, "md5_digest": "049ed237ad43afdc0931c2e5a0c50f3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48080, "upload_time": "2014-10-15T05:00:29", "url": "https://files.pythonhosted.org/packages/8b/8a/7111b3bb0d825b1ac4e54cc0f092936e05238703fee1e2b890e218108b4f/google-apputils-0.4.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "262adc45be153bc005f0e3185aa526e6", "sha256": "821cb2756e0719199f6bd5c2077b8b91db118517f0fe1aa88765f8e5c32a95df" }, "downloads": -1, "filename": "google-apputils-0.4.1.zip", "has_sig": false, "md5_digest": "262adc45be153bc005f0e3185aa526e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59308, "upload_time": "2014-10-15T05:00:32", "url": "https://files.pythonhosted.org/packages/75/e4/5d05e808d9270695c3d01ee9e7757871843a6dda3d1268b2cceced63de76/google-apputils-0.4.1.zip" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "38b003cf8b73264340ffa8beeafaaf84", "sha256": "c01f1f743f451134fcb823eb095d689b8471581e401bb3d3e0d13741ee68ca2a" }, "downloads": -1, "filename": "google_apputils-0.4.2-py2.7.egg", "has_sig": false, "md5_digest": "38b003cf8b73264340ffa8beeafaaf84", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 118300, "upload_time": "2015-02-21T01:38:32", "url": "https://files.pythonhosted.org/packages/e4/a9/05540567740506890677937aff845bc02e17c3d4cf9bf59eb92ea3dc054b/google_apputils-0.4.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "fb9fadf621dbecf28c8dabb5fe37ddb3", "sha256": "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29" }, "downloads": -1, "filename": "google-apputils-0.4.2.tar.gz", "has_sig": false, "md5_digest": "fb9fadf621dbecf28c8dabb5fe37ddb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81095, "upload_time": "2015-02-21T01:38:27", "url": "https://files.pythonhosted.org/packages/69/66/a511c428fef8591c5adfa432a257a333e0d14184b6c5d03f1450827f7fe7/google-apputils-0.4.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "587c66c37f7f79f63b0b454628c4f660", "sha256": "f518d9c3ccf433352a79ad221dc7b80239dc53d030d132ada70fa51eadf7e33b" }, "downloads": -1, "filename": "google-apputils-0.4.2.zip", "has_sig": false, "md5_digest": "587c66c37f7f79f63b0b454628c4f660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 101503, "upload_time": "2015-02-21T01:38:30", "url": "https://files.pythonhosted.org/packages/09/9c/4b038fbc54ef7ee3640c0f75f87c89f4bb4c7f20b31b8bfc1093e15ead9d/google-apputils-0.4.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38b003cf8b73264340ffa8beeafaaf84", "sha256": "c01f1f743f451134fcb823eb095d689b8471581e401bb3d3e0d13741ee68ca2a" }, "downloads": -1, "filename": "google_apputils-0.4.2-py2.7.egg", "has_sig": false, "md5_digest": "38b003cf8b73264340ffa8beeafaaf84", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 118300, "upload_time": "2015-02-21T01:38:32", "url": "https://files.pythonhosted.org/packages/e4/a9/05540567740506890677937aff845bc02e17c3d4cf9bf59eb92ea3dc054b/google_apputils-0.4.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "fb9fadf621dbecf28c8dabb5fe37ddb3", "sha256": "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29" }, "downloads": -1, "filename": "google-apputils-0.4.2.tar.gz", "has_sig": false, "md5_digest": "fb9fadf621dbecf28c8dabb5fe37ddb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81095, "upload_time": "2015-02-21T01:38:27", "url": "https://files.pythonhosted.org/packages/69/66/a511c428fef8591c5adfa432a257a333e0d14184b6c5d03f1450827f7fe7/google-apputils-0.4.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "587c66c37f7f79f63b0b454628c4f660", "sha256": "f518d9c3ccf433352a79ad221dc7b80239dc53d030d132ada70fa51eadf7e33b" }, "downloads": -1, "filename": "google-apputils-0.4.2.zip", "has_sig": false, "md5_digest": "587c66c37f7f79f63b0b454628c4f660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 101503, "upload_time": "2015-02-21T01:38:30", "url": "https://files.pythonhosted.org/packages/09/9c/4b038fbc54ef7ee3640c0f75f87c89f4bb4c7f20b31b8bfc1093e15ead9d/google-apputils-0.4.2.zip" } ] }