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.0.tar.gz (10.0 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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docx_locker-0.7.0.tar.gz
  • Upload date:
  • Size: 10.0 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.7.0.tar.gz
Algorithm Hash digest
SHA256 b130fcdae9bd0cd813471ad5c00dd303c7541e6f80b35b66bf79367896e7cbe4
MD5 09f376e2fa297701b2e91953e40cd1b9
BLAKE2b-256 ce5d1300ef81d89824f61dcce806f768931bdfe29bcebf32464e20ccd22745dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docx_locker-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb5cb4d7167823be43f91c10243b7b93ebb05744c7eda34e7b97c24aef9f7973
MD5 c9a058b4cbcad68ed8be50dd262ab842
BLAKE2b-256 51c702ecb7da1a8067b028733720dbe90d371fc4b9b6cf601b5c671c63f130a6

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