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.6.0.tar.gz (8.1 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.6.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docx_locker-0.6.0.tar.gz
  • Upload date:
  • Size: 8.1 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.6.0.tar.gz
Algorithm Hash digest
SHA256 b2079c85ea74b0df38cd5c1a8d24290c0c5ec63928b9d35f7fc0556673961f32
MD5 1e3fa7c12cae8b6aa32e539977195c47
BLAKE2b-256 a7aae25b588b04eecae40e05af908ff8c3b9f8dfb72f35b54cbfcf61110b6a96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docx_locker-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b8939aa0824754a59948914abfe226eb5a23b74c1fe2a5f7ba4a87ce49559f2
MD5 12c383155d7d087d899eefa0ff2fcee3
BLAKE2b-256 408936568c09f590d39503ee0f755fdd5381eb028bb7fdb4980111a0f4fe0980

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