Skip to main content

Code templating tools

Project description

DP Wizard Templates

pypi

DP Wizard Templates lets you use syntactically valid Python code as a template. Templates can be filled and composed to generate entire notebooks.

README_test.py provides an example of use, and an example output notebook is also available.

DP Wizard Templates was developed for DP Wizard, and that codebase remains a good place to look for further examples.

Development

Getting Started

On MacOS:

$ git clone https://github.com/opendp/dp-wizard-templates.git
$ cd dp-wizard-templates
$ brew install python@3.10
$ python3.10 -m venv .venv
$ source .venv/bin/activate

You can now install dependencies:

$ pip install -r requirements-dev.txt
$ pre-commit install
$ flit install

Tests should pass, and code coverage should be complete (except blocks we explicitly ignore):

$ scripts/ci.sh

Release

  • Make sure you're up to date, and have the git-ignored credentials file .pypirc.
  • Make one last feature branch with the new version number in the name:
    • Run scripts/changelog.py to update the CHANGELOG.md.
    • Review the updates and pull a couple highlights to the top.
    • Bump dp_wizard/VERSION, and add the new number at the top of the CHANGELOG.md.
    • Commit your changes, make a PR, and merge this branch to main.
  • Update main with the latest changes: git checkout main; git pull
  • Publish: flit publish --pypirc .pypirc

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

dp_wizard_templates-0.1.0.tar.gz (79.8 kB view details)

Uploaded Source

Built Distribution

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

dp_wizard_templates-0.1.0-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dp_wizard_templates-0.1.0.tar.gz.

File metadata

  • Download URL: dp_wizard_templates-0.1.0.tar.gz
  • Upload date:
  • Size: 79.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for dp_wizard_templates-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae236e1ac8e39eea645a9a805844d7a91f83ac401a75e2bed64588605dcfb42e
MD5 ed010039d18738e4761ebff1ef22e842
BLAKE2b-256 a983966f46ce09df29755f0182b81ee4b5c850d112f4ed660388fff7d7dbd3c4

See more details on using hashes here.

File details

Details for the file dp_wizard_templates-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dp_wizard_templates-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b3bc50e6fee9a9a5e3cb03dda4272895944a4c435824af58893c6397cf55a6b9
MD5 c00516e1ef3266b3c062af0d23950268
BLAKE2b-256 a7b3818c0fb8895ae0a8c1999e2662909de56dc1723095750f143803f340ad88

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