Skip to main content
code style: black

Introduction

pyad is a Python library designed to provide a simple, Pythonic interface to Active Directory through ADSI on the Windows platform. Complete documentation can be found at http://jcarswell.github.io/pyad/. Code is maintained at https://github.com/jcarswell/pyad.

This library is published on PyPI as python-win-ad.

Breaking Changes from upstream

ADObject:

  • _get_password_last_set - Act’s like AD and returns 1970-01-01 if the date can’t be parsed

  • get_last_login - Act’s like AD and returns 1970-01-01 if the date can’t be parsed

Importing pyad directly exposes set_defaults, ADQuery, ADComputer, ADContainer, ADDomain, ADGroup, ADUser, from_cn, from_dn, from_guid. Importing pyad.pyad no longer imports the sub modules

Most ADObject update methods now take flush as an optional argument that defaults to True to maintain compatibility with upstream code. For large updates it’s recommended to set this to False until you are ready to write out the change, otherwise you may run into a back-off period in AD where all further changes will fail.

Requirements

pyad requires pywin32, available at https://github.com/mhammond/pywin32.

Testing

To run unittest you will need to set the configuration to be specific to your environment. To do this you will need to edit config.py located in the tests folder.

License

pyad is licensed under the Apache License, Version 2.0 (the “License”). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Metadata

Release files for python-win-ad 0.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-win-ad 0.6.4
File Size Uploaded
python_win_ad-0.6.4.tar.gz 377.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-win-ad 0.6.4
File Interpreter ABI Platform
python_win_ad-0.6.4-py3-none-any.whl Python 3 none any Details

Total release size: 411.6 kB

Release files / python_win_ad-0.6.4.tar.gz

Download URL python_win_ad-0.6.4.tar.gz
Size 377.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a36729ebee938f16994ec347467ae6b34629d581705af68d40997319891622ff
BLAKE2b-256 checksum
How to use checksums
8320f6afe8a1dbb3e28e02d67452d9717c5edccb4689397126209204e6a8646d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / python_win_ad-0.6.4-py3-none-any.whl

Download URL python_win_ad-0.6.4-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76184fa53defbf2d6fa3d9567e4d17c69fb2610241561a6e79b5e930131f5c3c
BLAKE2b-256 checksum
How to use checksums
c98823b21a7aa45cbcf11f79bf4b56ba0e1e21679fe0e43333ca10cbd6833899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.6.4 This release

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page