VCS
VCS is a small, educational, Git-like version control system written in Python. It supports local snapshots, branches, safe checkout, and three-way merges while keeping its on-disk format easy to inspect.
VCS is an educational project, not a drop-in replacement for Git. The package is currently classified as alpha software.
Install
pip install vcs-cli-rajarshi
The distribution is named vcs-cli-rajarshi, and it installs the vcs
terminal command.
For local development:
python -m pip install -e .
Basic workflow
mkdir my-project
cd my-project
vcs init
vcs add app.py
vcs commit -m "Initial commit" -a "Your Name"
vcs status
vcs log
Branching and merging:
vcs branch feature
vcs checkout feature
# edit and commit files
vcs checkout main
vcs merge feature
Checkout and merge abort if they would overwrite staged changes, modified tracked files, or colliding untracked files. A merge also aborts and lists the paths when both branches changed the same file differently.
Ignoring files
Create a .vcsignore file in the repository root. It accepts common glob-style
patterns, directory patterns, comments, and ! negation:
__pycache__/
dist/
*.pyc
.env
!example.env
Commands
vcs initvcs add <file> [<file> ...]vcs commit -m <message> [-a <author>]vcs statusvcs log [-n <count>]vcs branch [<name>]vcs checkout <branch>vcs merge <branch>
Run vcs --help or vcs <command> --help for command-line help.
Development and release
Run the tests with only the Python standard library:
python -m unittest discover -s tests -v
Build and validate a release:
python -m pip install build twine
python -m build
python -m twine check dist/*
Test the wheel in a fresh virtual environment before publishing. To publish:
python -m twine upload dist/*
Repository format
.vcs/
├── objects/ # Binary-safe content-addressed objects
├── refs/heads/ # Branch references
├── HEAD # Current branch pointer
├── config.json # Repository metadata
└── staging.json # Staging index
VCS stores file objects byte-for-byte and hashes them with SHA-1 for educational compatibility with the basic content-addressing idea. It does not provide Git's network protocol, pack files, hooks, tags, rebase, or cryptographic signing.
Metadata
Release files for vcs-cli-rajarshi 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vcs_cli_rajarshi-1.0.0.tar.gz | 12.9 kB | Without provenance | Details for vcs_cli_rajarshi-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vcs_cli_rajarshi-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for vcs_cli_rajarshi-1.0.0-py3-none-any.whl |
Total release size: 24.2 kB
Release files / vcs_cli_rajarshi-1.0.0.tar.gz
| Download URL | vcs_cli_rajarshi-1.0.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5b369618701f9347f9468456e57bf556e94feed241818f1cbf82f0f0210c578
|
|
BLAKE2b-256 checksum How to use checksums |
885d6ddcf487cb3f5e000849a40d8a3c24c30b3fcc71fd11ff825c40b36a3734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / vcs_cli_rajarshi-1.0.0-py3-none-any.whl
| Download URL | vcs_cli_rajarshi-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d5934f761326fdca3c60bda8f27be65813a44a6faca258317081af6fa7f14b7
|
|
BLAKE2b-256 checksum How to use checksums |
99756a2ad29c47999357e0a176ace631e0814d92fd3137f2f1b43f243d20a866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for vcs-cli-rajarshi 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.