Coder Social home page Coder Social logo

pythonista-tools-installer's Introduction

Pythonista Tools Installer

A front-end UI program to browse and/or download scripts listed on Pythonista-Tools.

Installation

To install the program, copy and run following one-line python statements in Pythonista interactive prompt. It saves the ptinstaller.py file to the current working directory.

import requests as r; o=open('ptinstaller.py','w'); o.write(r.get('http://j.mp/pt-i').text); o.close()

Configuration

To customize the directory modules are installed to, create a file named ptinstaller.conf with below content:

{
    "install_path": "bin"
}

Usage

Execute the saved ptinstaller.py program to launch the UI. Follow the on-screen instruction to browse and install/uninstall scripts. The scripts are by default installed under ~/Documents/bin/.

Screenshots

1 2

pythonista-tools-installer's People

Contributors

khilnani avatar ywangd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonista-tools-installer's Issues

.conf文件

请问如何在pythonista中创建“.conf”文件,试了好久都没成功,不是txt就是py~!

SyntaxError: invalid syntax (pyintaller.py, line 347)

when I try to run the script on the latest version of pythonista, it gives me the following error:

SyntaxError: invalid syntax (pyintaller.py, line 347)

it's in the line with the following code:

self.github_installer.get_github_user_re

any ideas what I might be doing wrong?

Thanks,
David

(Pythonista 2.0) requests SSL failing

>>> import requests as r; o=open('ptinstaller.py','w'); o.write(r.get('http://j.mp/pt-i').text); o.close()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/api.py", line 65, in get
    return request('get', url, **kwargs)
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/api.py", line 49, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/sessions.py", line 461, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/sessions.py", line 599, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/sessions.py", line 192, in resolve_redirects
    allow_redirects=False,
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/var/mobile/Containers/Bundle/Application/BEB7C0AA-4CC7-464D-9A76-DBEC758FECB7/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/requests/adapters.py", line 431, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000)

Update button

I think there should be an update button. Currently the only way to update a script is to delete it and reinstall it. This is slightly counterintuitive. Maybe if a script is installed there would be two buttons, update and delete.

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.