{ "info": { "author": "Rick Harris", "author_email": "rconradharris@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "========\njsondate\n========\n\n\nSick of rewriting the same JSON datetime handling code for each project?\n``jsondate`` is a drop-in replacement for Python's standard ``json`` library that\nadds sensible handling of ``datetime`` and ``date`` objects.\n\n``jsondate`` uses ISO8601 for encoding ``datetime`` objects and the\ndate-specific part of ISO6801 for encoding ``date`` objects.\n\nExample::\n\n import datetime\n import jsondate as json\n\n >>> data = json.dumps(dict(created_at=datetime.datetime(2012, 10, 31)))\n '{\"created_at\": \"2012-10-31T00:00:00Z\"}'\n\n >>> json.loads(data)\n {u'created_at': datetime.datetime(2012, 10, 31, 0, 0)}\n\n >>> date = json.dumps(dict(date=datetime.date(2012, 10, 31)))\n '{\"date\": \"2012-10-31\"}'\n\n >>> json.loads(data)\n {u'created_at': datetime.date(2012, 10, 31)}\n\n\n\nUnicode Empty Strings\n=====================\n\nThe ``json`` standard library module will return ``unicode`` objects for all\nstrings except empty strings, which are returned as ``str`` objects.\n\nThis inconsistency can be annoying when using libraries that expect all input\nto be ``unicode``.\n\n``jsondate`` fixes this by returning empty-strings as ``unicode`` objects as\nwell.\n", "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/rconradharris/jsondate", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "jsondate", "package_url": "https://pypi.org/project/jsondate/", "platform": "any", "project_url": "https://pypi.org/project/jsondate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rconradharris/jsondate" }, "release_url": "https://pypi.org/project/jsondate/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "JSON with datetime support", "version": "0.1.2" }, "last_serial": 793817, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e460af116e1d2033555993ff69b1e02e", "sha256": "3b666719c01dc2561d9be6607635698805ffba6e6422238a5bd17ec2808b3579" }, "downloads": -1, "filename": "jsondate-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e460af116e1d2033555993ff69b1e02e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3013, "upload_time": "2012-11-01T04:52:04", "url": "https://files.pythonhosted.org/packages/9a/65/cf2680383a0442f2e80d76bd10b58ba8ac041472a7cb25a36bc2785bf116/jsondate-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ebd88fc4495bd4a2e440df9eca237a0c", "sha256": "0670000ef127aa46fe071c373616b85180895e6753b2bda878669da0174eddb0" }, "downloads": -1, "filename": "jsondate-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ebd88fc4495bd4a2e440df9eca237a0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3457, "upload_time": "2012-11-06T06:57:41", "url": "https://files.pythonhosted.org/packages/ae/75/192951c8e3d832929ce741e90f3fce81830211d127c70d1c756e3db921f4/jsondate-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "74ea0b9da2a9a900bc35001dd40e4581", "sha256": "7ecc7144ae207c72fcf73b1563e1762e38404ea9f069ec7f50f0f5dc59f23f7e" }, "downloads": -1, "filename": "jsondate-0.1.2.tar.gz", "has_sig": false, "md5_digest": "74ea0b9da2a9a900bc35001dd40e4581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2012-11-10T16:41:56", "url": "https://files.pythonhosted.org/packages/31/68/3289811a68f56478ffd1cf790f875e01c00c1abd941d5c9459d5cd7beaf1/jsondate-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74ea0b9da2a9a900bc35001dd40e4581", "sha256": "7ecc7144ae207c72fcf73b1563e1762e38404ea9f069ec7f50f0f5dc59f23f7e" }, "downloads": -1, "filename": "jsondate-0.1.2.tar.gz", "has_sig": false, "md5_digest": "74ea0b9da2a9a900bc35001dd40e4581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2012-11-10T16:41:56", "url": "https://files.pythonhosted.org/packages/31/68/3289811a68f56478ffd1cf790f875e01c00c1abd941d5c9459d5cd7beaf1/jsondate-0.1.2.tar.gz" } ] }