Skip to main content

Python-based Git Server

Project description

Overview

A git server implementation written in python.

The app services any git repository lying below the search_path available for cloning via HTTP using basic authentication.

Application defaults can be overridden by specifying a configuration file.

Review etc/config.yaml for a sample data structure.

Installation

  • Install from pypi.org: pip install btgitserver
  • Install directly from git repo: pip install git+http://www.github.com/berttejeda/bert.gt-server.git

Usage

To get usage information and help: git-server -h

Clone paths

There are two routes accepted by the script:

  • '/example/'
  • '/'

All resolve to the same underlying repository path.

This effectively allows you to mock organizational structures.

TODO: Define additional routes dynamically as opposed to hard-coding.

Usage Examples

Quick test:

  • Create a test repo:
mkdir -p /tmp/repos/test
cd /tmp/repos/test
git init .
touch test_file.txt
git add .
git commit -m 'Initial Commit'
git-server -r /tmp/repos
  • Launch the standalone git server

git-server

You should see output similar to:

Running on http://0.0.0.0:5000/	
  • On client:

Try cloning the repo you just created via the three supported routes:

e.g.

git clone http://127.0.0.1:5000/test.git
git clone http://127.0.0.1:5000/example/test.git

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

btgitserver-1.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

btgitserver-1.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file btgitserver-1.0.1.tar.gz.

File metadata

  • Download URL: btgitserver-1.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for btgitserver-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d958aa5782e1a0be2b46f59d438d7cf2d25350e375ba0929a7bf8eee08ec4194
MD5 7da4c3a1dd4cccc633428109b9407c5e
BLAKE2b-256 810566bfca999c7ee74ab67ea8086bec5df195ee5ef643bd1b15351dffb6d342

See more details on using hashes here.

File details

Details for the file btgitserver-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: btgitserver-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for btgitserver-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b01f466dd6ea99db94da3c7518c1621a2ec377cb01ccef015b85f6b27e9a48
MD5 2507018b105f411eabe9b77e776d8a08
BLAKE2b-256 1f62720246f32bfc02383e90980c1f800335aac7e6572d5589f3eee904639425

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