Skip to main content

Python module for enabling document protection on docx files

Project description

image image image CodeQL codecov GitHub Actions GitHub Actions

docx-locker

Simple python module with a single dependency for getting and setting document protection on docx files.

Compatibility

The module has been tested against documents generated by word 2016 and higher, and should be compatible with other modules that generate standard docx files.

Install

pip install docx_locker

Usage

from docx_locker import apply_docx_protection

docx_path = 'full/file/path.docx'
apply_docx_protection(docx_path, 'password')

Check the docs for a full list of supported args.

Project details


Download files

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

Source Distribution

docx_locker-0.7.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docx_locker-0.7.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file docx_locker-0.7.2.tar.gz.

File metadata

  • Download URL: docx_locker-0.7.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docx_locker-0.7.2.tar.gz
Algorithm Hash digest
SHA256 0319aad1cfddd47ff72c89144ef5a6d1b0bb01b294f12979020daa9a92b8b208
MD5 e95e28ad72e23fac7ccd2272f5f70961
BLAKE2b-256 03848b9522f4537a3e0a2e9678bd1d705cceef6ce217ada629205d28f9a4838f

See more details on using hashes here.

Provenance

The following attestation bundles were made for docx_locker-0.7.2.tar.gz:

Publisher: release.yml on rowanhoy/docx-locker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docx_locker-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: docx_locker-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docx_locker-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef48f67201c0d4269906872133933cc84ff01a9f7272a20aa9fbba75c01115fd
MD5 d3a344429ad0a81a40dc3a889dfe7ed2
BLAKE2b-256 cf059997bf469d807a53cf2603bd75a4ff64e3cc7c9dace855e63a5cd47387b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for docx_locker-0.7.2-py3-none-any.whl:

Publisher: release.yml on rowanhoy/docx-locker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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