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",
    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.8.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

github_secret_syncer-0.0.8-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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