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.

Usage

from docx_locker import apply_docx_protection

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

Checkout the docs for a full list of supported arguments and helper functions.

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.4.0.tar.gz (7.7 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.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docx_locker-0.4.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for docx_locker-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2f8738d2b2760a6b3248b887fac07c1360cfa4b67658141c1e9dc12ce0121706
MD5 ac57049f0bfba5ca6fbdd1c6cdce5d1f
BLAKE2b-256 d41c8ca0d28ca28029cb4bdf8cab607f9c5a613f3a4b170d690b814254980012

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docx_locker-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for docx_locker-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81a38d56ad7ad00cfaf50ce3a6c8e5e1004fb500a35eceb4532a270ccbc47166
MD5 9c2acc2c12c12982d3ee8cf1706d7984
BLAKE2b-256 994ca8cdc903afddcc80f3aa62a4c1b237a2870ff6b9ab9eeda3d1480d0f0112

See more details on using hashes here.

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