Skip to main content

A simple config applier

Project description

conapp - The easy config applier

A simple project for applying config files from repos/tar files

Example command:

conapp config -u drew887 -b

The above will:

  • download a tarball from drew887's config repo on bitbucket (-b)
  • take a backup of all the files that are listed in the tarball that would be overridden locally on your system.
  • untar the repo into your home directory.

Available commands:

config Command

Used for downloading and applying configs from either Bitbucket or Github.

  • list: Lists out configs that are available locally

  • apply: Download and apply a config based on username & repo name

  • undo: Remove files added by this config and apply last backup taken during its last application

    IE: conapp config undo -u drew887 will:

    • delete all files listed in the currently downloaded config
    • apply the backup snapshot taken when the drew887/config repo was last applied

snapshots Command

Used for managing local backups created by conapp during the config commands

Available sub commands:

  • list: List available backups
  • apply: Restore a backup
  • delete: Delete a backup

local Command

Used to checkout a bare repo and print out a shell (bash for now sorry!) alias to simplify the use of the repo. See https://www.atlassian.com/git/tutorials/dotfiles for more details on how this can be used.

The basic idea is that it can be used to check out a config but have it be managed by git without clobbering your home folder with a .git folder.

Available sub commands:

  • checkout Checkout a bare repo into $XDG_CONFIG_HOME/conapp/local/repo
  • alias prints out an alias to make using the bare repo easier
Example usage:
#check out the repo
conapp local checkout -b -u drew887
#setup the alias
conapp local info >> ~/.bashrc
#Now you can manage the repo with regular git commands aliased by default to `config`
config status
#regular git output here

Note that you'll probably want to run checkout

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

conapp-1.0.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

conapp-1.0.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file conapp-1.0.0.tar.gz.

File metadata

  • Download URL: conapp-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for conapp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a14bc802d58053639d6474d738d97e73b31c8959b9f308f33ac9437372140ec9
MD5 d3d5416af456c8178a66338dc81861d0
BLAKE2b-256 dfb7fbd88a0f2dc9ff4e5388873a05a7ad9688b63cac1c12ad4d37104d1e7ea4

See more details on using hashes here.

File details

Details for the file conapp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: conapp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for conapp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd0a7ebf1e61a97a232c7db109b36737faf52a83236b4152c720051b29de855
MD5 f5ed6498e80dd09b7c66a836ab0da1c8
BLAKE2b-256 c5ba79824f135db943017eb27b178bce20c5822af72e8cf801a7c7cee2caba61

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