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.


    Latte v1.0 Released (package manger for StaSh)

    Pythonista
    3
    9
    6249
    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.
    • AtomBombed
      AtomBombed last edited by AtomBombed

      Some of you may know about my project called Latte. It's been somewhat difficult to make work up to this point, but I've finally added enough features and fixed most of the bugs. Now, I'm happy to say I'm releasing the first steady version of a package manager just for StaSh.

      If you want to check it out, head over to https://github.com/Seanld/Latte. There's also documentation located over at http://seanld.me/latte which provides much simpler and specific details about how to get started using it.

      Hopefully this is a useful tool for everyone! It took me a long time to develop.

      Phuket2 2 Replies Last reply Reply Quote 2
      • lachlantula
        lachlantula last edited by

        good work! I'll definitely check this out.

        1 Reply Last reply Reply Quote 1
        • Phuket2
          Phuket2 @AtomBombed last edited by

          @AtomBombed , just worth mentioning that you should update StaSh using selfupdate before running your install script. Until I did that it could not find the extensions folder. I just posted a issue trying to install a package. Hmm, I should have checked my version of StaSh. But I will retry and if not working give Latte a go. Not sure it will make a difference, but worth a go :)

          1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 @AtomBombed last edited by

            @AtomBombed , ok...I get it a little more now. Latte is a place to host and deliver packages for Pythonista, right? Sorry, I am very slow especially when it comes to all this stuff

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

              @Phuket2 Latte is a system that allows you to install packages, and also has a command that generates templates for new packages if you want to create some. But it doesn't host packages itself. In fact, you can create your own Latte repository and host packages there with minimal setup. Just read my repository section at http://seanld.me/latte. Once you create a Latte repository, you can put packages in there (that you can create with latte new <package-name>, and people can add your repo by typing latte add-repo <url-to-repo> where the URL is the URL to your repository location (where the init.latte file is located).

              There is no "main Latte repository". It's a decentralized repository system, meaning anyone can host their own Latte repositories with their own packages, and anyone can add those repositories to their Latte in StaSh and install packages from them. However, Latte does come pre-installed with my repository called universe which is directed at https://github.com/Seanld/latte-universe. You can copy what I've done at that GitHub repository and create your own, if you like.

              It sounds complicated, it's not. Just check out the documentation on the aforementioned site. Once this thing catches on, I'm pretty sure quite a few StaSh users will start using it.

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

                @Phuket2 and yes, I do need to tell people to update to the latest version of StaSh, as well as check for the extensions folder.

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

                  @Phuket2 try running latte install meancalc inside of StaSh, and then once it finishes, try running meancalc 1 5 3 8 2 3 in StaSh as well. That's an example package I created that calculates the mean of all of it's arguments. When you're done, you can run latte remove meancalc and it will be deleted if you don't want it anymore.

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

                    @Phuket2 sorry for spamming you with replies, but I found out there was a problem with the way I was accessing files. I fixed it, and now the paths should all be good to go. Please delete Latte from /stash_extensions/bin and restart Pythonista, then reinstall Latte and run the commands I told you about above in StaSh! Thanks!

                    Phuket2 1 Reply Last reply Reply Quote 0
                    • Phuket2
                      Phuket2 @AtomBombed last edited by

                      @AtomBombed , no problem. I will do

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