Skip to main content

Mocked-up LDAP connection library

Project description

Unit test status Coverage Status Documentation Status PyPI Python versions

dataflake.fakeldap

This package offers a mock python-ldap library that can be used for testing code relying on python-ldap without having to configure and populate a real directory server.

Starting with version 3.0 the library will behave just like python-ldap version 3.3 or higher:

  • distinguished names, relative distinguished names, attribute names and queries are expected to be native un-encoded string values.

  • attribute values are expected to be bytes values.

If you pass the wrong type of string, the library will raise a TypeError. See https://www.python-ldap.org/en/latest/bytes_mode.html for a short description of this behavior.

Since queries are un-encoded string values and attribute values passed in the query would never match bytes values in the data store, searches will always test against both unencoded and bytes values.

Documentation

Full documentation is available at https://dataflakefakeldap.readthedocs.io/

Bug tracker

A bug tracker is available at https://github.com/dataflake/dataflake.fakeldap/issues

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataflake.fakeldap-3.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

dataflake.fakeldap-3.0-py2.py3-none-any.whl (27.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dataflake.fakeldap-3.0.tar.gz.

File metadata

  • Download URL: dataflake.fakeldap-3.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dataflake.fakeldap-3.0.tar.gz
Algorithm Hash digest
SHA256 5b242d463a073cb56cf1472702ff9f37145582d69cfe620aff5c2ed514df4cd0
MD5 440cf9532b3cb9483bd24fdafe41754a
BLAKE2b-256 71b3f5565de8baa958d31eea172a959b3d8d6be0d27a70f7e64ebadbd9dad18e

See more details on using hashes here.

File details

Details for the file dataflake.fakeldap-3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dataflake.fakeldap-3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dataflake.fakeldap-3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a386a60fa9e3f259158428a7a8ae5c670f4548dc130012d8ab29c4faf3c6ed0c
MD5 f4bf9d69ce38018de91b419764e39beb
BLAKE2b-256 6ab1a560b0a3e799297fd4335e38d9877163c943bfbc545dcae0284faa1a62f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page