Code Monkey home page Code Monkey logo

ibackup-pythonista's Introduction

iBackup-Pythonista.py

Create Backups of Python Scripts in Pythonista iOS App

Python script for backing up Pythonista scripts on iOS. Simple backups of Pythonista folders allowing easy transfer to other devices.

GitHub last commit GitHub issues GitHub repo size GitLab GitHub GitHub Repo stars


Features

[✔] Easily create backups of all Pythonista scripts compressed to a zip archive.

[✔] Simple configuration of backups using a configuration file.

[✔] Share backup to prefered location.

[✔] Exclude/include files and folders from being backed up.

[___] Autonomous transfer of backups.


Table of Contents

Click to expand!

How To Use

Installation

  1. Download or clone iBackup-Pythonista
  2. Edit the configuration file iBackup-Pythonista.cfg to your preference
  3. Run iBackup-Pythonista.py to start the backup

An even easier method of installing this script is to install StaSH. Then, git clone this repository

git clone https://github.com/ConnerWill/iBackup-Pythonista.git

Configuration

Configuration Variables

BackupDir : Root folder from where to start the backup. All subfolders will be backed up [string]

ExcludeList : List of folders to not backup [string] (eg. Backups, tmp)

ArchiveDir : Location to save the backup [string]

ArchiveName : Name of the backup [string]

OpenInQuickLook : After backup has finished, open 'quicklook' [bool]

Configuration File

Click to expand configuration file contents
# Folder to backup
[BackupFrom]
BackupDir = ~/

# List of folders to exclude from backup
[Exclude]
ExcludeList = local-packages, Backups, tmp, Documents/tmp, Documents/tmp, Documents/Backups, .Trash, Documents/.Trash

# Location and name of the backup archive.
# Folder will be created if it doesn't exist and 
# is automatically excluded from the backup.
# The current date will be prepended to 'ArchiveName'.
[BackupTo]
ArchiveDir = Backups
ArchiveName = iBackup-Pythonista.zip

# Open QuickLook when backup is complete. (Leave as True for now, planning on adding automatic transfers/sharing) 
[Sharing]
OpenInQuickLook = True

# Output colors (R, G, B)
[Colors]
ErrorColor = 1.0, 0.0, 0.0
StartColor = 0.0, 1.0, 1.0
SuccessColor = 0.0, 1.0, 0.0
InfoColor = 0.0, 0.0, 1.0
ProgressColor = 0.7, 0.7, 0.0

# Output font
[Fonts]
TextFont = Anonymous Pro

Other

iBackup-Pythonista was writted for the iOS app, Pythonista.

Install Pythonista from the iOS app store.

** This script is still a work in progress. Use this script at your own risk! **

  • *Tested on iPhone 7/8 *

  • iOS 15.0.1

  • *Pythonista Version 3.3 *


ibackup-pythonista's People

Contributors

connerwill avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.