Metadata-Version: 2.4
Name: bytevcs
Version: 0.2.0
Summary: A Git-inspired version control system built in Python
License-Expression: MIT
Project-URL: Homepage, https://github.com/sahanasudhakar05/ByteVCS
Project-URL: Repository, https://github.com/sahanasudhakar05/ByteVCS
Project-URL: Issues, https://github.com/sahanasudhakar05/ByteVCS/issues
Keywords: version-control,git,vcs,education
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Version Control
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx<1,>=0.27
Dynamic: license-file

# ByteVCS

A Git-inspired version control system written in Python, with optional hosted repositories that you can browse on the web.

- Website: https://byte-vcs.vercel.app
- Source: https://github.com/sahanasudhakar05/ByteVCS

## Install

```bash
pip install bytevcs
```

Requires Python 3.10 or newer.

## Use it locally

```bash
mkdir my-project && cd my-project
bytevcs init
bytevcs add .
bytevcs commit -m "first commit"
bytevcs log
```

Other commands: `status`, `diff`, `rm`, `branch`, `checkout`, `merge`. Run `bytevcs --help` for the full list.

`bytevcs add .` stages a whole folder. It skips secrets and clutter by default (`.env` files, private keys, `node_modules`, `__pycache__`, `.venv`, `.git`) and any file over 5 MB. Add your own patterns, one per line, in a `.bytevcsignore` file.

## Put a project online

1. Create an account at https://byte-vcs.vercel.app and choose a username.
2. Open **Settings and tokens**, create a token, and copy it. It is shown only once.
3. In your terminal:

```bash
bytevcs login
cd my-project
bytevcs push            # private by default
bytevcs push --public   # make it public when it is first created
```

The first `push` creates the repository on the server under your username. Use `--name` to pick a different repository name.

Anyone can browse a public repository on the website, and clone it without an account:

```bash
bytevcs clone https://bytevcs.onrender.com/<username>/<repository>
```

Private repositories can only be seen and cloned by their owner. Only the owner can push. `bytevcs pull` fetches new commits, and a push is refused when the server has commits you do not have, so one machine can never silently overwrite another.

Every repository page has a **Time machine**: drag through the project's history and see it grow, with what changed in each commit.

## Your login

`bytevcs login` stores your token in your user configuration folder (`%APPDATA%\bytevcs` on Windows, `~/.config/bytevcs` elsewhere). The token is only sent over `https://`, or to your own computer. You can revoke it any time on the Settings page. Use `bytevcs logout` to remove it from this machine.

To use a different server, run `bytevcs login --server https://your-server`. The environment variables `BYTEVCS_SERVER` and `BYTEVCS_TOKEN` override the saved login.

## Limits and notes

- The hosted service is a small free-tier project. The first request after a quiet period can take up to a minute.
- A push is limited to 25 MB and 5,000 new objects, and a single file to 5 MB.
- Repositories cannot be deleted yet.
- Do not store data you cannot afford to lose on the hosted service.

## License

MIT. See the LICENSE file.
