Skip to main content

A extension manager for PostgreSQL

Project description

Mangrove - A PostgreSQL Extension Manager

This is a PostgreSQL extension manager, a command-line tool to download and install PostgreSQL extensions. You can download extension supported by PGXN or Mangrove Index.

Installation

Mangrove is available on Github, AtomGIT, and PyPI. It can be installed via pip

pip3 install magv

Then execute python3 -m magv' and sudo python3 -m magv` to perform initialization. You shall see a warning message in your console after initialization.

WARNING: YOU SHOULD CHANGE YOUR CONFIGURE FILE MANUALLY AT ~/.magv/config.json TO USE MANGROVE

By the way, you may specify a shell script for Mangrove to run when the program starts. You may specify this script in your configure file using "Postscript" option, here is an example:

{
    "Index-Repo" : "https://atomgit.com/haorongxu/magv-index.git",
    "Postscript" : "~/test.sh"
}

Upgrading

You may upgrade mangrove by running pip3 install magv --upgrade. But if you are using PyPI mirror you might NOT get the latest version.

Usage

Tips: You can find the usage of magv by executing magv -h

Searching

python3 -m magv -s/--search [extension]

This command returns a list of extensions which names contains [extension].

e.g. search_eg

Downloading

python3 -m magv -d/--download [extension]

Similar to searching command, this function also gives you a list of extensions, then you'll be asked to specify which version to download. Downloaded file is stored in ~/.magv/

Installing

sudo python3 -m magv -i/--install [extension]

This function does pretty much the same job as downloading function, but it automatically install the extension. (However, you'll need to install all required library manually). You may also install an extension from a local folder by add argument -p [path to extension].

WARNING: In case you need to install an extension from local folder with root permission, please always specify -p arugument if you ran magv -d with other users. Nevertheless, remember to set $PATH appropriately for root.

e.g.

installeg installeg2

Get Involved

You can upload you own extension to Mangrove Index

And you can make contribution to Mangrove by creating a PULL REQUEST.

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

magv-0.1.7.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

magv-0.1.7-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file magv-0.1.7.tar.gz.

File metadata

  • Download URL: magv-0.1.7.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for magv-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e6d978487243248e182c98c1861789cc48536a41eb5c594663ab423c3857ba18
MD5 6f22594fa5cbcd46be222729d8da8767
BLAKE2b-256 ddf1583e694fab7729a297c95e568b3445fd0e5a79835e895ed2d34fdefb9e75

See more details on using hashes here.

File details

Details for the file magv-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: magv-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for magv-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d999017bfb0f8da12d5e9a3ad1f8bcc9e33d6b51e7b2936178a8873d9ac4cffa
MD5 f24cbf89147b9c1136192b6529d0870d
BLAKE2b-256 8ca487bbc2e5fbb12e523d1fed188abb2c1f716983eedd5e2f1d62f3afeac4a8

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