Skip to main content

Github Secret Syncer.

Project description

Github Secret Syncer

Synchronize Github secrets with local .env file.

Screenshot

Quickstart

Install it with pip:

pip install github-secret-syncer

Have a .env and quickstart.py

from pathlib import Path

import github_secret_syncer

base_dir = Path(__file__).parent

github_secret_syncer.sync_secrets(
    dotenv_path=base_dir / ".env",
    owner="your_github_username",
    repo="your_github_repo_name",
    github_pat="your_github_personal_access_token",
)

You will get some output like this:

Screenshot

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

github-secret-syncer-0.0.6.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

github_secret_syncer-0.0.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file github-secret-syncer-0.0.6.tar.gz.

File metadata

  • Download URL: github-secret-syncer-0.0.6.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for github-secret-syncer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 709f2ef7e608ebd953a2c220c82f1c8d0402a5294db558ab6d8ae08101b2fb2e
MD5 8f3c1d39259ed77549cea7d926a8e349
BLAKE2b-256 063daf8616c84c1274f16c15a22e4fccdbd5e03eebde4508e2b3e0c5b727b373

See more details on using hashes here.

File details

Details for the file github_secret_syncer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for github_secret_syncer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc122c4f1fcf457cd8e374a76a9325e0de52f32262c9cb7a56c88aaa446392c
MD5 a53cff60bc2fb953de78b3e0f831dbbc
BLAKE2b-256 903de0f070ef04c1725be78be19e89c007701d3b4da07746e82cde5e3f703128

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