Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldapom

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapom

A pythonic LDAP to Python object mapper

  • 0.12.1
  • PyPI
  • Socket score

Maintainers
3

LDAPom

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc