Skip to main content

A tool that switches gpg home on different working directory

Project description

auto-gpg

A tool that switches gpg home on different working directory

Installation

pip install auto-gpg

Usage

Configuration

Write configuration file ~/.auto-gpg

~/Developer/src/github.com:~/.gnupgs/hi@guoyk.xyz
~/Developer/src/gitlab.mycompany.com:~/.gnupgs/guoyk@mycompany.com

Execute auto-gpg

auto-gpg invokes gpg command with GNUPGHOME environment variable, and the value of GNUPGHOME is determined by the configuration file above.

auto-gpg -k
auto-gpg -abs
# ...

Configure git

git config --global gpg.program auto-gpg
git config --global commit.gpgsign true
git config --global tag.gpgsign true

Credits

GUO YANKE, MIT License

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

auto-gpg-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

auto_gpg-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file auto-gpg-0.1.0.tar.gz.

File metadata

  • Download URL: auto-gpg-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for auto-gpg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a4ce5f3a758f3a9b341cd67f91e4d36b58b9649984c19f0fd82ca75cdaf5d02
MD5 9d67f6bed0beb415c7febe0fd4b83050
BLAKE2b-256 ba9fe31acbcf1a96275aef14f6d2c46d557c73e4bf41ecfb84e50de1de43cd89

See more details on using hashes here.

File details

Details for the file auto_gpg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: auto_gpg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for auto_gpg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49aed607aaac398fb0a406414e644a59bd01142b5161d7dfbb73b6a4ddf14932
MD5 40e4c3ed305f3b36b996a27f71d0f77c
BLAKE2b-256 671877b778b214fdc04450b99584f52d0df89dd7f14ee6abf7bc719596743c79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page