Skip to content

langesven/ldapom

This branch is 1 commit ahead of, 2 commits behind HaDiNet/ldapom:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b4e43e5 · Oct 11, 2017
Oct 11, 2017
May 9, 2014
Jul 23, 2013
Mar 18, 2015
Sep 26, 2014
Nov 19, 2013
Mar 24, 2015
Nov 19, 2013
May 9, 2014
Nov 19, 2013
Jun 30, 2014
May 12, 2014

Repository files navigation

LDAPom Build Status

LDAPom is a pythonic LDAP to Python object mapper. It should work with Python 2.7 and all versions of Python 3.

Testing

Because LDAPom uses a real LDAP server for testing, OpenLDAP is required to be installed (i.e. slapd and slapadd have to be in $PATH).

# Install development dependencies
pip install -r dev-requirements.txt
# Run the tests
python tests.py

A note about Unicode strings in Python 2

LDAPom is source-code compatible with both Python 2 and Python 3. However, LDAPom expects unicode strings to be passed to it whenever a string is required.

For Python 2, this means that you should use the unicode type for str-type arguments and the str/bytes type for bytes-type arguments.

In Python 3, everything is exactly as you would expect. str for strings, bytes for binary data. Simple, really.

License

LDAPom is licensed under the MIT license. For more information, see the COPYING file.

About

A simple ldap object mapper for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%