Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/antrikshmisri/checkpoint

Create restore points for your project locally
https://github.com/antrikshmisri/checkpoint

checkpoint cli python restore-points ui

Last synced: 2 months ago
JSON representation

Create restore points for your project locally

Awesome Lists containing this project

README

        


Checkpoint







[![checkpoint logo](https://raw.githubusercontent.com/antrikshmisri/checkpoint/master/docs/_static/logo.png)](http://checkpoint.antriksh.live/)




[![pip install pycheckpoint](https://raw.githubusercontent.com/antrikshmisri/DATA/34bf992f0f7f6e265d33b193e460ec073579551b/imgs/pip-install-pycheckpoint.svg)](https://github.com/antrikshmisri/checkpoint)

[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)




[![Codacy Badge](https://app.codacy.com/project/badge/Grade/db5e64ce3b644109afe0c6ed96f266b8)](https://www.codacy.com/gh/antrikshmisri/checkpoint/dashboard?utm_source=github.com&utm_medium=referral&utm_content=antrikshmisri/checkpoint&utm_campaign=Badge_Grade) ![codecov.io](https://codecov.io/github/antrikshmisri/checkpoint/coverage.svg?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/d530dec72a679fe43d46/maintainability)](https://codeclimate.com/github/antrikshmisri/checkpoint/maintainability)

[![Install Checkpoint Windows](https://img.shields.io/badge/Install-Windows-blue.svg?style=flat-square)](https://checkpoint-installer-bucket.s3.amazonaws.com/installers/windows+Installer/windows-install-checkpoint.exe) [![Install Checkpoint MacOS](https://img.shields.io/badge/Install-MacOS-blue.svg?style=flat-square)](https://checkpoint-installer-bucket.s3.amazonaws.com/installers/macos+Installer/macos-install-checkpoint) [![Install Checkpoint Ubuntu](https://img.shields.io/badge/Install-Ubuntu-blue.svg?style=flat-square)](https://checkpoint-installer-bucket.s3.amazonaws.com/installers/ubuntu+Installer/ubuntu-install-checkpoint)

[![GitHub release](https://img.shields.io/github/release/antrikshmisri/checkpoint)](https://GitHub.com/Naereen/StrapDown.js/releases/) [![Downloads](https://pepy.tech/badge/pycheckpoint)](https://pepy.tech/project/pycheckpoint) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)


Checkpoint is a tool that helps you to create restore points for your project

Unlike other tools like git, checkpoint makes the whole process as simple as a few click

Plus, there is no need for a remote repository, checkpoint does everything locally









## How does it work?

Checkpoint provides multiple `Sequence` classes that have member functions which execute based on their order in the sequence. These sequences are used to perform all the sequential operations that are required to create a restore point. Some of these sequences are:

* `IOSequence`: This sequence is used to perform all the input/output sequential operations.
* `CLISequence`: This sequence is used to perform all the CLI operations which includes parsing the arguments, determining the action and performing the action.

Checkpoint also supports custom sequences that can be used to initialize checkpoint in different environments. For example, if a checkpoint is to be initialized in a UI environment a sequence for UI can be created and passed to the `Checkpoint` constructor.

**Detailed documentation can be found [here](http://checkpoint.antriksh.live/)**

## How to use checkpoint?

To run checkpoint in UI environment, run the following command:

##### Run checkpoint in UI environment
```bash
checkpoint --run-ui
```

The following is an example of how to use checkpoint in a CLI environment.

##### Initialize checkpoint in the target project
```bash
checkpoint --action=init --path=path/to/project
```
*After initialization a `.checkpoint` directory is created in the target project. If the project is git initialized, this directory should be added to the git ignore file.*

##### Creating a restore point
```bash
checkpoint --name=restore_point_name --action=create --path=path/to/project
```

##### Jumping to a restore point
```bash
checkpoint --name=restore_point_name --action=restore --path=path/to/project
```

##### Deleting a restore point
```bash
checkpoint --name=restore_point_name --action=delete --path=path/to/project
```

##### Version of checkpoint
```bash
checkpoint --name=restore_point_name --action=version --path=path/to/project
```

## Installation

`pip install pycheckpoint`
### Development

##### 1. Get the source code by cloning from the remote repository.
```bash
git clone https://github.com/antrikshmisri/checkpoint.git
```

##### 2. Create and activate a virtual environment.
```bash
python -m venv venv
source venv/bin/activate
```

##### 3. Get the dependencies
```bash
pip install -r requirements/default.txt
```
##### 4. Install checkpoint as a local project.
```bash
pip install .
```
##### 5. Run the tests
```bash
pip install -r requirements/test.txt
pytest -v checkpoint/tests/
```

## Code of Conduct

Please go through the code of conduct before contributing to this project which can be found [here](./CODE_OF_CONDUCT.md).


## Screenshots

Screenshot 2021-11-09 222450


Screenshot 2021-11-09 222154