{ "info": { "author": "Tobias Bengfort", "author_email": "tobias.bengfort@posteo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP" ], "description": "ldif3 - generate and parse LDIF data (see `RFC 2849`_).\n\nThis is a fork of the ``ldif`` module from `python-ldap`_ with python3/unicode\nsupport. See the first entry in CHANGES.rst for a more complete list of\ndifferences.\n\nUsage\n-----\n\nParse LDIF from a file (or ``BytesIO``)::\n\n from ldif3 import LDIFParser\n from pprint import pprint\n\n parser = LDIFParser(open('data.ldif', 'rb'))\n for dn, entry in parser.parse():\n print('got entry record: %s' % dn)\n pprint(record)\n\n\nWrite LDIF to a file (or ``BytesIO``)::\n\n from ldif3 import LDIFWriter\n\n writer = LDIFWriter(open('data.ldif', 'wb'))\n writer.unparse('mail=alice@example.com', {\n 'cn': ['Alice Alison'],\n 'mail': ['alice@example.com'],\n 'objectclass': ['top', 'person'],\n })\n\nUnicode support\n---------------\n\nThe stream object that is passed to parser or writer must be an ascii byte\nstream.\n\nThe spec allows to include arbitrary data in base64 encoding or via URL. There\nis no way of knowing the encoding of this data. To handle this, there are two\nmodes:\n\nBy default, the ``LDIFParser`` will try to interpret all values as UTF-8 and\nleave only the ones that fail to decode as bytes. But you can also pass an\n``encoding`` of ``None`` to the constructor, in which case the parser will not\ntry to do any conversion and return bytes directly.\n\n\n.. _RFC 2849: https://tools.ietf.org/html/rfc2849\n.. _python-ldap: http://www.python-ldap.org/\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xi/ldif3", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "ldif3", "package_url": "https://pypi.org/project/ldif3/", "platform": "", "project_url": "https://pypi.org/project/ldif3/", "project_urls": { "Homepage": "https://github.com/xi/ldif3" }, "release_url": "https://pypi.org/project/ldif3/3.2.2/", "requires_dist": null, "requires_python": "", "summary": "generate and parse LDIF data (see RFC 2849).", "version": "3.2.2" }, "last_serial": 2626223, "releases": { "3.0.0": [ { "comment_text": "", "digests": { "md5": "fcda876a29aea89d852c880f34863628", "sha256": "e11dc3db54fb3a593629b77ac8df3db238ee0a949368c3d23fd6cb05b6832892" }, "downloads": -1, "filename": "ldif3-3.0.0.tar.gz", "has_sig": false, "md5_digest": "fcda876a29aea89d852c880f34863628", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5055, "upload_time": "2015-05-22T08:49:30", "url": "https://files.pythonhosted.org/packages/70/90/8207f14fbaf16728c8b87728e416e051f41b07fca7a7dd9d2dc92dd68c39/ldif3-3.0.0.tar.gz" } ], "3.0.1": [ { "comment_text": "", "digests": { "md5": "47e5eb7438ff3f28299f72a3fc0a1a57", "sha256": "cb4664446c9cc75365ec538b6bd4a2ba41722848a948c8c802b942a65f16b7e8" }, "downloads": -1, "filename": "ldif3-3.0.1.tar.gz", "has_sig": false, "md5_digest": "47e5eb7438ff3f28299f72a3fc0a1a57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5091, "upload_time": "2015-05-22T21:31:48", "url": "https://files.pythonhosted.org/packages/90/b8/bbf3bcbda096b0731ac4e4c4f6316bff250ce09e4d02b4a734a5a5d3c8cf/ldif3-3.0.1.tar.gz" } ], "3.0.2": [ { "comment_text": "", "digests": { "md5": "7bc824ca56ebde6e5484a2e27a7a8494", "sha256": "0d35099f432c1208755b46223c5e0ef1ac05f7f95020eca5f1e024fda2926b78" }, "downloads": -1, "filename": "ldif3-3.0.2.tar.gz", "has_sig": false, "md5_digest": "7bc824ca56ebde6e5484a2e27a7a8494", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7809, "upload_time": "2015-06-24T21:21:34", "url": "https://files.pythonhosted.org/packages/00/bb/d8a1509b353e53ad635a146a88bc4d332fb778a677b3d27e5a168a35b745/ldif3-3.0.2.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "bbb4bb6897f19f55bb885c3c16a63a52", "sha256": "eab476aa46f77eaf42dbcd42f7852b4651da9a7bd21a3eff2e5555609df9ca4f" }, "downloads": -1, "filename": "ldif3-3.1.0.tar.gz", "has_sig": false, "md5_digest": "bbb4bb6897f19f55bb885c3c16a63a52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8101, "upload_time": "2015-07-09T14:33:14", "url": "https://files.pythonhosted.org/packages/dd/e1/230c5cd904ad061dcc641cf73ae658a3e24c61e73c8760a872a54371a377/ldif3-3.1.0.tar.gz" } ], "3.1.1": [ { "comment_text": "", "digests": { "md5": "c3a45a5d746a9fbb61d84ec0ac11882c", "sha256": "ccdf6ac2ed3f88912b7509529694c0e289c4392d34f2095cca22fa6d70ac189a" }, "downloads": -1, "filename": "ldif3-3.1.1.tar.gz", "has_sig": false, "md5_digest": "c3a45a5d746a9fbb61d84ec0ac11882c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8107, "upload_time": "2015-09-22T06:37:16", "url": "https://files.pythonhosted.org/packages/51/be/8f0635d68eec729c178369f4bb0187ed1629b37402315962ea284ef16873/ldif3-3.1.1.tar.gz" } ], "3.2.0": [ { "comment_text": "", "digests": { "md5": "ac1230a112ff4e45c91695e736a38b67", "sha256": "c0c4235999e99e9b91e0cfeaa756bcc1f8123797ec6fe27db260bea4bd0f7429" }, "downloads": -1, "filename": "ldif3-3.2.0.tar.gz", "has_sig": false, "md5_digest": "ac1230a112ff4e45c91695e736a38b67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8798, "upload_time": "2016-06-03T09:29:45", "url": "https://files.pythonhosted.org/packages/55/d5/f68e42b6c1bf08576548fa3593af0ae4d5e9a8968cdee8b6b3c3cbdf1aef/ldif3-3.2.0.tar.gz" } ], "3.2.1": [ { "comment_text": "", "digests": { "md5": "d3c2977893fc3c1abde26871055bf266", "sha256": "88b238001b1183ba5eca80247bca2b68ea33352426e3554713201aea0286893c" }, "downloads": -1, "filename": "ldif3-3.2.1.tar.gz", "has_sig": false, "md5_digest": "d3c2977893fc3c1abde26871055bf266", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8910, "upload_time": "2016-12-27T20:09:19", "url": "https://files.pythonhosted.org/packages/33/71/76d25996213d6b6a3f7c9e7f300ffae09b92d3c6a50bc1436da840535235/ldif3-3.2.1.tar.gz" } ], "3.2.2": [ { "comment_text": "", "digests": { "md5": "ef09eb3cb47b8f023744baa1837b197e", "sha256": "0afcb46b23731afcdc033af75fb5b54456a9c4ae692882c6f8ff1fef0bfb3e7f" }, "downloads": -1, "filename": "ldif3-3.2.2.tar.gz", "has_sig": false, "md5_digest": "ef09eb3cb47b8f023744baa1837b197e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8977, "upload_time": "2017-02-07T20:05:31", "url": "https://files.pythonhosted.org/packages/50/ff/2686e25a7abdb273b5b85b752f4fcbd14d3aca52bac9cf6ddda17845ede2/ldif3-3.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef09eb3cb47b8f023744baa1837b197e", "sha256": "0afcb46b23731afcdc033af75fb5b54456a9c4ae692882c6f8ff1fef0bfb3e7f" }, "downloads": -1, "filename": "ldif3-3.2.2.tar.gz", "has_sig": false, "md5_digest": "ef09eb3cb47b8f023744baa1837b197e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8977, "upload_time": "2017-02-07T20:05:31", "url": "https://files.pythonhosted.org/packages/50/ff/2686e25a7abdb273b5b85b752f4fcbd14d3aca52bac9cf6ddda17845ede2/ldif3-3.2.2.tar.gz" } ] }