tested django-newsletter
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
Metadata-Version: 1.1
|
||||
Name: ldif3
|
||||
Version: 3.1.1
|
||||
Summary: generate and parse LDIF data (see RFC 2849).
|
||||
Home-page: https://github.com/xi/ldif3
|
||||
Author: Tobias Bengfort
|
||||
Author-email: tobias.bengfort@posteo.de
|
||||
License: BSD
|
||||
Description: ldif3 - generate and parse LDIF data (see `RFC 2849`_).
|
||||
|
||||
This is a fork of the ``ldif`` module from `python-ldap`_ with python3/unicode
|
||||
support. See the first entry in CHANGES.rst for a more complete list of
|
||||
differences.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Parse LDIF from a file (or ``BytesIO``)::
|
||||
|
||||
from ldif3 import LDIFParser
|
||||
from pprint import pprint
|
||||
|
||||
parser = LDIFParser(open('data.ldif', 'rb'))
|
||||
for dn, entry in parser.parse():
|
||||
print('got entry record: %s' % dn)
|
||||
pprint(record)
|
||||
|
||||
|
||||
Write LDIF to a file (or ``BytesIO``)::
|
||||
|
||||
from ldif3 import LDIFWriter
|
||||
|
||||
writer = LDIFWriter(open('data.ldif', 'wb'))
|
||||
writer.unparse('mail=alice@example.com', {
|
||||
'cn': ['Alice Alison'],
|
||||
'mail': ['alice@example.com'],
|
||||
'objectclass': ['top', 'person'],
|
||||
})
|
||||
|
||||
Unicode support
|
||||
---------------
|
||||
|
||||
The stream object that is passed to parser or writer must be a byte
|
||||
stream. It must use UTF-8 encoding as described in the spec.
|
||||
|
||||
The parsed objects (``dn`` and the keys and values of ``record``) on the
|
||||
other hand are unicode strings.
|
||||
|
||||
|
||||
.. _RFC 2849: https://tools.ietf.org/html/rfc2849
|
||||
.. _python-ldap: http://www.python-ldap.org/
|
||||
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP
|
||||
@@ -0,0 +1,13 @@
|
||||
CHANGES.rst
|
||||
MANIFEST.in
|
||||
README.rst
|
||||
ldif3.py
|
||||
setup.cfg
|
||||
setup.py
|
||||
docs/Makefile
|
||||
docs/conf.py
|
||||
docs/index.rst
|
||||
ldif3.egg-info/PKG-INFO
|
||||
ldif3.egg-info/SOURCES.txt
|
||||
ldif3.egg-info/dependency_links.txt
|
||||
ldif3.egg-info/top_level.txt
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
../__pycache__/ldif3.cpython-36.pyc
|
||||
../ldif3.py
|
||||
PKG-INFO
|
||||
SOURCES.txt
|
||||
dependency_links.txt
|
||||
top_level.txt
|
||||
@@ -0,0 +1 @@
|
||||
ldif3
|
||||
Reference in New Issue
Block a user