Skip to main content

A CLI tool to sync encrypted .env files with GitHub

Project description

envsync

A CLI tool to sync encrypted .env files with GitHub securely.

Features

  • Encryption: Uses age encryption (via python-age) to secure your .env files.
  • GitHub Integration: Automatically syncs encrypted files to your repository.
  • Key Management: Securely stores encryption keys in your system's keychain.
  • Easy Workflow: Simple open, seal, and status commands to manage your environment.

Installation

To install envsync, clone the repository and install it in editable mode:

git clone https://github.com/yourusername/envsync.git
cd envsync
pip install -e .

Usage

Initialize

Initialize envsync in your project repository. This will detect your git repo, authenticate with GitHub, generate an encryption key, and store it in your keychain.

envsync init

Decrypt Environment

Decrypt your .env.enc file to a usable .env file.

envsync open

Encrypt Environment

Encrypt your .env file to .env.enc for safe committing.

envsync seal

Check Status

View the status of your environment files and sync state.

envsync status

Development

Run tests using pytest:

pytest

License

MIT

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

envsync_cli-0.1.0.tar.gz (9.2 MB view details)

Uploaded Source

Built Distribution

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

envsync_cli-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: envsync_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for envsync_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc731c5c83458e0396af1e8e166b96aaba5b1b7d1c7acd1c514a90f9f956aeff
MD5 dba11018732f8be8a60680d0cc925f25
BLAKE2b-256 6302ca47ae774f856822031d58a81c01f2ba05c7bbe15b67412e794f98db8416

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envsync_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for envsync_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 565b22cfd24b57f313a7a85f186f2482ec140adad491900ec504641b8dac2201
MD5 189d40f796999958d132fbecb0e8c2fa
BLAKE2b-256 448ba239f1e6df9b5a09bb7276d0b200248509a23fc41c6749dffff04c736079

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