LDAP LDIF to JSON
Project description
ldifj
This Python script parses LDAP Data Interchange Format (LDIF) files, allows for the extraction of entries and, optionally, metadata.
🛠 Installation
Install the required modules with pip(x):
pip install ldifj
# the cool kids use pipx nowadays:
pipx install ldifj
🚀 Usage
usage: ldif [-h] [--metadata] [FILE]
positional arguments:
FILE LDIF file to parse, set to '-' to read from stdin
optional arguments:
-h, --help show this help message and exit
--metadata, -m
Include metadata
📝 Examples
To parse an LDIF file, run:
ldif example.ldif
ldif also accepts input from a pipe:
cat example.ldif | ldif
If you want to include the metadata in the returned JSON object:
ldif --metadata example.ldif
📜 License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ldifj-0.1.1.tar.gz.
File metadata
- Download URL: ldifj-0.1.1.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
520311eb13b1035204cb561dad7f1d9f3244d0a3e2b435f14dc97faea8a81df1
|
|
| MD5 |
3bc942012035dc3e6f9c399e05466e23
|
|
| BLAKE2b-256 |
b11b99d299b82513c4cd27d6fc1b3c3b48066bb7fe8bb9bd53d499c8c5d2e908
|
File details
Details for the file ldifj-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ldifj-0.1.1-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4a8ef285750a00330bb6f074500820b9a599e8e4954135a39d78d028ee00a3f
|
|
| MD5 |
0bc3c002bf880a85e0c9441f3bc5712e
|
|
| BLAKE2b-256 |
975e6a47e6ccf5b4ef5d0004209838e059a01562c13a336f1780fa69f95cba45
|