omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Project Distribution (Need Ideas)

    Pythonista
    3
    4
    4186
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TutorialDoctor
      TutorialDoctor last edited by TutorialDoctor

      Okay. The process of sharing code is rather tedious for me. I would like to get some ideas on project distribution.

      Currently I back up my app to a simple text file with code like this:

      with open(app.py,'r') as infile:
      code = infile.read()
      
      with open(bkpfile.txt,'w') as outfile:
      outfile.write(code)
      

      I do that for all files I want to back up. I am sure there is a better way using the many Python modules.

      Sqlite ?
      I had a thought to store my code in an sqlite database and then I could write a program to query the database for the code. This could scale to the point to where one database could store several programs made by several people. Primary keys could be user names or something.

      JSON ?
      Dump stuff into a .json file with key-value pairs?

      Typical Package distribution ?
      Don't know how that really works myself. If anyone has any good info on how that works it would be helpful. Perhaps any information on why I would want to go this way? distutils? I don't really want to deal with a lot of files.

      1 Reply Last reply Reply Quote 0
      • cook
        cook last edited by

        Sorry I don't quite follow...
        Do you want to know good ways to back up your files or good ways to give your files to others?

        1 Reply Last reply Reply Quote 0
        • TutorialDoctor
          TutorialDoctor last edited by

          Good ways to share my files with others.

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            The best ways i can think of:
            1) built in share to gist. note you can select multiple files from the file picker menu 's share, which creates a multi file gist. This is the easiest for you, but somewhat of a pain for others (since the gist downloading tools have not really been maintained or updated for pythonista 2 or 3)
            2) GIthub. stash git, or for very simple editing in one place at a time workflows, gitview works. People also seem to like the workflow app, and perhaps there is a viable workflow there, never used it myself. git is probably the best way, as it easy to download into pythonista, you can easily update github with your latest code, and others can contribute.
            3) use stash to zip or targz your files, then post to a website, etc.
            4) I think someone has posted code to bz2/ base85 encode a folder which could then be posted as a single file gist, etc.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors