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.5.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.5.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docx_locker-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 159f8b2573545e0158567019db65ede7b3c206d778da8279b27ee9b05ac470b3
MD5 658a97bf64afbb0f5c4c479406b92a0f
BLAKE2b-256 cb484e34c4557d7245ddfbd34f573528e8d5ef805b6ce72c425f496bfc24ade0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docx_locker-0.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff436e66e2900ef906eb7ef41124b595bef7fee3495c22703895388722ac87f
MD5 e898785bf7bda6ba1f196f6954aa88b2
BLAKE2b-256 ff42107393b549c5d085b9dc8bb8a2c1ce34df5143226ca37a8c401c105a2506

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