Metadata-Version: 2.4
Name: dataflake.fakeldap
Version: 4.3
Summary: Mocked-up LDAP connection library
Author-email: Jens Vagelpohl and contributors <jens@dataflake.org>
License-Expression: ZPL-2.1
Project-URL: Documentation, https://dataflakefakeldap.readthedocs.io
Project-URL: Issues, https://github.com/dataflake/dataflake.fakeldap/issues
Project-URL: Source, https://github.com/dataflake/dataflake.fakeldap
Project-URL: Changelog, https://dataflakefakeldap.readthedocs.io/en/latest/changes.html
Keywords: ldap,ldapv3
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: python-ldap>=3.3
Provides-Extra: docs
Requires-Dist: Sphinx; extra == "docs"
Requires-Dist: furo; extra == "docs"
Provides-Extra: test
Requires-Dist: python-ldap; extra == "test"
Requires-Dist: volatildap; extra == "test"
Dynamic: license-file

.. image:: https://github.com/dataflake/dataflake.fakeldap/actions/workflows/tests.yml/badge.svg
   :target: https://github.com/dataflake/dataflake.fakeldap/actions/workflows/tests.yml
   :alt: Unit test status

.. image:: https://coveralls.io/repos/github/dataflake/dataflake.fakeldap/badge.svg?branch=master
   :target: https://coveralls.io/github/dataflake/dataflake.fakeldap?branch=master
   :alt: Coverage Status

.. image:: https://readthedocs.org/projects/dataflakefakeldap/badge/?version=latest
   :target: https://dataflakefakeldap.readthedocs.io
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/dataflake.fakeldap.svg
   :target: https://pypi.python.org/pypi/dataflake.fakeldap
   :alt: PyPI

.. image:: https://img.shields.io/pypi/pyversions/dataflake.fakeldap.svg
   :target: https://pypi.python.org/pypi/dataflake.fakeldap
   :alt: 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.
