Skip to content

pysmath/wc_sync

Repository files navigation

1. Introduction

This is a project for making working with github in pythonista easier. It uses x-callback-url to get repository data from github through the app "Working Copy". I am not affiliated with Working Copy in any way. I will not benefit from you using it, and make no promises about the quality of the software. This code is also provided without guarantee, and you should test it before trusting your code to it.

This code was based on wc_sync by pysmath, https://github.com/pysmath.

2. Setup

Before using this you need to have a remote repository set up, and of course have working copy installed and hooked up to your github (or other service) account. Then you can either download a repository, or initialize a new one and hook it up to one online by specifying the remote url. 

Finally, you need to enable x-callback-url in the working copy settings. Now you're ready to work in pythonista.

The first time you run the code it will ask you for the Working Copy key. This will be stored in the Pythonista keychain so you will not need to enter it again.

You will also have to set INSTALL_PATH to match the path where you have installed rxFile.py and rxZip.py.  This should not have a leading or trailing '/'.

3. Instructions

The bookmark icon will open Working Copy.

The copy icon will clone a respository within Working Copy into Pythonista.  A directory with the same name as the repository will be created in the root of the Pythonista file system.  If the files already exist they will be overwritten, you will be warned if the top level directory already exists.

The download icon will download the version of the file from Working Copy and overwrite the version in Pythonista.  The file will be downloaded from the repository with the same name as the top level directory within the Pythonista file system.

The upload icon will write the latest script to the Working Copy version of the file. If the file is new it will be added in working copy as a new file in the repository.  The file will be written into the repository with the same name as the top level directory within the Pythonista file system, any intermediate directories will be created in the Working Copy repository. 

The filmstrip icon will upload the pyui file relating to the python script to Working Copy.  The file will be written into the repository with the same name as the top level directory within the Pythonista file system, any intermediate directories will be created in the Working Copy repository

4. Known Issues

Requires Working Copy 1.5 or better.

Local files have to have their top level directory (repository name) in the root of the Pythonista file system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages